|
| BuiltinVariant () |
| Default constructor. More...
|
|
| BuiltinVariant (const BuiltinVariant &src) |
| Copy constructor. More...
|
|
| BuiltinVariant (const Variant &src) |
| Copy constructor (overloaded version taking a variant) More...
|
|
double | getNumericValue () const |
| Retrieve the built-in variant's numeric value. More...
|
|
| ~BuiltinVariant () |
| Destructor. More...
|
|
ArrayVariant | asArray () const |
| Retrieve this variant as array. More...
|
|
BuiltinVariant | asBuiltin () const |
| Retrieve this variant as builtin. More...
|
|
CollectionVariant | asCollection () const |
| Retrieve this variant as collection. More...
|
|
MessageVariant | asMessage () const |
| Retrieve this variant as message. More...
|
|
void | clear () |
| Clear the variant. More...
|
|
Serializer | createSerializer () const |
| Create a serializer for this variant. More...
|
|
const DataType & | getType () const |
| Retrieve the data type of this variant. More...
|
|
template<typename T > |
type_traits::DataType< T >::ValueType & | getValue () |
| Retrieve the variant's value (non-const version) More...
|
|
template<typename T > |
const type_traits::DataType< T >::ValueType & | getValue () const |
| Retrieve the variant's value (const version) More...
|
|
const std::type_info & | getValueTypeInfo () const |
| Retrieve the value type information of this variant. More...
|
|
bool | hasType () const |
| True, if the variant has a type. More...
|
|
bool | isArray () const |
| True, if this variant represents an array. More...
|
|
bool | isBuiltin () const |
| True, if this variant represents a built-in. More...
|
|
bool | isCollection () const |
| True, if this variant represents a collection. More...
|
|
bool | isEmpty () const |
| True, if the variant is empty, i.e., does not have a value assigned. More...
|
|
bool | isMessage () const |
| True, if this variant represents a message. More...
|
|
template<typename T > |
| operator T () const |
| Conversion operator. More...
|
|
template<typename T > |
bool | operator!= (const T &value) const |
| True, if this variant's value does not equal another value. More...
|
|
template<typename T > |
Variant & | operator= (const T &src) |
| Assignment operator. More...
|
|
template<typename T > |
bool | operator== (const T &value) const |
| True, if this variant's value equals another value. More...
|
|
void | read (std::istream &stream) |
| Read the variant from a stream. More...
|
|
template<typename T > |
void | setValue (const T &value) |
| Set the variant's value. More...
|
|
| Variant () |
| Default constructor. More...
|
|
template<typename T > |
| Variant (const T &src) |
| Copy constructor. More...
|
|
void | write (std::ostream &stream) const |
| Write the variant to a stream. More...
|
|
| ~Variant () |
| Destructor. More...
|
|
|
template<typename T > |
static BuiltinVariant | create (const DataType &type) |
| Create a built-in variant. More...
|
|
template<typename T > |
static double | getNumericValue (const T &value, typename boost::enable_if< boost::type_traits::ice_or< boost::is_base_of< ros::Duration, T >::value, boost::is_base_of< ros::Time, T >::value > >::type *=0) |
| Retrieve the built-in variant's numeric value (overloaded version taking a ROS duration or ROS time) More...
|
|
template<typename T > |
static double | getNumericValue (const T &value, typename boost::enable_if< typename type_traits::BuiltinType< T >::IsNumeric >::type *=0, typename boost::disable_if< boost::type_traits::ice_or< boost::is_base_of< ros::Duration, T >::value, boost::is_base_of< ros::Time, T >::value > >::type *=0) |
| Retrieve the built-in variant's numeric value (overloaded version taking a numeric value other than a ROS duration or a ROS time) More...
|
|
template<typename T > |
static double | getNumericValue (const T &value, typename boost::disable_if< typename type_traits::BuiltinType< T >::IsNumeric >::type *=0) |
| Retrieve the built-in variant's numeric value (overloaded version taking a non-numeric value) More...
|
|
template<typename T > |
static bool | isEqual (const typename type_traits::BuiltinType< T >::ValueType &lhs, const typename type_traits::BuiltinType< T >::ValueType &rhs, typename boost::enable_if< boost::has_equal_to< typename type_traits::BuiltinType< T >::ValueType, typename type_traits::BuiltinType< T >::ValueType, bool > >::type *=0) |
| Compare the values of two built-in variants (overloaded version taking two comparable values) More...
|
|
template<typename T > |
static bool | isEqual (const typename type_traits::BuiltinType< T >::ValueType &lhs, const typename type_traits::BuiltinType< T >::ValueType &rhs, typename boost::disable_if< boost::has_equal_to< typename type_traits::BuiltinType< T >::ValueType, typename type_traits::BuiltinType< T >::ValueType, bool > >::type *=0) |
| Compare the values of two built-in variants (overloaded version taking two non-comparable values) More...
|
|
template<typename T > |
static void | read (std::istream &stream, typename type_traits::BuiltinType< T >::ValueType &value, typename boost::enable_if< boost::is_same< T, bool > >::type *=0) |
| Read a built-in variant from a stream (overloaded version taking a boolean value) More...
|
|
template<typename T > |
static void | read (std::istream &stream, typename type_traits::BuiltinType< T >::ValueType &value, typename boost::disable_if< boost::is_same< T, bool > >::type *=0, typename boost::enable_if< boost::has_right_shift< std::istream, typename type_traits::BuiltinType< T >::ValueType & > >::type *=0) |
| Read a built-in variant from a stream (overloaded version taking a non-boolean, stream-readable value) More...
|
|
template<typename T > |
static void | read (std::istream &stream, typename type_traits::BuiltinType< T >::ValueType &value, typename boost::disable_if< boost::is_same< T, bool > >::type *=0, typename boost::disable_if< boost::has_right_shift< std::istream, typename type_traits::BuiltinType< T >::ValueType & > >::type *=0) |
| Read a built-in variant from a stream (overloaded version taking a non-boolean, non-stream-readable value) More...
|
|
template<typename T > |
static void | write (std::ostream &stream, const typename type_traits::BuiltinType< T >::ValueType &value, typename boost::enable_if< boost::is_same< T, bool > >::type *=0) |
| Write a variant to a stream (overloaded version taking a boolean value) More...
|
|
template<typename T > |
static void | write (std::ostream &stream, const typename type_traits::BuiltinType< T >::ValueType &value, typename boost::disable_if< boost::is_same< T, bool > >::type *=0, typename boost::enable_if< boost::has_left_shift< std::ostream, const typename type_traits::BuiltinType< T >::ValueType & > >::type *=0) |
| Write a variant to a stream (overloaded version taking a non-boolean, stream-writable value) More...
|
|
template<typename T > |
static void | write (std::ostream &stream, const typename type_traits::BuiltinType< T >::ValueType &value, typename boost::disable_if< boost::is_same< T, bool > >::type *=0, typename boost::disable_if< boost::has_left_shift< std::ostream, const typename type_traits::BuiltinType< T >::ValueType & > >::type *=0) |
| Write a variant to a stream (overloaded version taking a non-boolean, non-stream-writable value) More...
|
|
template<typename T > |
static void | assign (Variant &dst, const T &src, typename boost::enable_if< boost::is_base_of< Variant, T > >::type *=0) |
| Assign a variant (overloaded version taking a variant) More...
|
|
template<typename T > |
static void | assign (Variant &dst, const T &src, typename boost::disable_if< boost::is_base_of< Variant, T > >::type *=0) |
| Assign a variant (overloaded version taking a variant value) More...
|
|
template<typename T > |
static bool | isEqual (const Variant &variant, const T &value, typename boost::enable_if< boost::is_base_of< Variant, T > >::type *=0) |
| True, if a variant's value equals another value (overloaded version taking a variant) More...
|
|
template<typename T > |
static bool | isEqual (const Variant &variant, const T &value, typename boost::disable_if< boost::is_base_of< Variant, T > >::type *=0) |
| True, if a variant's value equals another value (overloaded version taking a variant value) More...
|
|
template<typename T > |
static void | set (Variant &variant, const Pointer< typename type_traits::DataType< T >::ValueType > &value) |
| Set a variant's value pointer. More...
|
|
template<typename T > |
static void | setValue (Variant &dst, const T &value, typename boost::enable_if< boost::is_base_of< Variant, T > >::type *=0) |
| Set a variant's value (overloaded version taking a variant) More...
|
|
template<typename T > |
static void | setValue (Variant &dst, const T &value, typename boost::disable_if< boost::is_base_of< Variant, T > >::type *=0) |
| Set a variant's value (overloaded version taking a variant value) More...
|
|
Built-in variant type.
Definition at line 35 of file BuiltinVariant.h.