Single site function with dynamic size. More...
#include <singlesitefunction.hxx>
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) | |
DynamicSingleSiteFunction & | operator= (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) |
Single site function with dynamic size.
Definition at line 138 of file singlesitefunction.hxx.
typedef T opengm::DynamicSingleSiteFunction< T >::value_type |
Definition at line 141 of file singlesitefunction.hxx.
typedef T opengm::DynamicSingleSiteFunction< T >::ValueType |
Definition at line 140 of file singlesitefunction.hxx.
opengm::DynamicSingleSiteFunction< T >::DynamicSingleSiteFunction | ( | const size_t | size = 0 |
) | [inline] |
opengm::DynamicSingleSiteFunction< T >::DynamicSingleSiteFunction | ( | const size_t | size, | |
ValueType | value | |||
) | [inline] |
Definition at line 151 of file singlesitefunction.hxx.
opengm::DynamicSingleSiteFunction< T >::~DynamicSingleSiteFunction | ( | ) | [inline] |
Definition at line 160 of file singlesitefunction.hxx.
opengm::DynamicSingleSiteFunction< T >::DynamicSingleSiteFunction | ( | const DynamicSingleSiteFunction< T > & | other | ) | [inline] |
Definition at line 167 of file singlesitefunction.hxx.
void opengm::DynamicSingleSiteFunction< T >::assign | ( | const size_t | size, | |
const T | value | |||
) | [inline] |
Definition at line 220 of file singlesitefunction.hxx.
void opengm::DynamicSingleSiteFunction< T >::assign | ( | const size_t | size | ) | [inline] |
Definition at line 206 of file singlesitefunction.hxx.
size_t opengm::DynamicSingleSiteFunction< T >::dimension | ( | ) | const [inline] |
Definition at line 241 of file singlesitefunction.hxx.
T& opengm::DynamicSingleSiteFunction< T >::operator() | ( | ITERATOR | iter | ) | [inline] |
Definition at line 270 of file singlesitefunction.hxx.
const T& opengm::DynamicSingleSiteFunction< T >::operator() | ( | ITERATOR | iter | ) | const [inline] |
Definition at line 263 of file singlesitefunction.hxx.
DynamicSingleSiteFunction& opengm::DynamicSingleSiteFunction< T >::operator= | ( | const DynamicSingleSiteFunction< T > & | other | ) | [inline] |
Definition at line 179 of file singlesitefunction.hxx.
const T& opengm::DynamicSingleSiteFunction< T >::operator[] | ( | const size_t | index | ) | const [inline] |
Definition at line 256 of file singlesitefunction.hxx.
T& opengm::DynamicSingleSiteFunction< T >::operator[] | ( | const size_t | index | ) | [inline] |
Definition at line 250 of file singlesitefunction.hxx.
size_t opengm::DynamicSingleSiteFunction< T >::shape | ( | const size_t | index | ) | const [inline] |
Definition at line 244 of file singlesitefunction.hxx.
size_t opengm::DynamicSingleSiteFunction< T >::size | ( | ) | const [inline] |