Remote Call Framework 3.1
RCF::Any Class Reference

Generic container type used to hold arbitrary objects. More...

#include <Any.hpp>

Public Member Functions

 Any ()
 Constructs an empty Any instance. More...
 
template<typename T >
 Any (const T &t)
 Constructs an Any instance holding a copy of t. More...
 
 Any (const Any &rhs)
 Copy constructs an Any instance. More...
 
Anyoperator= (const Any &rhs)
 Assigns an Any instance. More...
 
template<typename T >
T & get ()
 Type-safe retrieval of the contained value. Throws an exception if T does not match the type of the contained type. More...
 

Detailed Description

Generic container type used to hold arbitrary objects.

Constructor & Destructor Documentation

◆ Any() [1/3]

RCF::Any::Any ( )

Constructs an empty Any instance.

◆ Any() [2/3]

template<typename T >
RCF::Any::Any ( const T &  t)

Constructs an Any instance holding a copy of t.

◆ Any() [3/3]

RCF::Any::Any ( const Any rhs)

Copy constructs an Any instance.

Member Function Documentation

◆ operator=()

Any& RCF::Any::operator= ( const Any rhs)

Assigns an Any instance.

◆ get()

template<typename T >
T& RCF::Any::get ( )

Type-safe retrieval of the contained value. Throws an exception if T does not match the type of the contained type.


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