OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | List of all members
opengm::VectorView< VECTOR, INDEX_TYPE > Class Template Reference

#include <vector_view.hxx>

+ Inheritance diagram for opengm::VectorView< VECTOR, INDEX_TYPE >:
+ Collaboration diagram for opengm::VectorView< VECTOR, INDEX_TYPE >:

Public Types

typedef VECTOR VectorType
 
typedef INDEX_TYPE IndexType
 
typedef VectorType::value_type ValueType
 
typedef VectorType::const_iterator const_iterator
 
typedef VectorType::iterator iterator
 

Public Member Functions

 VectorView ()
 
 VectorView (const VectorType &vector)
 
 VectorView (const VectorType &vector, const IndexType start, const IndexType size)
 
void assign (const VectorType &vector, const IndexType start, const IndexType size)
 
void assignPtr (const VectorType &vector)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const IndexType size () const
 
const ValueTypeoperator[] (const IndexType i) const
 
ValueTypeoperator[] (const IndexType i)
 

Detailed Description

template<class VECTOR, class INDEX_TYPE>
class opengm::VectorView< VECTOR, INDEX_TYPE >

Definition at line 7 of file vector_view.hxx.

Member Typedef Documentation

template<class VECTOR, class INDEX_TYPE>
typedef VectorType::const_iterator opengm::VectorView< VECTOR, INDEX_TYPE >::const_iterator

Definition at line 17 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
typedef INDEX_TYPE opengm::VectorView< VECTOR, INDEX_TYPE >::IndexType

Definition at line 14 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
typedef VectorType::iterator opengm::VectorView< VECTOR, INDEX_TYPE >::iterator

Definition at line 18 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
typedef VectorType::value_type opengm::VectorView< VECTOR, INDEX_TYPE >::ValueType

Definition at line 15 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
typedef VECTOR opengm::VectorView< VECTOR, INDEX_TYPE >::VectorType

Definition at line 13 of file vector_view.hxx.

Constructor & Destructor Documentation

template<class VECTOR, class INDEX_TYPE>
opengm::VectorView< VECTOR, INDEX_TYPE >::VectorView ( )
inline

Definition at line 20 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
opengm::VectorView< VECTOR, INDEX_TYPE >::VectorView ( const VectorType vector)
inline

Definition at line 23 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
opengm::VectorView< VECTOR, INDEX_TYPE >::VectorView ( const VectorType vector,
const IndexType  start,
const IndexType  size 
)
inline

Definition at line 32 of file vector_view.hxx.

Member Function Documentation

template<class VECTOR, class INDEX_TYPE>
void opengm::VectorView< VECTOR, INDEX_TYPE >::assign ( const VectorType vector,
const IndexType  start,
const IndexType  size 
)
inline

Definition at line 42 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
void opengm::VectorView< VECTOR, INDEX_TYPE >::assignPtr ( const VectorType vector)
inline

Definition at line 53 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
iterator opengm::VectorView< VECTOR, INDEX_TYPE >::begin ( )
inline

Definition at line 60 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
const_iterator opengm::VectorView< VECTOR, INDEX_TYPE >::begin ( ) const
inline

Definition at line 67 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
iterator opengm::VectorView< VECTOR, INDEX_TYPE >::end ( )
inline

Definition at line 63 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
const_iterator opengm::VectorView< VECTOR, INDEX_TYPE >::end ( ) const
inline

Definition at line 70 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
const ValueType& opengm::VectorView< VECTOR, INDEX_TYPE >::operator[] ( const IndexType  i) const
inline

Definition at line 78 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
ValueType& opengm::VectorView< VECTOR, INDEX_TYPE >::operator[] ( const IndexType  i)
inline

Definition at line 81 of file vector_view.hxx.

template<class VECTOR, class INDEX_TYPE>
const IndexType opengm::VectorView< VECTOR, INDEX_TYPE >::size ( ) const
inline

Definition at line 75 of file vector_view.hxx.

+ Here is the caller graph for this function: