Public Member Functions | Private Member Functions | Private Attributes
RosIntrospection::Variant Class Reference

#include <variant.hpp>

List of all members.

Public Member Functions

template<typename T >
void assign (const T &value)
void assign (const char *buffer, size_t length)
template<>
void assign (const absl::string_view &value)
template<>
void assign (const std::string &value)
template<typename T >
convert () const
template<typename T >
extract () const
BuiltinType getTypeID () const
Variantoperator= (const Variant &other)
 Variant ()
 Variant (const Variant &other)
 Variant (Variant &&other)
template<typename T >
 Variant (const T &value)
 Variant (const char *buffer, size_t length)
 ~Variant ()

Private Member Functions

void clearStringIfNecessary ()

Private Attributes

union {
   std::array< uint8_t, 8 >   raw_data
   char *   raw_string
_storage
BuiltinType _type

Detailed Description

Definition at line 49 of file variant.hpp.


Constructor & Destructor Documentation

Definition at line 54 of file variant.hpp.

Definition at line 158 of file variant.hpp.

RosIntrospection::Variant::Variant ( const Variant other) [inline]

Definition at line 61 of file variant.hpp.

Definition at line 76 of file variant.hpp.

template<typename T >
RosIntrospection::Variant::Variant ( const T &  value) [inline]

Definition at line 138 of file variant.hpp.

RosIntrospection::Variant::Variant ( const char *  buffer,
size_t  length 
) [inline]

Definition at line 152 of file variant.hpp.


Member Function Documentation

template<typename T >
void RosIntrospection::Variant::assign ( const T &  value) [inline]

Definition at line 208 of file variant.hpp.

void RosIntrospection::Variant::assign ( const char *  buffer,
size_t  length 
) [inline]

Definition at line 229 of file variant.hpp.

template<>
void RosIntrospection::Variant::assign ( const absl::string_view value) [inline]

Definition at line 242 of file variant.hpp.

template<>
void RosIntrospection::Variant::assign ( const std::string &  value) [inline]

Definition at line 247 of file variant.hpp.

Definition at line 220 of file variant.hpp.

std::string RosIntrospection::Variant::convert ( ) const [inline]

Definition at line 254 of file variant.hpp.

std::string RosIntrospection::Variant::extract ( ) const [inline]

Definition at line 169 of file variant.hpp.

Definition at line 165 of file variant.hpp.

Variant& RosIntrospection::Variant::operator= ( const Variant other) [inline]

Definition at line 90 of file variant.hpp.


Member Data Documentation

union { ... } RosIntrospection::Variant::_storage [private]

Definition at line 130 of file variant.hpp.

std::array<uint8_t,8> RosIntrospection::Variant::raw_data

Definition at line 124 of file variant.hpp.

Definition at line 125 of file variant.hpp.


The documentation for this class was generated from the following file:


ros_type_introspection
Author(s): Davide Faconti
autogenerated on Tue May 14 2019 02:49:42