opengm::ModelViewFunction< GM, MARRAY > Class Template Reference
[Function Types]

Function that refers to a factor of another GraphicalModel. More...

#include <modelviewfunction.hxx>

Inheritance diagram for opengm::ModelViewFunction< GM, MARRAY >:
Inheritance graph
[legend]
Collaboration diagram for opengm::ModelViewFunction< GM, MARRAY >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef GM GraphicalModelType
typedef MARRAY OffsetType
typedef GM::ValueType ValueType
typedef GM::ValueType value_type
typedef GM::IndexType IndexType
typedef GM::LabelType LabelType

Public Member Functions

 ModelViewFunction (const GraphicalModelType &gm, const IndexType factorIndex, const ValueType scale, OffsetType const *offset)
 ModelViewFunction (const GraphicalModelType &gm, const IndexType factorIndex, const ValueType scale)
 ModelViewFunction (OffsetType const *offset)
 Constructor.
template<class Iterator >
ValueType operator() (Iterator begin) const
size_t size () const
LabelType shape (const size_t i) const
size_t dimension () const

Detailed Description

template<class GM, class MARRAY>
class opengm::ModelViewFunction< GM, MARRAY >

Function that refers to a factor of another GraphicalModel.

Template Parameters:
GM type of the graphical model which we want to view
MARRAY type of the array that holds the offset

Definition at line 16 of file modelviewfunction.hxx.


Member Typedef Documentation

template<class GM, class MARRAY>
typedef GM opengm::ModelViewFunction< GM, MARRAY >::GraphicalModelType

Definition at line 23 of file modelviewfunction.hxx.

template<class GM, class MARRAY>
typedef GM::IndexType opengm::ModelViewFunction< GM, MARRAY >::IndexType

Definition at line 27 of file modelviewfunction.hxx.

template<class GM, class MARRAY>
typedef GM::LabelType opengm::ModelViewFunction< GM, MARRAY >::LabelType

Definition at line 28 of file modelviewfunction.hxx.

template<class GM, class MARRAY>
typedef MARRAY opengm::ModelViewFunction< GM, MARRAY >::OffsetType

Definition at line 24 of file modelviewfunction.hxx.

template<class GM, class MARRAY>
typedef GM::ValueType opengm::ModelViewFunction< GM, MARRAY >::value_type

Definition at line 26 of file modelviewfunction.hxx.

template<class GM, class MARRAY>
typedef GM::ValueType opengm::ModelViewFunction< GM, MARRAY >::ValueType

Definition at line 25 of file modelviewfunction.hxx.


Constructor & Destructor Documentation

template<class GM, class MARRAY>
opengm::ModelViewFunction< GM, MARRAY >::ModelViewFunction ( const GraphicalModelType gm,
const IndexType  factorIndex,
const ValueType  scale,
OffsetType const *  offset 
)
template<class GM, class MARRAY>
opengm::ModelViewFunction< GM, MARRAY >::ModelViewFunction ( const GraphicalModelType gm,
const IndexType  factorIndex,
const ValueType  scale 
)
template<class GM , class MARRAY >
opengm::ModelViewFunction< GM, MARRAY >::ModelViewFunction ( OffsetType const *  offset  )  [inline]

Constructor.

Parameters:
offset pointer to the offset marray

Definition at line 105 of file modelviewfunction.hxx.


Member Function Documentation

template<class GM , class MARRAY >
size_t opengm::ModelViewFunction< GM, MARRAY >::dimension (  )  const [inline]

Definition at line 171 of file modelviewfunction.hxx.

template<class GM , class MARRAY >
template<class Iterator >
opengm::ModelViewFunction< GM, MARRAY >::ValueType opengm::ModelViewFunction< GM, MARRAY >::operator() ( Iterator  begin  )  const [inline]

Definition at line 120 of file modelviewfunction.hxx.

template<class GM , class MARRAY >
ModelViewFunction< GM, MARRAY >::LabelType opengm::ModelViewFunction< GM, MARRAY >::shape ( const size_t  i  )  const [inline]

Definition at line 139 of file modelviewfunction.hxx.

template<class GM , class MARRAY >
size_t opengm::ModelViewFunction< GM, MARRAY >::size (  )  const [inline]

Definition at line 156 of file modelviewfunction.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