#include <ug_mm_2d_table.h>
Classes | |
struct | Cell |
struct | Row |
Public Member Functions | |
VAL | m1 (ID key) const |
VAL | m2 (ID key) const |
void | open (std::string fname) |
void | close () |
Row | operator[] (ID key) const |
mm2dTable (std::string const fname="") | |
~mm2dTable () | |
Public Attributes | |
Cell const * | data |
VAL const * | M1 |
VAL const * | M2 |
OFFSET const * | index |
ID | numRows |
ID | numCols |
boost::shared_ptr < bio::mapped_file_source > | file |
Definition at line 17 of file ug_mm_2d_table.h.
sapt::mm2dTable< OFFSET, ID, VAL, INIT >::mm2dTable | ( | std::string const | fname = "" |
) | [inline] |
Definition at line 78 of file ug_mm_2d_table.h.
sapt::mm2dTable< OFFSET, ID, VAL, INIT >::~mm2dTable | ( | ) | [inline] |
Definition at line 79 of file ug_mm_2d_table.h.
void sapt::mm2dTable< OFFSET, ID, VAL, INIT >::close | ( | ) |
VAL sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m1 | ( | ID | key | ) | const [inline] |
Definition at line 62 of file ug_mm_2d_table.h.
Referenced by lookup_source(), lookup_target(), main(), sapt::LexicalPhraseScorer2< TKN >::plup_bwd(), and sapt::LexicalPhraseScorer2< TKN >::plup_fwd().
VAL sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m2 | ( | ID | key | ) | const [inline] |
Definition at line 67 of file ug_mm_2d_table.h.
Referenced by lookup_source(), lookup_target(), main(), sapt::LexicalPhraseScorer2< TKN >::plup_bwd(), and sapt::LexicalPhraseScorer2< TKN >::plup_fwd().
void sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open | ( | std::string | fname | ) | [inline] |
Definition at line 112 of file ug_mm_2d_table.h.
References sapt::mm2dTable< OFFSET, ID, VAL, INIT >::data, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::file, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::index, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::M1, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::M2, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::numCols, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::numRows, and UTIL_THROW.
Referenced by Moses::Mmsapt::Load(), main(), and sapt::LexicalPhraseScorer2< TKN >::open().
mm2dTable< OFFSET, ID, VAL, INIT >::Row sapt::mm2dTable< OFFSET, ID, VAL, INIT >::operator[] | ( | ID | key | ) | const [inline] |
Definition at line 85 of file ug_mm_2d_table.h.
References sapt::mm2dTable< OFFSET, ID, VAL, INIT >::data, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::index, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::numRows, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::Row::start, and sapt::mm2dTable< OFFSET, ID, VAL, INIT >::Row::stop.
Cell const* sapt::mm2dTable< OFFSET, ID, VAL, INIT >::data |
Definition at line 54 of file ug_mm_2d_table.h.
Referenced by sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open(), and sapt::mm2dTable< OFFSET, ID, VAL, INIT >::operator[]().
boost::shared_ptr<bio::mapped_file_source> sapt::mm2dTable< OFFSET, ID, VAL, INIT >::file |
Definition at line 60 of file ug_mm_2d_table.h.
Referenced by sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open().
OFFSET const* sapt::mm2dTable< OFFSET, ID, VAL, INIT >::index |
Definition at line 57 of file ug_mm_2d_table.h.
Referenced by sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open(), and sapt::mm2dTable< OFFSET, ID, VAL, INIT >::operator[]().
VAL const* sapt::mm2dTable< OFFSET, ID, VAL, INIT >::M1 |
Definition at line 55 of file ug_mm_2d_table.h.
Referenced by sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open().
VAL const* sapt::mm2dTable< OFFSET, ID, VAL, INIT >::M2 |
Definition at line 56 of file ug_mm_2d_table.h.
Referenced by sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open().
ID sapt::mm2dTable< OFFSET, ID, VAL, INIT >::numCols |
Definition at line 59 of file ug_mm_2d_table.h.
Referenced by sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open().
ID sapt::mm2dTable< OFFSET, ID, VAL, INIT >::numRows |
Definition at line 58 of file ug_mm_2d_table.h.
Referenced by dump(), lookup_target(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open(), and sapt::mm2dTable< OFFSET, ID, VAL, INIT >::operator[]().