#include <any.h>

Collaboration diagram for argos::CAny:

Classes

class  CAbstractReference
 Abstract reference to object. More...
 
class  CReference
 Actual templetized reference to object. More...
 

Public Member Functions

 CAny ()
 Constructor. More...
 
template<typename T >
 CAny (const T &t_object)
 Constructor with templetized argument. More...
 
 CAny (const CAny &c_any)
 Copy constructor Clone the reference to the object, if the reference is not NULL. More...
 
 ~CAny ()
 Destructor. More...
 
CAnyswap (CAny &c_any)
 Redefinition of the swap function of the std library. More...
 
template<typename T >
CAnyoperator= (const T &t_object)
 Assignment operator when object is operand. More...
 
CAnyoperator= (const CAny &c_any)
 Assignment operator when any type is operand. More...
 

Public Attributes

CAbstractReferencem_pcRef
 Pointer to object reference. More...
 

Detailed Description

Definition at line 25 of file any.h.

Constructor & Destructor Documentation

argos::CAny::CAny ( )
inline

Constructor.

Definition at line 32 of file any.h.

template<typename T >
argos::CAny::CAny ( const T &  t_object)
inline

Constructor with templetized argument.

Definition at line 39 of file any.h.

argos::CAny::CAny ( const CAny c_any)
inline

Copy constructor Clone the reference to the object, if the reference is not NULL.

Definition at line 46 of file any.h.

argos::CAny::~CAny ( )
inline

Destructor.

Definition at line 52 of file any.h.

Member Function Documentation

template<typename T >
CAny& argos::CAny::operator= ( const T &  t_object)
inline

Assignment operator when object is operand.

Definition at line 69 of file any.h.

CAny& argos::CAny::operator= ( const CAny c_any)
inline

Assignment operator when any type is operand.

Definition at line 77 of file any.h.

CAny& argos::CAny::swap ( CAny c_any)
inline

Redefinition of the swap function of the std library.

Definition at line 60 of file any.h.

Member Data Documentation

CAbstractReference* argos::CAny::m_pcRef

Pointer to object reference.

Definition at line 139 of file any.h.