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

Single site function whose size is fixed at compile time. More...

#include <singlesitefunction.hxx>

+ Inheritance diagram for opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >:
+ Collaboration diagram for opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >:

Public Types

typedef T ValueType
 
typedef T value_type
 
- Public Types inherited from opengm::FunctionBase< StaticSingleSiteFunction< T, SIZE, STORAGE >, T, size_t, size_t >
typedef AccessorIterator< FunctionShapeAccessorType, true > FunctionShapeIteratorType
 

Public Member Functions

 StaticSingleSiteFunction ()
 
 StaticSingleSiteFunction (const StaticSingleSiteFunction &other)
 
StaticSingleSiteFunctionoperator= (const StaticSingleSiteFunction &other)
 
template<class ITERATOR >
const T & operator() (ITERATOR iter) const
 
template<class ITERATOR >
T & operator() (ITERATOR iter)
 
size_t size () const
 
size_t dimension () const
 
size_t shape (const size_t index) const
 
- Public Member Functions inherited from opengm::FunctionBase< StaticSingleSiteFunction< T, SIZE, STORAGE >, T, size_t, size_t >
bool isPotts () const
 
bool isGeneralizedPotts () const
 
bool isSubmodular () const
 
bool isSquaredDifference () const
 
bool isTruncatedSquaredDifference () const
 
bool isAbsoluteDifference () const
 
bool isTruncatedAbsoluteDifference () const
 
bool isLinearConstraint () const
 
MinMaxFunctor< T > minMax () const
 find minimum and maximum of the function in a single sweep More...
 
ReturnType min () const
 
ReturnType max () const
 
ReturnType sum () const
 
ReturnType product () const
 
ReturnType accumulate () const
 accumulate all values of the function More...
 
void forAllValuesInOrder (FUNCTOR &functor) const
 call a functor for each value of the function (in lexicographical order of the variable indices) More...
 
void forAllValuesInSwitchedOrder (FUNCTOR &functor) const
 
void forAllValuesInAnyOrder (FUNCTOR &functor) const
 call a functor for each value of the function (in un-specified order) More...
 
void forAtLeastAllUniqueValues (FUNCTOR &functor) const
 call a functor for at least all unique values of the function More...
 
void forAllValuesInOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const
 
void forAllValuesInAnyOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const
 
void forAtLeastAllUniqueValuesWithCoordinate (COORDINATE_FUNCTOR &functor) const
 
bool operator== (const StaticSingleSiteFunction< T, SIZE, STORAGE > &) const
 
FunctionShapeIteratorType functionShapeBegin () const
 
FunctionShapeIteratorType functionShapeEnd () const
 
size_t numberOfParameters () const
 
size_t parameterIndex (const size_t paramNumber) const
 

Detailed Description

template<class T, size_t SIZE, template< typename, size_t > class STORAGE>
class opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >

Single site function whose size is fixed at compile time.

Definition at line 82 of file singlesitefunction.hxx.

Member Typedef Documentation

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
typedef T opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::value_type

Definition at line 88 of file singlesitefunction.hxx.

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
typedef T opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::ValueType

Definition at line 87 of file singlesitefunction.hxx.

Constructor & Destructor Documentation

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::StaticSingleSiteFunction ( )
inline

Definition at line 90 of file singlesitefunction.hxx.

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::StaticSingleSiteFunction ( const StaticSingleSiteFunction< T, SIZE, STORAGE > &  other)
inline

Definition at line 91 of file singlesitefunction.hxx.

Member Function Documentation

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
size_t opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::dimension ( ) const
inline

Definition at line 124 of file singlesitefunction.hxx.

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
template<class ITERATOR >
const T& opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::operator() ( ITERATOR  iter) const
inline

Definition at line 109 of file singlesitefunction.hxx.

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
template<class ITERATOR >
T& opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::operator() ( ITERATOR  iter)
inline

Definition at line 115 of file singlesitefunction.hxx.

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
StaticSingleSiteFunction& opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::operator= ( const StaticSingleSiteFunction< T, SIZE, STORAGE > &  other)
inline

Definition at line 99 of file singlesitefunction.hxx.

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
size_t opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::shape ( const size_t  index) const
inline

Definition at line 127 of file singlesitefunction.hxx.

template<class T , size_t SIZE, template< typename, size_t > class STORAGE>
size_t opengm::StaticSingleSiteFunction< T, SIZE, STORAGE >::size ( ) const
inline

Definition at line 121 of file singlesitefunction.hxx.