Sirikata
|
#include <Any.hpp>
Classes | |
class | Holder |
class | SubHolder |
Public Member Functions | |
Any () | |
template<class T > | |
Any & | operator= (const T &other) |
Any & | operator= (const Any &other) |
Any (const Any &other) | |
Any (const Any *other) | |
Any (Any *other) | |
template<class T > | |
Any (const T &other) | |
~Any () | |
bool | empty () |
Holder * | newAndDoNotFree (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 | |
Holder * | mHolder |
Sirikata::Any::Any | ( | ) | [inline] |
References mHolder.
Sirikata::Any::Any | ( | const Any & | other | ) | [inline] |
References Sirikata::Any::Holder::clone(), and mHolder.
Sirikata::Any::Any | ( | const Any * | other | ) | [inline] |
References Sirikata::Any::Holder::clone(), and mHolder.
Sirikata::Any::Any | ( | Any * | other | ) | [inline] |
References Sirikata::Any::Holder::clone(), and mHolder.
Sirikata::Any::Any | ( | const T & | other | ) | [inline] |
References mHolder.
Sirikata::Any::~Any | ( | ) | [inline] |
References mHolder.
T& Sirikata::Any::as | ( | ) | [inline] |
References Sirikata::Any::SubHolder< T >::mValue.
Referenced by Sirikata::OptionValue::as(), and Sirikata::JS::JSSystem::root_http().
const T& Sirikata::Any::as | ( | ) | const [inline] |
References Sirikata::Any::SubHolder< T >::mValue.
bool Sirikata::Any::empty | ( | ) | [inline] |
References mHolder.
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().
References Sirikata::Any::Holder::clone(), and mHolder.
const std::type_info& Sirikata::Any::typeOf | ( | ) | const [inline] |
References mHolder, and Sirikata::Any::Holder::typeOf().
const T& Sirikata::Any::unsafeAs | ( | ) | const [inline] |
References mHolder.
T& Sirikata::Any::unsafeAs | ( | ) | [inline] |
References mHolder.
Referenced by Sirikata::OptionValue::unsafeAs().
Holder* Sirikata::Any::mHolder [private] |
Referenced by Any(), empty(), newAndDoNotFree(), operator=(), typeOf(), unsafeAs(), and ~Any().