Sirikata
Classes | Public Member Functions | Private Attributes
Sirikata::Any Class Reference

#include <Any.hpp>

Collaboration diagram for Sirikata::Any:

List of all members.

Classes

class  Holder
class  SubHolder

Public Member Functions

 Any ()
template<class T >
Anyoperator= (const T &other)
Anyoperator= (const Any &other)
 Any (const Any &other)
 Any (const Any *other)
 Any (Any *other)
template<class T >
 Any (const T &other)
 ~Any ()
bool empty ()
HoldernewAndDoNotFree (const Any &value)
 If some other item has ownership of the value And this item must be reset without removing the other.
const std::type_info & typeOf () const
template<class T >
T & as ()
template<class T >
T & unsafeAs ()
template<class T >
const T & as () const
template<class T >
const T & unsafeAs () const

Private Attributes

HoldermHolder

Constructor & Destructor Documentation

Sirikata::Any::Any ( ) [inline]

References mHolder.

Sirikata::Any::Any ( const Any other) [inline]
Sirikata::Any::Any ( const Any other) [inline]
Sirikata::Any::Any ( Any other) [inline]
template<class T >
Sirikata::Any::Any ( const T &  other) [inline]

References mHolder.

Sirikata::Any::~Any ( ) [inline]

References mHolder.


Member Function Documentation

template<class T >
T& Sirikata::Any::as ( ) [inline]
template<class T >
const T& Sirikata::Any::as ( ) const [inline]
bool Sirikata::Any::empty ( ) [inline]

References mHolder.

Holder* Sirikata::Any::newAndDoNotFree ( const Any value) [inline]

If some other item has ownership of the value And this item must be reset without removing the other.

Used in Option.hpp to allow for threadsafe reads

References Sirikata::Any::Holder::clone(), and mHolder.

Referenced by Sirikata::OptionSet::initializationSet().

Any& Sirikata::Any::operator= ( const Any other) [inline]
template<class T >
Any& Sirikata::Any::operator= ( const T &  other) [inline]

References mHolder.

const std::type_info& Sirikata::Any::typeOf ( ) const [inline]
template<class T >
const T& Sirikata::Any::unsafeAs ( ) const [inline]

References mHolder.

template<class T >
T& Sirikata::Any::unsafeAs ( ) [inline]

References mHolder.

Referenced by Sirikata::OptionValue::unsafeAs().


Member Data Documentation


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