OpenGM  2.3.x
Discrete Graphical Model Library
opengm::LinearConstraintFunctionTraits< LINEAR_CONSTRAINT_FUNCTION_TYPE > Struct Template Reference

Traits class for linear constraint functions. More...

#include <linear_constraint_function_base.hxx>

+ Collaboration diagram for opengm::LinearConstraintFunctionTraits< LINEAR_CONSTRAINT_FUNCTION_TYPE >:

Detailed Description

template<typename LINEAR_CONSTRAINT_FUNCTION_TYPE>
struct opengm::LinearConstraintFunctionTraits< LINEAR_CONSTRAINT_FUNCTION_TYPE >

Traits class for linear constraint functions.

Each linear constraint function has to provide a template specialization of this function to provide appropriate typedefs. The following types have to be defined:

  1. ValueType
  2. IndexType
  3. LabelType
  4. LinearConstraintType
  5. LinearConstraintsIteratorType
  6. ViolatedLinearConstraintsIteratorType
  7. ViolatedLinearConstraintsWeightsIteratorType
  8. IndicatorVariablesIteratorType
Template Parameters
LINEAR_CONSTRAINT_FUNCTION_TYPEThe linear constraint function type.

Definition at line 12 of file linear_constraint_function_base.hxx.