opengm::ConstantFunction< T, I, L > Class Template Reference
[Function Types]

Constant function. More...

#include <constant.hxx>

Inheritance diagram for opengm::ConstantFunction< T, I, L >:
Inheritance graph
[legend]
Collaboration diagram for opengm::ConstantFunction< T, I, L >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef T ValueType
typedef I IndexType
typedef L LabelType

Public Member Functions

 ConstantFunction ()
template<class ITERATOR >
 ConstantFunction (ITERATOR, ITERATOR, const T)
size_t shape (const IndexType) const
 extension a value table encoding this function would have
size_t size () const
 number of entries a value table encoding this function would have (used for I/O)
size_t dimension () const
template<class ITERATOR >
ValueType operator() (ITERATOR) const
bool isPotts () const
bool isGeneralizedPotts () const
ValueType min () const
ValueType max () const
ValueType sum () const
ValueType product () const
MinMaxFunctor< ValueTypeminMax () const
 find minimum and maximum of the function in a single sweep

Detailed Description

template<class T, class I = size_t, class L = size_t>
class opengm::ConstantFunction< T, I, L >

Constant function.

Definition at line 19 of file constant.hxx.


Member Typedef Documentation

template<class T, class I = size_t, class L = size_t>
typedef I opengm::ConstantFunction< T, I, L >::IndexType

Definition at line 24 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
typedef L opengm::ConstantFunction< T, I, L >::LabelType

Definition at line 25 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
typedef T opengm::ConstantFunction< T, I, L >::ValueType

Definition at line 23 of file constant.hxx.


Constructor & Destructor Documentation

template<class T , class I , class L >
opengm::ConstantFunction< T, I, L >::ConstantFunction (  )  [inline]

Definition at line 98 of file constant.hxx.

template<class T , class I , class L >
template<class ITERATOR >
opengm::ConstantFunction< T, I, L >::ConstantFunction ( ITERATOR  shapeBegin,
ITERATOR  shapeEnd,
const T  value 
) [inline]

Definition at line 86 of file constant.hxx.


Member Function Documentation

template<class T , class I , class L >
size_t opengm::ConstantFunction< T, I, L >::dimension (  )  const [inline]

Definition at line 127 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
bool opengm::ConstantFunction< T, I, L >::isGeneralizedPotts (  )  const [inline]

Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.

Definition at line 38 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
bool opengm::ConstantFunction< T, I, L >::isPotts (  )  const [inline]

Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.

Definition at line 37 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
ValueType opengm::ConstantFunction< T, I, L >::max (  )  const [inline]

Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.

Definition at line 40 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
ValueType opengm::ConstantFunction< T, I, L >::min (  )  const [inline]

Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.

Definition at line 39 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
MinMaxFunctor<ValueType> opengm::ConstantFunction< T, I, L >::minMax (  )  const [inline]

find minimum and maximum of the function in a single sweep

Returns:
class holding the minimum and the maximum

Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.

Definition at line 48 of file constant.hxx.

template<class T , class I , class L >
template<class ITERATOR >
ConstantFunction< T, I, L >::ValueType opengm::ConstantFunction< T, I, L >::operator() ( ITERATOR  begin  )  const [inline]

Definition at line 106 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
ValueType opengm::ConstantFunction< T, I, L >::product (  )  const [inline]

Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.

Definition at line 42 of file constant.hxx.

template<class T , class I , class L >
size_t opengm::ConstantFunction< T, I, L >::shape ( const IndexType  i  )  const [inline]

extension a value table encoding this function would have

Parameters:
i dimension

Definition at line 117 of file constant.hxx.

template<class T , class I , class L >
size_t opengm::ConstantFunction< T, I, L >::size (  )  const [inline]

number of entries a value table encoding this function would have (used for I/O)

Definition at line 134 of file constant.hxx.

template<class T, class I = size_t, class L = size_t>
ValueType opengm::ConstantFunction< T, I, L >::sum (  )  const [inline]

Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.

Definition at line 41 of file constant.hxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:10 2013 for OpenGM by  doxygen 1.6.3