Public Types | Public Member Functions | Private Attributes
UVariant Class Reference

#include <UVariant.h>

List of all members.

Public Types

enum  Type {
  kBool, kChar, kUChar, kShort,
  kUShort, kInt, kUInt, kFloat,
  kDouble, kStr, kUndef
}

Public Member Functions

bool isBool () const
bool isChar () const
bool isDouble () const
bool isFloat () const
bool isInt () const
bool isShort () const
bool isStr () const
bool isUChar () const
bool isUInt () const
bool isUndef () const
bool isUShort () const
bool toBool () const
char toChar (bool *ok=0) const
double toDouble (bool *ok=0) const
float toFloat (bool *ok=0) const
int toInt (bool *ok=0) const
short toShort (bool *ok=0) const
std::string toStr (bool *ok=0) const
unsigned char toUChar (bool *ok=0) const
unsigned int toUInt (bool *ok=0) const
unsigned short toUShort (bool *ok=0) const
Type type () const
 UVariant ()
 UVariant (const bool &value)
 UVariant (const char &value)
 UVariant (const unsigned char &value)
 UVariant (const short &value)
 UVariant (const unsigned short &value)
 UVariant (const int &value)
 UVariant (const unsigned int &value)
 UVariant (const float &value)
 UVariant (const double &value)
 UVariant (const char *value)
 UVariant (const std::string &value)
virtual ~UVariant ()

Private Attributes

std::vector< unsigned char > data_
Type type_

Detailed Description

Experimental class...

Definition at line 30 of file UVariant.h.


Member Enumeration Documentation

Enumerator:
kBool 
kChar 
kUChar 
kShort 
kUShort 
kInt 
kUInt 
kFloat 
kDouble 
kStr 
kUndef 

Definition at line 33 of file UVariant.h.


Constructor & Destructor Documentation

Definition at line 25 of file UVariant.cpp.

UVariant::UVariant ( const bool &  value)

Definition at line 29 of file UVariant.cpp.

UVariant::UVariant ( const char &  value)

Definition at line 35 of file UVariant.cpp.

UVariant::UVariant ( const unsigned char &  value)

Definition at line 41 of file UVariant.cpp.

UVariant::UVariant ( const short &  value)

Definition at line 47 of file UVariant.cpp.

UVariant::UVariant ( const unsigned short &  value)

Definition at line 53 of file UVariant.cpp.

UVariant::UVariant ( const int &  value)

Definition at line 59 of file UVariant.cpp.

UVariant::UVariant ( const unsigned int &  value)

Definition at line 65 of file UVariant.cpp.

UVariant::UVariant ( const float &  value)

Definition at line 71 of file UVariant.cpp.

UVariant::UVariant ( const double &  value)

Definition at line 77 of file UVariant.cpp.

UVariant::UVariant ( const char *  value)

Definition at line 83 of file UVariant.cpp.

UVariant::UVariant ( const std::string &  value)

Definition at line 90 of file UVariant.cpp.

virtual UVariant::~UVariant ( ) [inline, virtual]

Definition at line 85 of file UVariant.h.


Member Function Documentation

bool UVariant::isBool ( ) const [inline]

Definition at line 63 of file UVariant.h.

bool UVariant::isChar ( ) const [inline]

Definition at line 64 of file UVariant.h.

bool UVariant::isDouble ( ) const [inline]

Definition at line 71 of file UVariant.h.

bool UVariant::isFloat ( ) const [inline]

Definition at line 70 of file UVariant.h.

bool UVariant::isInt ( ) const [inline]

Definition at line 68 of file UVariant.h.

bool UVariant::isShort ( ) const [inline]

Definition at line 66 of file UVariant.h.

bool UVariant::isStr ( ) const [inline]

Definition at line 72 of file UVariant.h.

bool UVariant::isUChar ( ) const [inline]

Definition at line 65 of file UVariant.h.

bool UVariant::isUInt ( ) const [inline]

Definition at line 69 of file UVariant.h.

bool UVariant::isUndef ( ) const [inline]

Definition at line 62 of file UVariant.h.

bool UVariant::isUShort ( ) const [inline]

Definition at line 67 of file UVariant.h.

bool UVariant::toBool ( ) const

Definition at line 97 of file UVariant.cpp.

char UVariant::toChar ( bool *  ok = 0) const

Definition at line 110 of file UVariant.cpp.

double UVariant::toDouble ( bool *  ok = 0) const

Definition at line 565 of file UVariant.cpp.

float UVariant::toFloat ( bool *  ok = 0) const

Definition at line 536 of file UVariant.cpp.

int UVariant::toInt ( bool *  ok = 0) const

Definition at line 406 of file UVariant.cpp.

short UVariant::toShort ( bool *  ok = 0) const

Definition at line 264 of file UVariant.cpp.

std::string UVariant::toStr ( bool *  ok = 0) const

Definition at line 586 of file UVariant.cpp.

unsigned char UVariant::toUChar ( bool *  ok = 0) const

Definition at line 187 of file UVariant.cpp.

unsigned int UVariant::toUInt ( bool *  ok = 0) const

Definition at line 467 of file UVariant.cpp.

unsigned short UVariant::toUShort ( bool *  ok = 0) const

Definition at line 333 of file UVariant.cpp.

Type UVariant::type ( ) const [inline]

Definition at line 60 of file UVariant.h.


Member Data Documentation

std::vector<unsigned char> UVariant::data_ [private]

Definition at line 89 of file UVariant.h.

Type UVariant::type_ [private]

Definition at line 88 of file UVariant.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:39