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>
54 inline typename ViewFunction<GM>::ValueType
55 ViewFunction<GM>::operator()
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.
ValueType operator()(Iterator begin) const
GM::FactorType FactorType
reference to a Factor of a GraphicalModel
LabelType shape(const IndexType) const
GM::OperatorType OperatorType
IndexType dimension() const