|
hpp-core 9.0.2
Implement basic classes for canonical path planning for kinematic chains.
|
#include <hpp/core/parameter.hh>
Public Types | |
| enum | Type { NONE , BOOL , INT , FLOAT , STRING , VECTOR , MATRIX , NB_TYPES } |
Public Member Functions | |
| ~Parameter () | |
| void | deleteValue () |
| Parameter (const bool &value) | |
| Parameter (const size_type &value) | |
| Parameter (const value_type &value) | |
| Parameter (const std::string &value) | |
| Parameter (const vector_t &value) | |
| Parameter (const matrix_t &value) | |
| Parameter (const Parameter &value) | |
| Copy constructor. | |
| Parameter () | |
| Construct an empty parameter (None). | |
| Parameter | operator= (const Parameter &value) |
| Type | type () const |
| Return the type of the value. | |
| bool | boolValue () const |
| size_type | intValue () const |
| value_type | floatValue () const |
| std::string | stringValue () const |
| vector_t | vectorValue () const |
| matrix_t | matrixValue () const |
Static Public Member Functions | |
| static std::string | typeName (Type type) |
| Return the name of the type. | |
Public Attributes | |
| Type | type_ |
| const void *const | value_ |
| Enumerator | |
|---|---|
| NONE | |
| BOOL | |
| INT | as size_type |
| FLOAT | as value_type |
| STRING | |
| VECTOR | as vector_t |
| MATRIX | as matrix_t |
| NB_TYPES | |
| hpp::core::Parameter::~Parameter | ( | ) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
| hpp::core::Parameter::Parameter | ( | const Parameter & | value | ) |
Copy constructor.
|
explicit |
Construct an empty parameter (None).
| bool hpp::core::Parameter::boolValue | ( | ) | const |
| void hpp::core::Parameter::deleteValue | ( | ) |
| value_type hpp::core::Parameter::floatValue | ( | ) | const |
| size_type hpp::core::Parameter::intValue | ( | ) | const |
| matrix_t hpp::core::Parameter::matrixValue | ( | ) | const |
| std::string hpp::core::Parameter::stringValue | ( | ) | const |
| Type hpp::core::Parameter::type | ( | ) | const |
Return the type of the value.
|
static |
Return the name of the type.
Return the value as a castable value into the approriate type
For instance,
The first assignment will succeed, while the second one will throw an exception.
| vector_t hpp::core::Parameter::vectorValue | ( | ) | const |
| Type hpp::core::Parameter::type_ |
| const void* const hpp::core::Parameter::value_ |