client-cpp  0.0.1-SNAPSHOT
kaa::CommonValue< T, CVT > Class Template Reference

#include <CommonValue.hpp>

+ Inheritance diagram for kaa::CommonValue< T, CVT >:
+ Collaboration diagram for kaa::CommonValue< T, CVT >:

Public Types

typedef T value_type
 
typedef T * value_ptr
 
typedef T & value_ref
 
typedef const T & value_cref
 
typedef boost::shared_ptr< T > shared_ptr
 

Public Member Functions

 CommonValue (value_cref value, size_t len=0)
 
 CommonValue (const CommonValue< T, CVT > &r)
 
 ~CommonValue ()
 
const boost::any getValue () const
 
avro::GenericDatum toAvro () const
 
std::string toString () const
 
template<>
 ~CommonValue ()
 
template<>
std::string toString () const
 
template<>
std::string toString () const
 
template<>
 CommonValue (value_cref value, size_t len)
 
template<>
 CommonValue (const CommonValue< boost::uint8_t *, CommonValueType::COMMON_BYTES > &r)
 
template<>
std::string toString () const
 
- Public Member Functions inherited from kaa::ICommonValue
 ICommonValue (CommonValueType type)
 
virtual ~ICommonValue ()
 
CommonValueType getCommonType ()
 

Additional Inherited Members

- Protected Attributes inherited from kaa::ICommonValue
CommonValueType type_
 

Detailed Description

template<typename T, CommonValueType CVT = CommonValueType::COMMON_UNKNOWN>
class kaa::CommonValue< T, CVT >

Definition at line 30 of file CommonValue.hpp.

Member Typedef Documentation

template<typename T, CommonValueType CVT = CommonValueType::COMMON_UNKNOWN>
typedef boost::shared_ptr<T> kaa::CommonValue< T, CVT >::shared_ptr

Definition at line 37 of file CommonValue.hpp.

template<typename T, CommonValueType CVT = CommonValueType::COMMON_UNKNOWN>
typedef const T& kaa::CommonValue< T, CVT >::value_cref

Definition at line 35 of file CommonValue.hpp.

template<typename T, CommonValueType CVT = CommonValueType::COMMON_UNKNOWN>
typedef T* kaa::CommonValue< T, CVT >::value_ptr

Definition at line 33 of file CommonValue.hpp.

template<typename T, CommonValueType CVT = CommonValueType::COMMON_UNKNOWN>
typedef T& kaa::CommonValue< T, CVT >::value_ref

Definition at line 34 of file CommonValue.hpp.

template<typename T, CommonValueType CVT = CommonValueType::COMMON_UNKNOWN>
typedef T kaa::CommonValue< T, CVT >::value_type

Definition at line 32 of file CommonValue.hpp.

Constructor & Destructor Documentation

template<typename T , CommonValueType CVT>
kaa::CommonValue< T, CVT >::CommonValue ( value_cref  value,
size_t  len = 0 
)

Definition at line 58 of file CommonValue.hpp.

template<typename T , CommonValueType CVT>
kaa::CommonValue< T, CVT >::CommonValue ( const CommonValue< T, CVT > &  r)

Definition at line 64 of file CommonValue.hpp.

template<typename T , CommonValueType CVT>
kaa::CommonValue< T, CVT >::~CommonValue ( )

Definition at line 70 of file CommonValue.hpp.

template<>
kaa::CommonValue< boost::uint8_t * >::~CommonValue ( )

Definition at line 52 of file CommonValue.hpp.

template<>
kaa::CommonValue< boost::uint8_t *, CommonValueType::COMMON_BYTES >::CommonValue ( value_cref  value,
size_t  len 
)

Definition at line 112 of file CommonValue.hpp.

template<>
kaa::CommonValue< boost::uint8_t *, CommonValueType::COMMON_BYTES >::CommonValue ( const CommonValue< boost::uint8_t *, CommonValueType::COMMON_BYTES > &  r)

Definition at line 120 of file CommonValue.hpp.

Member Function Documentation

template<typename T, CommonValueType CVT = CommonValueType::COMMON_UNKNOWN>
const boost::any kaa::CommonValue< T, CVT >::getValue ( ) const
inlinevirtual

Retrieves nested object

Implements kaa::ICommonValue.

Definition at line 43 of file CommonValue.hpp.

template<typename T , CommonValueType CVT>
avro::GenericDatum kaa::CommonValue< T, CVT >::toAvro ( ) const
virtual

Retrieves Avro representation of the nested object

Implements kaa::ICommonValue.

Definition at line 105 of file CommonValue.hpp.

template<typename T , CommonValueType CVT>
std::string kaa::CommonValue< T, CVT >::toString ( ) const
virtual

Retrieves string representation of the nested object

Implements kaa::ICommonValue.

Definition at line 76 of file CommonValue.hpp.

template<>
std::string kaa::CommonValue< std::string >::toString ( ) const
virtual

Retrieves string representation of the nested object

Implements kaa::ICommonValue.

Definition at line 84 of file CommonValue.hpp.

template<>
std::string kaa::CommonValue< std::vector< boost::uint8_t >, CommonValueType::COMMON_BYTES >::toString ( ) const
virtual

Retrieves string representation of the nested object

Implements kaa::ICommonValue.

Definition at line 92 of file CommonValue.hpp.

template<>
std::string kaa::CommonValue< boost::uint8_t * >::toString ( ) const
virtual

Retrieves string representation of the nested object

Implements kaa::ICommonValue.

Definition at line 128 of file CommonValue.hpp.


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