Moses::MonotonicVector< PosT, NumT, stepSize, Allocator > Class Template Reference

#include <MonotonicVector.h>

Inheritance diagram for Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >:

Inheritance graph
[legend]
Collaboration diagram for Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
class Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >

Definition at line 47 of file MonotonicVector.h.


Member Typedef Documentation

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
typedef PosT Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::value_type

Definition at line 62 of file MonotonicVector.h.


Constructor & Destructor Documentation

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::MonotonicVector (  )  [inline]

Definition at line 64 of file MonotonicVector.h.


Member Function Documentation

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
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[]().

Here is the caller graph for this function:

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
PosT Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::back (  )  const [inline]

Definition at line 92 of file MonotonicVector.h.

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
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().

Here is the caller graph for this function:

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::load ( std::FILE *  in,
bool  map = false 
) [inline]

Definition at line 138 of file MonotonicVector.h.

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
template<typename ValueT >
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.

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
template<typename ValueT >
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().

Here is the caller graph for this function:

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
PosT Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::operator[] ( PosT  i  )  const [inline]

Definition at line 88 of file MonotonicVector.h.

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
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().

Here is the caller graph for this function:

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::save ( std::FILE *  out  )  [inline]

Definition at line 200 of file MonotonicVector.h.

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::size (  )  const [inline]

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
void Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::swap ( MonotonicVector< PosT, NumT, stepSize, Allocator > &  mv  )  [inline]

Definition at line 220 of file MonotonicVector.h.

template<typename PosT = size_t, typename NumT = size_t, PosT stepSize = 32, template< typename > class Allocator = std::allocator>
size_t Moses::MonotonicVector< PosT, NumT, stepSize, Allocator >::usage (  )  [inline]

Definition at line 133 of file MonotonicVector.h.


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

Generated on Thu Jul 6 00:33:38 2017 for Moses by  doxygen 1.5.9