dynamic::internal::variant< Base, Bytes > Class Template Reference
[Memory and thread management]

A class used to implement a variant. More...

#include <var_variant.hpp>

List of all members.

Public Member Functions

Base * get ()
 Retrieves the value stored in the variant.
const Base * get () const
 Retrieves the value stored in the variant (const version).
Base * operator-> ()
 Access the value stored in the variant.
const Base * operator-> () const
 Access the value stored in the variant (const version).
Base & operator* ()
 Access the value stored in the variant.
const Base & operator* () const
 Access the value stored in the variant (const version).
template<typename T >
 variant (const T &t)
 Assigns a value to the variant.
 ~variant ()
 Destroys the contents of the variant.
 variant (const variant &other)
 Copies the other variant into the object.
variantoperator= (const variant &other)
 Assigns from another variant.
template<typename T >
variantoperator= (const T &other)
 Assigns from another value.


Detailed Description

template<typename Base, std::size_t Bytes>
class dynamic::internal::variant< Base, Bytes >

A class used to implement a variant.

Parameters:
Base The base class of all types stored in the variant.
Bytes The size in bytes used to store the data.

Definition at line 13 of file var_variant.hpp.


Constructor & Destructor Documentation

template<typename Base , std::size_t Bytes>
template<typename T >
dynamic::internal::variant< Base, Bytes >::variant ( const T &  t  )  [inline]

Assigns a value to the variant.

T must fit into the variant. T must be a subtype of Base T should have a virtual destructor (not validated) T must have a copy_to method

Definition at line 61 of file var_variant.hpp.


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

Generated on Thu Dec 18 22:14:19 2008 for C++Script by  doxygen 1.5.7.1