TwiceAsNice  2019-02-18
Classes | Public Member Functions | Private Attributes | Friends | List of all members
Nice::Any Class Reference

#include <Any.h>

Collaboration diagram for Nice::Any:
Collaboration graph

Classes

class  holder
 
class  placeholder
 

Public Member Functions

 Any ()
 
template<typename ValueType >
 Any (const ValueType &value)
 
 Any (const char *value)
 
 Any (const Any &other)
 
 ~Any ()
 
Anyswap (Any &rhs)
 
template<typename ValueType >
Anyoperator= (const ValueType &rhs)
 
Anyoperator= (const Any &rhs)
 
bool empty () const
 
const std::type_info & type () const
 
std::string typeString () const
 
template<typename ValueType >
ValueType get () const
 
std::string toString ()
 
std::string toString () const
 
 Any ()
 
template<typename ValueType >
 Any (const ValueType &value)
 
 Any (const char *value)
 
 Any (const Any &other)
 
 ~Any ()
 
Anyswap (Any &rhs)
 
template<typename ValueType >
Anyoperator= (const ValueType &rhs)
 
Anyoperator= (const Any &rhs)
 
bool empty () const
 
const std::type_info & type () const
 
std::string typeString () const
 
template<typename ValueType >
ValueType get () const
 
std::string toString ()
 
std::string toString () const
 

Private Attributes

placeholdercontent
 

Friends

template<typename ValueType >
ValueType * AnyCast (Any *)
 
template<typename ValueType >
ValueType * UnsafeAnyCast (Any *)
 
template<typename ValueType >
ValueType * AnyCast (Any *)
 
template<typename ValueType >
ValueType * UnsafeAnyCast (Any *)
 

Constructor & Destructor Documentation

◆ Any() [1/8]

Nice::Any::Any ( )
inline

◆ Any() [2/8]

template<typename ValueType >
Nice::Any::Any ( const ValueType &  value)
inline

◆ Any() [3/8]

Nice::Any::Any ( const char *  value)
inline

◆ Any() [4/8]

Nice::Any::Any ( const Any other)
inline

◆ ~Any() [1/2]

Nice::Any::~Any ( )
inline

◆ Any() [5/8]

Nice::Any::Any ( )
inline

◆ Any() [6/8]

template<typename ValueType >
Nice::Any::Any ( const ValueType &  value)
inline

◆ Any() [7/8]

Nice::Any::Any ( const char *  value)
inline

◆ Any() [8/8]

Nice::Any::Any ( const Any other)
inline

◆ ~Any() [2/2]

Nice::Any::~Any ( )
inline

Member Function Documentation

◆ empty() [1/2]

bool Nice::Any::empty ( ) const
inline

◆ empty() [2/2]

bool Nice::Any::empty ( void  ) const
inline

◆ get() [1/2]

template<typename ValueType >
ValueType Nice::Any::get ( void  ) const
inline

◆ get() [2/2]

template<typename ValueType >
ValueType Nice::Any::get ( ) const
inline

◆ operator=() [1/4]

template<typename ValueType >
Any& Nice::Any::operator= ( const ValueType &  rhs)
inline

◆ operator=() [2/4]

template<typename ValueType >
Any& Nice::Any::operator= ( const ValueType &  rhs)
inline

◆ operator=() [3/4]

Any& Nice::Any::operator= ( const Any rhs)
inline

◆ operator=() [4/4]

Any& Nice::Any::operator= ( const Any rhs)
inline

◆ swap() [1/2]

Any& Nice::Any::swap ( Any rhs)
inline

◆ swap() [2/2]

Any& Nice::Any::swap ( Any rhs)
inline

◆ toString() [1/4]

std::string Nice::Any::toString ( )
inline

◆ toString() [2/4]

std::string Nice::Any::toString ( )
inline

◆ toString() [3/4]

std::string Nice::Any::toString ( ) const
inline

◆ toString() [4/4]

std::string Nice::Any::toString ( ) const
inline

◆ type() [1/2]

const std::type_info& Nice::Any::type ( ) const
inline

◆ type() [2/2]

const std::type_info& Nice::Any::type ( ) const
inline

◆ typeString() [1/2]

std::string Nice::Any::typeString ( ) const
inline

◆ typeString() [2/2]

std::string Nice::Any::typeString ( ) const
inline

Friends And Related Function Documentation

◆ AnyCast [1/2]

template<typename ValueType >
ValueType* AnyCast ( Any )
friend

◆ AnyCast [2/2]

template<typename ValueType >
ValueType* AnyCast ( Any )
friend

◆ UnsafeAnyCast [1/2]

template<typename ValueType >
ValueType* UnsafeAnyCast ( Any )
friend

◆ UnsafeAnyCast [2/2]

template<typename ValueType >
ValueType* UnsafeAnyCast ( Any )
friend

Member Data Documentation

◆ content

placeholder * Nice::Any::content
private

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