MosesTuning::ScopedVector< T > Class Template Reference

#include <ScopedVector.h>

Inheritance diagram for MosesTuning::ScopedVector< T >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector< T * >
::iterator 
iterator
typedef std::vector< T * >
::const_iterator 
const_iterator

Public Member Functions

 ScopedVector ()
virtual ~ScopedVector ()
bool empty () const
void push_back (T *e)
void reset ()
void reserve (std::size_t capacity)
void resize (std::size_t size)
std::size_t size () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
std::vector< T * > & get ()
const std::vector< T * > & get () const
std::vector< T * > * operator-> ()
const std::vector< T * > * operator-> () const
T *& operator[] (std::size_t i)
const Toperator[] (std::size_t i) const


Detailed Description

template<class T>
class MosesTuning::ScopedVector< T >

Definition at line 10 of file ScopedVector.h.


Member Typedef Documentation

template<class T>
typedef std::vector<T*>::const_iterator MosesTuning::ScopedVector< T >::const_iterator

Definition at line 14 of file ScopedVector.h.

template<class T>
typedef std::vector<T*>::iterator MosesTuning::ScopedVector< T >::iterator

Definition at line 13 of file ScopedVector.h.


Constructor & Destructor Documentation

template<class T>
MosesTuning::ScopedVector< T >::ScopedVector (  )  [inline]

Definition at line 16 of file ScopedVector.h.

template<class T>
virtual MosesTuning::ScopedVector< T >::~ScopedVector (  )  [inline, virtual]

Definition at line 17 of file ScopedVector.h.


Member Function Documentation

template<class T>
const_iterator MosesTuning::ScopedVector< T >::begin (  )  const [inline]

Definition at line 50 of file ScopedVector.h.

template<class T>
iterator MosesTuning::ScopedVector< T >::begin (  )  [inline]

template<class T>
bool MosesTuning::ScopedVector< T >::empty (  )  const [inline]

Definition at line 21 of file ScopedVector.h.

template<class T>
const_iterator MosesTuning::ScopedVector< T >::end (  )  const [inline]

Definition at line 57 of file ScopedVector.h.

template<class T>
iterator MosesTuning::ScopedVector< T >::end (  )  [inline]

template<class T>
const std::vector<T*>& MosesTuning::ScopedVector< T >::get (  )  const [inline]

Definition at line 64 of file ScopedVector.h.

template<class T>
std::vector<T*>& MosesTuning::ScopedVector< T >::get (  )  [inline]

Definition at line 61 of file ScopedVector.h.

Referenced by MosesTuning::BleuScorer::GetReferences().

Here is the caller graph for this function:

template<class T>
const std::vector<T*>* MosesTuning::ScopedVector< T >::operator-> (  )  const [inline]

Definition at line 71 of file ScopedVector.h.

template<class T>
std::vector<T*>* MosesTuning::ScopedVector< T >::operator-> (  )  [inline]

Definition at line 68 of file ScopedVector.h.

template<class T>
const T* MosesTuning::ScopedVector< T >::operator[] ( std::size_t  i  )  const [inline]

Definition at line 78 of file ScopedVector.h.

template<class T>
T*& MosesTuning::ScopedVector< T >::operator[] ( std::size_t  i  )  [inline]

Definition at line 75 of file ScopedVector.h.

template<class T>
void MosesTuning::ScopedVector< T >::push_back ( T e  )  [inline]

Definition at line 25 of file ScopedVector.h.

Referenced by MosesTuning::InterpolatedScorer::setScoreData().

Here is the caller graph for this function:

template<class T>
void MosesTuning::ScopedVector< T >::reserve ( std::size_t  capacity  )  [inline]

Definition at line 36 of file ScopedVector.h.

template<class T>
void MosesTuning::ScopedVector< T >::reset (  )  [inline]

Definition at line 29 of file ScopedVector.h.

Referenced by MosesTuning::ScopedVector< ScopedVector< Reference > >::~ScopedVector().

Here is the caller graph for this function:

template<class T>
void MosesTuning::ScopedVector< T >::resize ( std::size_t  size  )  [inline]

Definition at line 39 of file ScopedVector.h.

template<class T>
std::size_t MosesTuning::ScopedVector< T >::size (  )  const [inline]

Definition at line 43 of file ScopedVector.h.


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

Generated on Thu Jul 6 00:34:19 2017 for Moses by  doxygen 1.5.9