|
| template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE > |
| bool | operator== (const IndicatorVariable< INDEX1_TYPE, LABEL1_TYPE > &indicatorVar1, const IndicatorVariable< INDEX2_TYPE, LABEL2_TYPE > &indicatorVar2) |
| | Equality operator for IndicatorVariable. More...
|
| |
| template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE > |
| bool | operator!= (const IndicatorVariable< INDEX1_TYPE, LABEL1_TYPE > &indicatorVar1, const IndicatorVariable< INDEX2_TYPE, LABEL2_TYPE > &indicatorVar2) |
| | Inequality operator for IndicatorVariable. More...
|
| |
| template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE > |
| bool | operator< (const IndicatorVariable< INDEX1_TYPE, LABEL1_TYPE > &indicatorVar1, const IndicatorVariable< INDEX2_TYPE, LABEL2_TYPE > &indicatorVar2) |
| | Less operator for IndicatorVariable. More...
|
| |
| template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE > |
| bool | operator> (const IndicatorVariable< INDEX1_TYPE, LABEL1_TYPE > &indicatorVar1, const IndicatorVariable< INDEX2_TYPE, LABEL2_TYPE > &indicatorVar2) |
| | Greater operator for IndicatorVariable. More...
|
| |
| template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE > |
| bool | operator<= (const IndicatorVariable< INDEX1_TYPE, LABEL1_TYPE > &indicatorVar1, const IndicatorVariable< INDEX2_TYPE, LABEL2_TYPE > &indicatorVar2) |
| | Less equal operator for IndicatorVariable. More...
|
| |
| template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE > |
| bool | operator>= (const IndicatorVariable< INDEX1_TYPE, LABEL1_TYPE > &indicatorVar1, const IndicatorVariable< INDEX2_TYPE, LABEL2_TYPE > &indicatorVar2) |
| | Greater equal operator for IndicatorVariable. More...
|
| |
template<class INDEX_TYPE = size_t, class LABEL_TYPE = size_t>
class opengm::IndicatorVariable< INDEX_TYPE, LABEL_TYPE >
Combine a group of variables to a new variable.
An indicator variable defines a new boolean variable from a set of variable label pairs. Depending on the selected logical operator type an indicator variable will be interpreted as 1 if all (logical and), at least one (logical or) or none (logical not) of the variables take the labels stated by the variable label pairs.
- Template Parameters
-
| INDEX_TYPE | Index type. |
| LABEL_TYPE | Label type. |
- Note
- The set of variable label pairs will be stored in an ordered sequence. This means a variable label pair will come in the sequence before all other variable label pairs whose variable index is greater. And if two variable label pairs have the same variable index the one with the smaller label will come first.
Definition at line 14 of file indicator_variable.hxx.
template<class INDEX_TYPE = size_t, class LABEL_TYPE = size_t>
template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE >
Inequality operator for IndicatorVariable.
- Template Parameters
-
| INDEX1_TYPE | Index type of the first indicator variable. |
| LABEL1_TYPE | Label type of the first indicator variable. |
| INDEX2_TYPE | Index type of the second indicator variable. |
| LABEL2_TYPE | Label type of the second indicator variable. |
- Parameters
-
| [in] | indicatorVar1 | First indicator variable. |
| [in] | indicatorVar2 | Second indicator variable. |
- Returns
- Returns true if two IndicatorVariables are different. False otherwise.
Definition at line 559 of file indicator_variable.hxx.
template<class INDEX_TYPE = size_t, class LABEL_TYPE = size_t>
template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE >
Less operator for IndicatorVariable.
- Template Parameters
-
| INDEX1_TYPE | Index type of the first indicator variable. |
| LABEL1_TYPE | Label type of the first indicator variable. |
| INDEX2_TYPE | Index type of the second indicator variable. |
| LABEL2_TYPE | Label type of the second indicator variable. |
- Parameters
-
| [in] | indicatorVar1 | First indicator variable. |
| [in] | indicatorVar2 | Second indicator variable. |
- Returns
- Returns true if an IndicatorVariables is smaller than an other one. False otherwise.
- Note
- Indicator variables will be ordered first by the logical operator type (And < Or < Not), then by the number of variable label pairs. If both the logical operator type and the number of variable label pairs are equal the first variable label pairs which are different in the first and the second indicator variable will be used for comparison.
Definition at line 564 of file indicator_variable.hxx.
template<class INDEX_TYPE = size_t, class LABEL_TYPE = size_t>
template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE >
Less equal operator for IndicatorVariable.
- Template Parameters
-
| INDEX1_TYPE | Index type of the first indicator variable. |
| LABEL1_TYPE | Label type of the first indicator variable. |
| INDEX2_TYPE | Index type of the second indicator variable. |
| LABEL2_TYPE | Label type of the second indicator variable. |
- Parameters
-
| [in] | indicatorVar1 | First indicator variable. |
| [in] | indicatorVar2 | Second indicator variable. |
- Returns
- Returns true if an IndicatorVariables is smaller than or equal to an other one. False otherwise.
- Note
- Indicator variables will be ordered first by the logical operator type (And < Or < Not), then by the number of variable label pairs. If both the logical operator type and the number of variable label pairs are equal the first variable label pairs which are different in the first and the second indicator variable will be used for comparison.
Definition at line 620 of file indicator_variable.hxx.
template<class INDEX_TYPE = size_t, class LABEL_TYPE = size_t>
template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE >
Equality operator for IndicatorVariable.
- Template Parameters
-
| INDEX1_TYPE | Index type of the first indicator variable. |
| LABEL1_TYPE | Label type of the first indicator variable. |
| INDEX2_TYPE | Index type of the second indicator variable. |
| LABEL2_TYPE | Label type of the second indicator variable. |
- Parameters
-
| [in] | indicatorVar1 | First indicator variable. |
| [in] | indicatorVar2 | Second indicator variable. |
- Returns
- Returns true if two IndicatorVariables are equal. False otherwise.
Definition at line 554 of file indicator_variable.hxx.
template<class INDEX_TYPE = size_t, class LABEL_TYPE = size_t>
template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE >
Greater operator for IndicatorVariable.
- Template Parameters
-
| INDEX1_TYPE | Index type of the first indicator variable. |
| LABEL1_TYPE | Label type of the first indicator variable. |
| INDEX2_TYPE | Index type of the second indicator variable. |
| LABEL2_TYPE | Label type of the second indicator variable. |
- Parameters
-
| [in] | indicatorVar1 | First indicator variable. |
| [in] | indicatorVar2 | Second indicator variable. |
- Returns
- Returns true if an IndicatorVariables is greater than an other one. False otherwise.
- Note
- Indicator variables will be ordered first by the logical operator type (And < Or < Not), then by the number of variable label pairs. If both the logical operator type and the number of variable label pairs are equal the first variable label pairs which are different in the first and the second indicator variable will be used for comparison.
Definition at line 592 of file indicator_variable.hxx.
template<class INDEX_TYPE = size_t, class LABEL_TYPE = size_t>
template<class INDEX1_TYPE , class LABEL1_TYPE , class INDEX2_TYPE , class LABEL2_TYPE >
Greater equal operator for IndicatorVariable.
- Template Parameters
-
| INDEX1_TYPE | Index type of the first indicator variable. |
| LABEL1_TYPE | Label type of the first indicator variable. |
| INDEX2_TYPE | Index type of the second indicator variable. |
| LABEL2_TYPE | Label type of the second indicator variable. |
- Parameters
-
| [in] | indicatorVar1 | First indicator variable. |
| [in] | indicatorVar2 | Second indicator variable. |
- Returns
- Returns true if an IndicatorVariables is greater than or equal to an other one. False otherwise.
- Note
- Indicator variables will be ordered first by the logical operator type (And < Or < Not), then by the number of variable label pairs. If both the logical operator type and the number of variable label pairs are equal the first variable label pairs which are different in the first and the second indicator variable will be used for comparison.
Definition at line 645 of file indicator_variable.hxx.