#include <Hole.h>
Public Member Functions | |
Hole () | |
Hole (const Hole ©) | |
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 |
Definition at line 32 of file Hole.h.
MosesTraining::Hole::Hole | ( | int | startS, | |
int | endS, | |||
int | startT, | |||
int | endT | |||
) | [inline] |
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().
const std::string& MosesTraining::Hole::GetLabel | ( | size_t | direction | ) | const [inline] |
int MosesTraining::Hole::GetPos | ( | size_t | direction | ) | const [inline] |
int MosesTraining::Hole::GetSize | ( | size_t | direction | ) | const [inline] |
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().
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().
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().
void MosesTraining::Hole::SetLabel | ( | const std::string & | label, | |
size_t | direction | |||
) | [inline] |
void MosesTraining::Hole::SetPos | ( | int | pos, | |
size_t | direction | |||
) | [inline] |
std::vector<int> MosesTraining::Hole::m_end [protected] |
std::vector<std::string> MosesTraining::Hole::m_label [protected] |
std::vector<int> MosesTraining::Hole::m_pos [protected] |
std::vector<int> MosesTraining::Hole::m_start [protected] |