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

Single site function with dynamic size. More...

#include <singlesitefunction.hxx>

+ Collaboration diagram for opengm::DynamicSingleSiteFunction< T >:

Public Types

typedef T ValueType
 
typedef T value_type
 

Public Member Functions

 DynamicSingleSiteFunction (const size_t size=0)
 
 DynamicSingleSiteFunction (const size_t size, ValueType value)
 
 ~DynamicSingleSiteFunction ()
 
 DynamicSingleSiteFunction (const DynamicSingleSiteFunction &other)
 
DynamicSingleSiteFunctionoperator= (const DynamicSingleSiteFunction &other)
 
void assign (const size_t size)
 
void assign (const size_t size, const T value)
 
size_t size () const
 
size_t dimension () const
 
size_t shape (const size_t index) const
 
T & operator[] (const size_t index)
 
const T & operator[] (const size_t index) const
 
template<class ITERATOR >
const T & operator() (ITERATOR iter) const
 
template<class ITERATOR >
T & operator() (ITERATOR iter)
 

Detailed Description

template<class T>
class opengm::DynamicSingleSiteFunction< T >

Single site function with dynamic size.

Definition at line 138 of file singlesitefunction.hxx.

Member Typedef Documentation

template<class T >
typedef T opengm::DynamicSingleSiteFunction< T >::value_type

Definition at line 141 of file singlesitefunction.hxx.

template<class T >
typedef T opengm::DynamicSingleSiteFunction< T >::ValueType

Definition at line 140 of file singlesitefunction.hxx.

Constructor & Destructor Documentation

template<class T >
opengm::DynamicSingleSiteFunction< T >::DynamicSingleSiteFunction ( const size_t  size = 0)
inline

Definition at line 143 of file singlesitefunction.hxx.

+ Here is the call graph for this function:

template<class T >
opengm::DynamicSingleSiteFunction< T >::DynamicSingleSiteFunction ( const size_t  size,
ValueType  value 
)
inline

Definition at line 151 of file singlesitefunction.hxx.

+ Here is the call graph for this function:

template<class T >
opengm::DynamicSingleSiteFunction< T >::~DynamicSingleSiteFunction ( )
inline

Definition at line 160 of file singlesitefunction.hxx.

template<class T >
opengm::DynamicSingleSiteFunction< T >::DynamicSingleSiteFunction ( const DynamicSingleSiteFunction< T > &  other)
inline

Definition at line 167 of file singlesitefunction.hxx.

Member Function Documentation

template<class T >
void opengm::DynamicSingleSiteFunction< T >::assign ( const size_t  size)
inline

Definition at line 206 of file singlesitefunction.hxx.

+ Here is the call graph for this function:

template<class T >
void opengm::DynamicSingleSiteFunction< T >::assign ( const size_t  size,
const T  value 
)
inline

Definition at line 220 of file singlesitefunction.hxx.

+ Here is the call graph for this function:

template<class T >
size_t opengm::DynamicSingleSiteFunction< T >::dimension ( ) const
inline

Definition at line 241 of file singlesitefunction.hxx.

template<class T >
template<class ITERATOR >
const T& opengm::DynamicSingleSiteFunction< T >::operator() ( ITERATOR  iter) const
inline

Definition at line 263 of file singlesitefunction.hxx.

template<class T >
template<class ITERATOR >
T& opengm::DynamicSingleSiteFunction< T >::operator() ( ITERATOR  iter)
inline

Definition at line 270 of file singlesitefunction.hxx.

template<class T >
DynamicSingleSiteFunction& opengm::DynamicSingleSiteFunction< T >::operator= ( const DynamicSingleSiteFunction< T > &  other)
inline

Definition at line 179 of file singlesitefunction.hxx.

template<class T >
T& opengm::DynamicSingleSiteFunction< T >::operator[] ( const size_t  index)
inline

Definition at line 250 of file singlesitefunction.hxx.

template<class T >
const T& opengm::DynamicSingleSiteFunction< T >::operator[] ( const size_t  index) const
inline

Definition at line 256 of file singlesitefunction.hxx.

template<class T >
size_t opengm::DynamicSingleSiteFunction< T >::shape ( const size_t  index) const
inline

Definition at line 244 of file singlesitefunction.hxx.

template<class T >
size_t opengm::DynamicSingleSiteFunction< T >::size ( ) const
inline

Definition at line 238 of file singlesitefunction.hxx.

+ Here is the caller graph for this function: