#include <MonotonicVector.h>
Public Types | |
typedef PosT | value_type |
Public Member Functions | |
MonotonicVector () | |
size_t | size () const |
PosT | at (size_t i) const |
PosT | operator[] (PosT i) const |
PosT | back () const |
void | push_back (PosT i) |
void | commit () |
size_t | usage () |
size_t | load (std::FILE *in, bool map=false) |
template<typename ValueT > | |
size_t | loadVector (std::vector< ValueT, std::allocator< ValueT > > &v, std::FILE *in, bool map=false) |
template<typename ValueT > | |
size_t | loadVector (std::vector< ValueT, MmapAllocator< ValueT > > &v, std::FILE *in, bool map=false) |
size_t | save (std::FILE *out) |
void | swap (MonotonicVector< PosT, NumT, stepSize, Allocator > &mv) |
Definition at line 47 of file MonotonicVector.h.
typedef PosT Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::value_type |
Definition at line 62 of file MonotonicVector.h.
Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::MonotonicVector | ( | ) | [inline] |
Definition at line 64 of file MonotonicVector.h.
PosT Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::at | ( | size_t | i | ) | const [inline] |
Definition at line 70 of file MonotonicVector.h.
Referenced by Moses::MonotonicVector< unsigned, unsigned int, 32 >::back(), and Moses::MonotonicVector< unsigned, unsigned int, 32 >::operator[]().
PosT Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::back | ( | ) | const [inline] |
Definition at line 92 of file MonotonicVector.h.
void Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::commit | ( | ) | [inline] |
Definition at line 124 of file MonotonicVector.h.
Referenced by Moses::MonotonicVector< unsigned, unsigned int, 32 >::save(), and Moses::MonotonicVector< unsigned, unsigned int, 32 >::swap().
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::load | ( | std::FILE * | in, | |
bool | map = false | |||
) | [inline] |
Definition at line 138 of file MonotonicVector.h.
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::loadVector | ( | std::vector< ValueT, MmapAllocator< ValueT > > & | v, | |
std::FILE * | in, | |||
bool | map = false | |||
) | [inline] |
Definition at line 169 of file MonotonicVector.h.
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::loadVector | ( | std::vector< ValueT, std::allocator< ValueT > > & | v, | |
std::FILE * | in, | |||
bool | map = false | |||
) | [inline] |
Definition at line 152 of file MonotonicVector.h.
Referenced by Moses::MonotonicVector< unsigned, unsigned int, 32 >::load().
PosT Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::operator[] | ( | PosT | i | ) | const [inline] |
Definition at line 88 of file MonotonicVector.h.
void Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::push_back | ( | PosT | i | ) | [inline] |
Definition at line 96 of file MonotonicVector.h.
Referenced by Moses::StringVector< ValueT, PosT, Allocator >::push_back().
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::save | ( | std::FILE * | out | ) | [inline] |
Definition at line 200 of file MonotonicVector.h.
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::size | ( | ) | const [inline] |
Definition at line 66 of file MonotonicVector.h.
Referenced by Moses::MonotonicVector< unsigned, unsigned int, 32 >::back(), Moses::MonotonicVector< unsigned, unsigned int, 32 >::save(), and Moses::StringVector< ValueT, PosT, Allocator >::size().
void Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::swap | ( | MonotonicVector< PosT, NumT, stepSize, Allocator > & | mv | ) | [inline] |
Definition at line 220 of file MonotonicVector.h.
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::usage | ( | ) | [inline] |
Definition at line 133 of file MonotonicVector.h.