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

Function encoded as a dense multi-dimensional array, marray::Marray. More...

#include <explicit_function.hxx>

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

List of all members.

Public Types

typedef T ValueType
typedef L LabelType
typedef I IndexType

Public Member Functions

 ExplicitFunction ()
 ExplicitFunction (const T &value)
 construct a constant explicit function of order 0
 ExplicitFunction (const ExplicitFunction &other)
ExplicitFunctionoperator= (const ExplicitFunction &other)
template<class SHAPE_ITERATOR >
 ExplicitFunction (SHAPE_ITERATOR shapeBegin, SHAPE_ITERATOR shapeEnd)
 construct a function encoded by a value table (whose entries are initialized as 0)
template<class SHAPE_ITERATOR >
 ExplicitFunction (SHAPE_ITERATOR shapeBegin, SHAPE_ITERATOR shapeEnd, const T &value)
 construct a function encoded by a value table (whose entries are initialized with the same value)

Detailed Description

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

Function encoded as a dense multi-dimensional array, marray::Marray.

Examples:

grid_potts.cxx, interpixel_boundary_segmentation.cxx, io_graphical_model.cxx, markov-chain.cxx, one_to_one_matching.cxx, opengmBuildGrid.cxx, quick_start.cxx, and space_types.cxx.

Definition at line 15 of file explicit_function.hxx.


Member Typedef Documentation

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

Definition at line 22 of file explicit_function.hxx.

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

Definition at line 21 of file explicit_function.hxx.

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

Reimplemented from marray::View< T, false, A >.

Definition at line 20 of file explicit_function.hxx.


Constructor & Destructor Documentation

template<class T, class I = size_t, class L = size_t>
opengm::ExplicitFunction< T, I, L >::ExplicitFunction (  )  [inline]

Definition at line 24 of file explicit_function.hxx.

template<class T, class I = size_t, class L = size_t>
opengm::ExplicitFunction< T, I, L >::ExplicitFunction ( const T &  value  )  [inline]

construct a constant explicit function of order 0

Definition at line 29 of file explicit_function.hxx.

template<class T, class I = size_t, class L = size_t>
opengm::ExplicitFunction< T, I, L >::ExplicitFunction ( const ExplicitFunction< T, I, L > &  other  )  [inline]

Definition at line 33 of file explicit_function.hxx.

template<class T, class I = size_t, class L = size_t>
template<class SHAPE_ITERATOR >
opengm::ExplicitFunction< T, I, L >::ExplicitFunction ( SHAPE_ITERATOR  shapeBegin,
SHAPE_ITERATOR  shapeEnd 
) [inline]

construct a function encoded by a value table (whose entries are initialized as 0)

Example: A function depending on two variables with 3 and 4 labels, respectively.

    size_t shape[] = {3, 4};
    ExplicitFunction f(shape, shape + 2};

Definition at line 52 of file explicit_function.hxx.

template<class T, class I = size_t, class L = size_t>
template<class SHAPE_ITERATOR >
opengm::ExplicitFunction< T, I, L >::ExplicitFunction ( SHAPE_ITERATOR  shapeBegin,
SHAPE_ITERATOR  shapeEnd,
const T &  value 
) [inline]

construct a function encoded by a value table (whose entries are initialized with the same value)

Definition at line 58 of file explicit_function.hxx.


Member Function Documentation

template<class T, class I = size_t, class L = size_t>
ExplicitFunction& opengm::ExplicitFunction< T, I, L >::operator= ( const ExplicitFunction< T, I, L > &  other  )  [inline]

Definition at line 37 of file explicit_function.hxx.

Here is the caller graph for this function:

 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