Moses::StringVectorTemp< ValueT, PosT, Allocator > Class Template Reference

#include <StringVectorTemp.h>

Inheritance diagram for Moses::StringVectorTemp< ValueT, PosT, Allocator >:

Inheritance graph
[legend]

List of all members.

Classes

class  RangeIterator
class  StringIterator

Public Types

typedef ValueIteratorRange
< const ValueT * > 
range
typedef RangeIterator iterator
typedef StringIterator string_iterator

Public Member Functions

 StringVectorTemp ()
 StringVectorTemp (Allocator< ValueT > alloc)
virtual ~StringVectorTemp ()
void swap (StringVectorTemp< ValueT, PosT, Allocator > &c)
bool is_sorted () const
PosT size () const
virtual PosT size2 () const
template<class Iterator >
Iterator begin () const
template<class Iterator >
Iterator end () const
iterator begin () const
iterator end () const
PosT length (PosT i) const
const ValueT * begin (PosT i) const
const ValueT * end (PosT i) const
void clear ()
range at (PosT i) const
range operator[] (PosT i) const
range back () const
template<typename StringT >
void push_back (StringT s)
void push_back (const char *c)
template<typename StringT >
PosT find (StringT &s) const
PosT find (const char *c) const

Protected Member Functions

virtual const ValueT * value_ptr (PosT i) const

Protected Attributes

bool m_sorted
bool m_memoryMapped
std::vector< ValueT, Allocator
< ValueT > > * 
m_charArray
std::vector< PosT > m_positions


Detailed Description

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
class Moses::StringVectorTemp< ValueT, PosT, Allocator >

Definition at line 47 of file StringVectorTemp.h.


Member Typedef Documentation

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
typedef RangeIterator Moses::StringVectorTemp< ValueT, PosT, Allocator >::iterator

Definition at line 117 of file StringVectorTemp.h.

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
typedef ValueIteratorRange<const ValueT *> Moses::StringVectorTemp< ValueT, PosT, Allocator >::range

Definition at line 60 of file StringVectorTemp.h.

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
typedef StringIterator Moses::StringVectorTemp< ValueT, PosT, Allocator >::string_iterator

Definition at line 118 of file StringVectorTemp.h.


Constructor & Destructor Documentation

template<typename ValueT , typename PosT , template< typename > class Allocator>
Moses::StringVectorTemp< ValueT, PosT, Allocator >::StringVectorTemp (  )  [inline]

Definition at line 176 of file StringVectorTemp.h.

template<typename ValueT, typename PosT , template< typename > class Allocator>
Moses::StringVectorTemp< ValueT, PosT, Allocator >::StringVectorTemp ( Allocator< ValueT >  alloc  )  [inline]

Definition at line 180 of file StringVectorTemp.h.

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
virtual Moses::StringVectorTemp< ValueT, PosT, Allocator >::~StringVectorTemp (  )  [inline, virtual]

Definition at line 123 of file StringVectorTemp.h.


Member Function Documentation

template<typename ValueT , typename PosT, template< typename > class Allocator>
StringVectorTemp< ValueT, PosT, Allocator >::range Moses::StringVectorTemp< ValueT, PosT, Allocator >::at ( PosT  i  )  const [inline]

template<typename ValueT , typename PosT , template< typename > class Allocator>
StringVectorTemp< ValueT, PosT, Allocator >::range Moses::StringVectorTemp< ValueT, PosT, Allocator >::back (  )  const [inline]

Definition at line 258 of file StringVectorTemp.h.

References Moses::StringVectorTemp< ValueT, PosT, Allocator >::at(), and Moses::StringVectorTemp< ValueT, PosT, Allocator >::size().

Referenced by Moses::StringVectorTemp< ValueT, PosT, Allocator >::push_back().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename ValueT , typename PosT, template< typename > class Allocator>
const ValueT * Moses::StringVectorTemp< ValueT, PosT, Allocator >::begin ( PosT  i  )  const [inline]

Definition at line 280 of file StringVectorTemp.h.

References Moses::StringVectorTemp< ValueT, PosT, Allocator >::value_ptr().

Here is the call graph for this function:

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
iterator Moses::StringVectorTemp< ValueT, PosT, Allocator >::begin (  )  const

template<typename ValueT , typename PosT , template< typename > class Allocator>
template<typename Iterator >
StringVectorTemp< ValueT, PosT, Allocator >::iterator Moses::StringVectorTemp< ValueT, PosT, Allocator >::begin (  )  const [inline]

Definition at line 203 of file StringVectorTemp.h.

Referenced by Moses::StringVectorTemp< ValueT, PosT, Allocator >::at(), and Moses::StringVectorTemp< ValueT, PosT, Allocator >::find().

Here is the caller graph for this function:

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
void Moses::StringVectorTemp< ValueT, PosT, Allocator >::clear (  )  [inline]

Definition at line 152 of file StringVectorTemp.h.

template<typename ValueT , typename PosT, template< typename > class Allocator>
const ValueT * Moses::StringVectorTemp< ValueT, PosT, Allocator >::end ( PosT  i  )  const [inline]

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
iterator Moses::StringVectorTemp< ValueT, PosT, Allocator >::end (  )  const

template<typename ValueT , typename PosT , template< typename > class Allocator>
template<typename Iterator >
StringVectorTemp< ValueT, PosT, Allocator >::iterator Moses::StringVectorTemp< ValueT, PosT, Allocator >::end (  )  const [inline]

Definition at line 210 of file StringVectorTemp.h.

References Moses::StringVectorTemp< ValueT, PosT, Allocator >::size().

Referenced by Moses::StringVectorTemp< ValueT, PosT, Allocator >::at(), and Moses::StringVectorTemp< ValueT, PosT, Allocator >::find().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename ValueT , typename PosT , template< typename > class Allocator>
PosT Moses::StringVectorTemp< ValueT, PosT, Allocator >::find ( const char *  c  )  const [inline]

Definition at line 304 of file StringVectorTemp.h.

References Moses::StringVectorTemp< ValueT, PosT, Allocator >::find().

Here is the call graph for this function:

template<typename ValueT , typename PosT , template< typename > class Allocator>
template<typename StringT >
PosT Moses::StringVectorTemp< ValueT, PosT, Allocator >::find ( StringT &  s  )  const [inline]

template<typename ValueT , typename PosT , template< typename > class Allocator>
bool Moses::StringVectorTemp< ValueT, PosT, Allocator >::is_sorted (  )  const [inline]

Definition at line 228 of file StringVectorTemp.h.

References Moses::StringVectorTemp< ValueT, PosT, Allocator >::m_sorted.

Referenced by Moses::StringVectorTemp< ValueT, PosT, Allocator >::push_back().

Here is the caller graph for this function:

template<typename ValueT , typename PosT, template< typename > class Allocator>
PosT Moses::StringVectorTemp< ValueT, PosT, Allocator >::length ( PosT  i  )  const [inline]

template<typename ValueT , typename PosT, template< typename > class Allocator>
StringVectorTemp< ValueT, PosT, Allocator >::range Moses::StringVectorTemp< ValueT, PosT, Allocator >::operator[] ( PosT  i  )  const [inline]

Definition at line 252 of file StringVectorTemp.h.

References Moses::StringVectorTemp< ValueT, PosT, Allocator >::at().

Here is the call graph for this function:

template<typename ValueT , typename PosT , template< typename > class Allocator>
void Moses::StringVectorTemp< ValueT, PosT, Allocator >::push_back ( const char *  c  )  [inline]

Definition at line 195 of file StringVectorTemp.h.

References Moses::StringVectorTemp< ValueT, PosT, Allocator >::push_back().

Here is the call graph for this function:

template<typename ValueT , typename PosT , template< typename > class Allocator>
template<typename StringT >
void Moses::StringVectorTemp< ValueT, PosT, Allocator >::push_back ( StringT  s  )  [inline]

template<typename ValueT , typename PosT , template< typename > class Allocator>
PosT Moses::StringVectorTemp< ValueT, PosT, Allocator >::size (  )  const [inline]

template<typename ValueT , typename PosT , template< typename > class Allocator>
PosT Moses::StringVectorTemp< ValueT, PosT, Allocator >::size2 (  )  const [inline, virtual]

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
void Moses::StringVectorTemp< ValueT, PosT, Allocator >::swap ( StringVectorTemp< ValueT, PosT, Allocator > &  c  )  [inline]

Definition at line 127 of file StringVectorTemp.h.

template<typename ValueT , typename PosT, template< typename > class Allocator>
const ValueT * Moses::StringVectorTemp< ValueT, PosT, Allocator >::value_ptr ( PosT  i  )  const [inline, protected, virtual]


Member Data Documentation

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
std::vector<ValueT, Allocator<ValueT> >* Moses::StringVectorTemp< ValueT, PosT, Allocator >::m_charArray [protected]

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
bool Moses::StringVectorTemp< ValueT, PosT, Allocator >::m_memoryMapped [protected]

Definition at line 51 of file StringVectorTemp.h.

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
std::vector<PosT> Moses::StringVectorTemp< ValueT, PosT, Allocator >::m_positions [protected]

template<typename ValueT = unsigned char, typename PosT = unsigned int, template< typename > class Allocator = std::allocator>
bool Moses::StringVectorTemp< ValueT, PosT, Allocator >::m_sorted [protected]


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

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