2 #ifndef OPENGM_VIEW_FUNCTION_HXX 3 #define OPENGM_VIEW_FUNCTION_HXX 15 typename GM::ValueType,typename GM::IndexType, typename GM::LabelType>
27 template<
class Iterator>
29 LabelType
shape(
const IndexType)
const;
31 IndexType
size()
const;
34 FactorType
const* factor_;
53 template<
class Iterator>
59 return factor_->operator()(begin);
68 return factor_->numberOfLabels(index);
74 return factor_->numberOfVariables();
80 return factor_->size( );
85 #endif // #ifndef OPENGM_VIEW_FUNCTION_HXX
Fallback implementation of member functions of OpenGM functions.
LabelType shape(const IndexType) const
ValueType operator()(Iterator begin) const
GM::FactorType FactorType
IndexType dimension() const
reference to a Factor of a GraphicalModel
GM::OperatorType OperatorType