#include <PChart.h>
Classes | |
struct | Cell |
struct | CompressedItem |
Public Types | |
typedef std::vector < std::vector< CompressedItem > > | CompressedMatrix |
Public Member Functions | |
PChart (std::size_t width, bool maintainCompressedChart) | |
~PChart () | |
std::size_t | GetWidth () const |
const Cell & | GetCell (std::size_t start, std::size_t end) const |
PVertex & | AddVertex (const PVertex &v) |
const CompressedMatrix & | GetCompressedMatrix (std::size_t start) const |
Definition at line 20 of file PChart.h.
typedef std::vector<std::vector<CompressedItem> > Moses::Syntax::S2T::PChart::CompressedMatrix |
Moses::Syntax::S2T::PChart::PChart | ( | std::size_t | width, | |
bool | maintainCompressedChart | |||
) |
Definition at line 12 of file PChart.cpp.
References Moses::FactorCollection::Instance().
Moses::Syntax::S2T::PChart::~PChart | ( | ) |
Definition at line 27 of file PChart.cpp.
Definition at line 53 of file PChart.h.
References Moses::Syntax::S2T::PChart::CompressedItem::end, end, Moses::Range::GetEndPos(), Moses::Range::GetStartPos(), Moses::Word::IsNonTerminal(), Moses::Syntax::S2T::PChart::Cell::nonTerminalVertices, Moses::Syntax::PVertex::span, Moses::Syntax::PVertex::symbol, Moses::Syntax::S2T::PChart::Cell::terminalVertices, and Moses::Syntax::S2T::PChart::CompressedItem::vertex.
Referenced by Moses::Syntax::S2T::Manager< Parser >::Decode().
const Cell& Moses::Syntax::S2T::PChart::GetCell | ( | std::size_t | start, | |
std::size_t | end | |||
) | const [inline] |
Definition at line 48 of file PChart.h.
Referenced by Moses::Syntax::S2T::TailLatticeBuilder::Build().
const CompressedMatrix& Moses::Syntax::S2T::PChart::GetCompressedMatrix | ( | std::size_t | start | ) | const [inline] |
std::size_t Moses::Syntax::S2T::PChart::GetWidth | ( | ) | const [inline] |