A structure for ConstraintTypes enum providing addition functionality like enumToString and stringToEnum. More...
#include <enum_types.h>
Public Member Functions | |
ConstraintType (ConstraintTypes constraint_type) | |
ConstraintType constructor. | |
ConstraintTypes | getType () const |
Gets the enumerator. | |
void | setType (ConstraintTypes constraint_type) |
Sets the enumerator type. | |
void | setType (std::string constraint_type_name) |
Sets the enumerator type given the string representation. | |
std::string | toString () const |
A string representation of the enumerator. | |
Static Public Member Functions | |
static std::string | enumToString (ConstraintTypes constraint_type) |
Coverts ConstraintTypes value to its string representation. | |
static ConstraintTypes | stringToEnum (std::string constraint_type_name) |
Converts string to ConstraintTypes value. | |
Protected Attributes | |
ConstraintTypes | type_ |
Static Protected Attributes | |
static const std::map < std::string, ConstraintTypes > | name_to_enum_map_ = boost::assign::map_list_of ("primary", Primary) ("auxiliary", Auxiliary) ("inactive", Inactive) |
static const std::string | names_ [] = {"Primary", "Auxiliary", "Inactive"} |
A structure for ConstraintTypes enum providing addition functionality like enumToString and stringToEnum.
Definition at line 51 of file enum_types.h.
constrained_ik::constraint_types::ConstraintType::ConstraintType | ( | ConstraintTypes | constraint_type | ) | [inline] |
ConstraintType constructor.
constraint_type | enumerator value (Primary, Auxiliary, Inactive) |
Definition at line 57 of file enum_types.h.
static std::string constrained_ik::constraint_types::ConstraintType::enumToString | ( | ConstraintTypes | constraint_type | ) | [inline, static] |
Coverts ConstraintTypes value to its string representation.
constraint_type | type enumerator value (Primary, Auxiliary, Inactive) |
Definition at line 89 of file enum_types.h.
ConstraintTypes constrained_ik::constraint_types::ConstraintType::getType | ( | ) | const [inline] |
void constrained_ik::constraint_types::ConstraintType::setType | ( | ConstraintTypes | constraint_type | ) | [inline] |
Sets the enumerator type.
constraint_type | enumerator value (Primary, Auxiliary, Inactive) |
Definition at line 76 of file enum_types.h.
void constrained_ik::constraint_types::ConstraintType::setType | ( | std::string | constraint_type_name | ) | [inline] |
Sets the enumerator type given the string representation.
constraint_type_name | enumerator string value (Primary, Auxiliary, Inactive) |
Definition at line 82 of file enum_types.h.
ConstraintTypes ConstraintType::stringToEnum | ( | std::string | constraint_type_name | ) | [static] |
Converts string to ConstraintTypes value.
constraint_type_name | enumerator string value (Primary, Auxiliary, Inactive) |
Definition at line 38 of file enum_types.cpp.
std::string constrained_ik::constraint_types::ConstraintType::toString | ( | ) | const [inline] |
A string representation of the enumerator.
Definition at line 64 of file enum_types.h.
const std::map< std::string, ConstraintTypes > ConstraintType::name_to_enum_map_ = boost::assign::map_list_of ("primary", Primary) ("auxiliary", Auxiliary) ("inactive", Inactive) [static, protected] |
Map of ConstraintTypes string name to ConstraintType
Definition at line 101 of file enum_types.h.
const std::string ConstraintType::names_ = {"Primary", "Auxiliary", "Inactive"} [static, protected] |
list of string names for ConstraintTypes
Definition at line 100 of file enum_types.h.
ConstraintTypes constrained_ik::constraint_types::ConstraintType::type_ [protected] |
constraint type
Definition at line 99 of file enum_types.h.