Implementation of various equation types. More...
#include <hpp/core/comparison-type.hh>
Public Member Functions | |
virtual bool | operator() (vectorOut_t value, matrixOut_t jacobian) const |
Return the result of the comparison. | |
virtual bool | operator() (vectorOut_t value) const |
Return the result of the comparison. | |
Static Public Member Functions | |
static ComparisonTypesPtr_t | create (size_t dim) |
Create a vector of comparisons. | |
static ComparisonTypesPtr_t | create (const std::vector< ComparisonType::Type > types) |
Create a vector of comparisons. | |
Protected Member Functions | |
ComparisonTypes (const std::vector< ComparisonType::Type > types) |
Implementation of various equation types.
This class enable users to define different types of comparison for each component of the function. Comparator for each component is defined by input parameter of ComparisonTypes::create.
hpp::core::ComparisonTypes::ComparisonTypes | ( | const std::vector< ComparisonType::Type > | types | ) | [protected] |
static ComparisonTypesPtr_t hpp::core::ComparisonTypes::create | ( | size_t | dim | ) | [static] |
Create a vector of comparisons.
dim | size of the function output |
Referenced by hpp::core::ProblemSolver::comparisonType().
static ComparisonTypesPtr_t hpp::core::ComparisonTypes::create | ( | const std::vector< ComparisonType::Type > | types | ) | [static] |
Create a vector of comparisons.
types | vector of comparisons |
virtual bool hpp::core::ComparisonTypes::operator() | ( | vectorOut_t | value, |
matrixOut_t | jacobian | ||
) | const [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. |
Implements hpp::core::ComparisonType.
virtual bool hpp::core::ComparisonTypes::operator() | ( | vectorOut_t | value | ) | const [virtual] |
Return the result of the comparison.
[in,out] | value | the value that will be compared and saturated. |
Implements hpp::core::ComparisonType.