MosesTraining::Hole Class Reference

#include <Hole.h>

List of all members.

Public Member Functions

 Hole ()
 Hole (const Hole &copy)
 Hole (int startS, int endS, int startT, int endT)
int GetStart (size_t direction) const
int GetEnd (size_t direction) const
int GetSize (size_t direction) const
void SetPos (int pos, size_t direction)
int GetPos (size_t direction) const
void SetLabel (const std::string &label, size_t direction)
const std::string & GetLabel (size_t direction) const
bool Overlap (const Hole &otherHole, size_t direction) const
bool Neighbor (const Hole &otherHole, size_t direction) const

Protected Attributes

std::vector< int > m_start
std::vector< int > m_end
std::vector< int > m_pos
std::vector< std::string > m_label


Detailed Description

Definition at line 32 of file Hole.h.


Constructor & Destructor Documentation

MosesTraining::Hole::Hole (  )  [inline]

Definition at line 39 of file Hole.h.

MosesTraining::Hole::Hole ( const Hole copy  )  [inline]

Definition at line 46 of file Hole.h.

MosesTraining::Hole::Hole ( int  startS,
int  endS,
int  startT,
int  endT 
) [inline]

Definition at line 53 of file Hole.h.

References m_end, and m_start.


Member Function Documentation

int MosesTraining::Hole::GetEnd ( size_t  direction  )  const [inline]

Definition at line 68 of file Hole.h.

References m_end.

Referenced by Neighbor(), Overlap(), and MosesTraining::HoleCollection::Scope().

Here is the caller graph for this function:

const std::string& MosesTraining::Hole::GetLabel ( size_t  direction  )  const [inline]

Definition at line 88 of file Hole.h.

References m_label.

int MosesTraining::Hole::GetPos ( size_t  direction  )  const [inline]

Definition at line 80 of file Hole.h.

References m_pos.

int MosesTraining::Hole::GetSize ( size_t  direction  )  const [inline]

Definition at line 72 of file Hole.h.

References m_end, and m_start.

int MosesTraining::Hole::GetStart ( size_t  direction  )  const [inline]

Definition at line 64 of file Hole.h.

References m_start.

Referenced by Neighbor(), MosesTraining::HoleSourceOrderer::operator()(), Overlap(), and MosesTraining::HoleCollection::Scope().

Here is the caller graph for this function:

bool MosesTraining::Hole::Neighbor ( const Hole otherHole,
size_t  direction 
) const [inline]

Definition at line 97 of file Hole.h.

References GetEnd(), and GetStart().

Referenced by MosesTraining::HoleCollection::ConsecSource().

Here is the call graph for this function:

Here is the caller graph for this function:

bool MosesTraining::Hole::Overlap ( const Hole otherHole,
size_t  direction 
) const [inline]

Definition at line 92 of file Hole.h.

References GetEnd(), and GetStart().

Referenced by MosesTraining::HoleCollection::OverlapSource().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::Hole::SetLabel ( const std::string &  label,
size_t  direction 
) [inline]

Definition at line 84 of file Hole.h.

References m_label.

void MosesTraining::Hole::SetPos ( int  pos,
size_t  direction 
) [inline]

Definition at line 76 of file Hole.h.

References m_pos.


Member Data Documentation

std::vector<int> MosesTraining::Hole::m_end [protected]

Definition at line 35 of file Hole.h.

Referenced by GetEnd(), GetSize(), and Hole().

std::vector<std::string> MosesTraining::Hole::m_label [protected]

Definition at line 36 of file Hole.h.

Referenced by GetLabel(), and SetLabel().

std::vector<int> MosesTraining::Hole::m_pos [protected]

Definition at line 35 of file Hole.h.

Referenced by GetPos(), and SetPos().

std::vector<int> MosesTraining::Hole::m_start [protected]

Definition at line 35 of file Hole.h.

Referenced by GetSize(), GetStart(), and Hole().


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

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