MosesTraining::HoleCollection Class Reference

#include <HoleCollection.h>

List of all members.

Public Member Functions

 HoleCollection (int sourcePhraseStart, int sourcePhraseEnd)
const HoleListGetHoles () const
HoleListGetHoles ()
std::vector< Hole * > & GetSortedSourceHoles ()
void Add (int startT, int endT, int startS, int endS)
void RemoveLast ()
bool OverlapSource (const Hole &sourceHole) const
bool ConsecSource (const Hole &sourceHole) const
int Scope (const Hole &proposedHole) const
void SortSourceHoles ()

Protected Attributes

HoleList m_holes
std::vector< Hole * > m_sortedSourceHoles
std::vector< int > m_sourceHoleStartPoints
std::vector< int > m_sourceHoleEndPoints
std::vector< int > m_scope
std::vector< int > m_sourcePhraseStart
std::vector< int > m_sourcePhraseEnd


Detailed Description

Definition at line 32 of file HoleCollection.h.


Constructor & Destructor Documentation

MosesTraining::HoleCollection::HoleCollection ( int  sourcePhraseStart,
int  sourcePhraseEnd 
) [inline]

Definition at line 44 of file HoleCollection.h.


Member Function Documentation

void MosesTraining::HoleCollection::Add ( int  startT,
int  endT,
int  startS,
int  endS 
)

Definition at line 42 of file HoleCollection.cpp.

References m_holes, m_scope, m_sortedSourceHoles, m_sourceHoleEndPoints, m_sourceHoleStartPoints, and Scope().

Here is the call graph for this function:

bool MosesTraining::HoleCollection::ConsecSource ( const Hole sourceHole  )  const [inline]

Definition at line 76 of file HoleCollection.h.

References m_holes, and MosesTraining::Hole::Neighbor().

Here is the call graph for this function:

HoleList& MosesTraining::HoleCollection::GetHoles (  )  [inline]

Definition at line 54 of file HoleCollection.h.

References m_holes.

const HoleList& MosesTraining::HoleCollection::GetHoles (  )  const [inline]

Definition at line 50 of file HoleCollection.h.

References m_holes.

std::vector<Hole*>& MosesTraining::HoleCollection::GetSortedSourceHoles (  )  [inline]

Definition at line 58 of file HoleCollection.h.

References m_sortedSourceHoles.

bool MosesTraining::HoleCollection::OverlapSource ( const Hole sourceHole  )  const [inline]

Definition at line 66 of file HoleCollection.h.

References m_holes, and MosesTraining::Hole::Overlap().

Here is the call graph for this function:

void MosesTraining::HoleCollection::RemoveLast (  ) 

int MosesTraining::HoleCollection::Scope ( const Hole proposedHole  )  const

Definition at line 61 of file HoleCollection.cpp.

References MosesTraining::Hole::GetEnd(), MosesTraining::Hole::GetStart(), m_scope, m_sourceHoleEndPoints, m_sourceHoleStartPoints, m_sourcePhraseEnd, and m_sourcePhraseStart.

Referenced by Add().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::HoleCollection::SortSourceHoles (  ) 

Definition at line 27 of file HoleCollection.cpp.

References m_holes, m_sortedSourceHoles, and sort().

Here is the call graph for this function:


Member Data Documentation

Definition at line 35 of file HoleCollection.h.

Referenced by Add(), ConsecSource(), GetHoles(), OverlapSource(), RemoveLast(), and SortSourceHoles().

std::vector<int> MosesTraining::HoleCollection::m_scope [protected]

Definition at line 39 of file HoleCollection.h.

Referenced by Add(), RemoveLast(), and Scope().

Definition at line 36 of file HoleCollection.h.

Referenced by Add(), GetSortedSourceHoles(), RemoveLast(), and SortSourceHoles().

Definition at line 38 of file HoleCollection.h.

Referenced by Add(), RemoveLast(), and Scope().

Definition at line 37 of file HoleCollection.h.

Referenced by Add(), RemoveLast(), and Scope().

Definition at line 41 of file HoleCollection.h.

Referenced by Scope().

Definition at line 40 of file HoleCollection.h.

Referenced by Scope().


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

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