Abstract class defining the comparison for a function value and doing a saturation, necessary for inequality constraint. More...
#include <hpp/core/comparison-type.hh>
Public Types | |
enum | Type { Equality, EqualToZero, Superior, Inferior, DoubleInequality } |
typedef std::vector< Type > | VectorOfTypes |
Public Member Functions | |
virtual bool | operator() (vectorOut_t value, matrixOut_t jacobian) const =0 |
Return the result of the comparison. More... | |
virtual bool | operator() (vectorOut_t value) const =0 |
Return the result of the comparison. More... | |
virtual bool | constantRightHandSide () const |
Return whether the right hand side of the comparison is constant. More... | |
Static Public Member Functions | |
static ComparisonTypePtr_t | createDefault () |
Abstract class defining the comparison for a function value and doing a saturation, necessary for inequality constraint.
used to compare two vector. They are used in ConfigProjector to implement inequality constraint.
typedef std::vector<Type> hpp::core::ComparisonType::VectorOfTypes |
|
inlinevirtual |
Return whether the right hand side of the comparison is constant.
Reimplemented in hpp::core::Equality.
|
static |
|
pure virtual |
Return the result of the comparison.
[in,out] | value | the value that will be compared and saturated. |
[in,out] | jacobian | the jacobian to be saturated depending on the value. |
Implemented in hpp::core::DoubleInequality, hpp::core::Inequality< T >, hpp::core::ComparisonTypes, hpp::core::EqualToZero, and hpp::core::Equality.
|
pure virtual |
Return the result of the comparison.
[in,out] | value | the value that will be compared and saturated. |
Implemented in hpp::core::DoubleInequality, hpp::core::Inequality< T >, hpp::core::ComparisonTypes, hpp::core::EqualToZero, and hpp::core::Equality.