TERCPPNS_TERCpp::terShift Class Reference

#include <terShift.h>

Collaboration diagram for TERCPPNS_TERCpp::terShift:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 terShift ()
 terShift (int _start, int _end, int _moveto, int _newloc)
 terShift (int _start, int _end, int _moveto, int _newloc, vector< string > _shifted)
string toString ()
int distance ()
bool leftShift ()
int size ()
void set (terShift l_terShift)
void set (terShift *l_terShift)
void erase ()

Public Attributes

int start
int end
int moveto
int newloc
vector< string > shifted
vector< char > alignment
vector< string > aftershift
double cost


Detailed Description

Definition at line 37 of file terShift.h.


Constructor & Destructor Documentation

TERCPPNS_TERCpp::terShift::terShift (  ) 

Definition at line 45 of file terShift.cpp.

References aftershift, alignment, cost, end, moveto, newloc, shifted, and start.

TERCPPNS_TERCpp::terShift::terShift ( int  _start,
int  _end,
int  _moveto,
int  _newloc 
)

Definition at line 56 of file terShift.cpp.

References cost, end, moveto, newloc, and start.

TERCPPNS_TERCpp::terShift::terShift ( int  _start,
int  _end,
int  _moveto,
int  _newloc,
vector< string >  _shifted 
)

Definition at line 65 of file terShift.cpp.

References cost, end, moveto, newloc, shifted, and start.


Member Function Documentation

int TERCPPNS_TERCpp::terShift::distance (  ) 

Definition at line 141 of file terShift.cpp.

References end, moveto, and start.

void TERCPPNS_TERCpp::terShift::erase (  ) 

Definition at line 95 of file terShift.cpp.

References aftershift, alignment, cost, end, moveto, newloc, shifted, and start.

bool TERCPPNS_TERCpp::terShift::leftShift (  ) 

Definition at line 152 of file terShift.cpp.

References moveto, and start.

void TERCPPNS_TERCpp::terShift::set ( terShift l_terShift  ) 

Definition at line 84 of file terShift.cpp.

References end, moveto, newloc, shifted, and start.

void TERCPPNS_TERCpp::terShift::set ( terShift  l_terShift  ) 

Definition at line 74 of file terShift.cpp.

References end, moveto, newloc, shifted, and start.

Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), TERCPPNS_TERCpp::bestShiftStruct::set(), and TERCPPNS_TERCpp::bestShiftStruct::setBestShift().

Here is the caller graph for this function:

int TERCPPNS_TERCpp::terShift::size (  ) 

Definition at line 157 of file terShift.cpp.

References end, and start.

string TERCPPNS_TERCpp::terShift::toString (  ) 

Definition at line 119 of file terShift.cpp.

References end, moveto, newloc, shifted, start, and TERCPPNS_Tools::vectorToString().

Referenced by TERCPPNS_TERCpp::terCalc::findBestShift(), and TERCPPNS_TERCpp::bestShiftStruct::toString().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 58 of file terShift.h.

Referenced by erase(), TERCPPNS_TERCpp::terCalc::TER(), and terShift().

Definition at line 57 of file terShift.h.

Referenced by erase(), TERCPPNS_TERCpp::terCalc::TER(), and terShift().


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:47 2017 for Moses by  doxygen 1.5.9