Public Member Functions | Private Attributes | List of all members
SafeAny::SimpleString Class Reference

#include <simple_string.hpp>

Public Member Functions

const char * data () const
 
char * data ()
 
 SimpleString (const std::string &str)
 
 SimpleString (const char *input_data)
 
 SimpleString (const char *input_data, std::size_t size)
 
 SimpleString (const SimpleString &other)
 
std::size_t size () const
 
std::string toStdString () const
 
 ~SimpleString ()
 

Private Attributes

union {
   char *   ptr
 
   char   soo [sizeof(void *)]
 
_data
 
std::size_t _size
 

Detailed Description

Definition at line 10 of file simple_string.hpp.

Constructor & Destructor Documentation

SafeAny::SimpleString::SimpleString ( const std::string &  str)
inline

Definition at line 13 of file simple_string.hpp.

SafeAny::SimpleString::SimpleString ( const char *  input_data)
inline

Definition at line 16 of file simple_string.hpp.

SafeAny::SimpleString::SimpleString ( const char *  input_data,
std::size_t  size 
)
inline

Definition at line 20 of file simple_string.hpp.

SafeAny::SimpleString::SimpleString ( const SimpleString other)
inline

Definition at line 30 of file simple_string.hpp.

SafeAny::SimpleString::~SimpleString ( )
inline

Definition at line 34 of file simple_string.hpp.

Member Function Documentation

const char* SafeAny::SimpleString::data ( ) const
inline

Definition at line 47 of file simple_string.hpp.

char* SafeAny::SimpleString::data ( )
inline

Definition at line 58 of file simple_string.hpp.

std::size_t SafeAny::SimpleString::size ( ) const
inline

Definition at line 69 of file simple_string.hpp.

std::string SafeAny::SimpleString::toStdString ( ) const
inline

Definition at line 42 of file simple_string.hpp.

Member Data Documentation

union { ... } SafeAny::SimpleString::_data
std::size_t SafeAny::SimpleString::_size
private

Definition at line 80 of file simple_string.hpp.

char* SafeAny::SimpleString::ptr

Definition at line 76 of file simple_string.hpp.

char SafeAny::SimpleString::soo[sizeof(void *)]

Definition at line 77 of file simple_string.hpp.


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


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:06