Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::Any Class Reference
[Core library]

Container that can hold every type. More...

#include <pany.h>

List of all members.

Public Member Functions

 Any ()
 Any (const Any &val)
template<typename ValueType>  Any (const ValueType &val)
 ~Any ()
Anyswap (Any &rhs)
template<typename ValueType> Anyoperator= (const ValueType &rhs)
Anyoperator= (const Any &rhs)
bool empty () const
const std::type_info & type () const

Friends

template<typename ValueType> ValueType * any_cast (Any *val)
 Cast from any to type.

std::ostream & operator<< (std::ostream &os, const Any &val)
 Any stream output operator.


Detailed Description

Container that can hold every type.

Definition at line 35 of file pany.h.


Constructor & Destructor Documentation

P::Any::Any  )  [inline]
 

Definition at line 37 of file pany.h.

Referenced by operator=().

P::Any::Any const Any val  )  [inline]
 

Definition at line 41 of file pany.h.

template<typename ValueType>
P::Any::Any const ValueType &  val  )  [inline]
 

Definition at line 46 of file pany.h.

P::Any::~Any  )  [inline]
 

Definition at line 50 of file pany.h.


Member Function Documentation

bool P::Any::empty  )  const [inline]
 

Definition at line 75 of file pany.h.

Any& P::Any::operator= const Any rhs  )  [inline]
 

Definition at line 69 of file pany.h.

References Any().

template<typename ValueType>
Any& P::Any::operator= const ValueType &  rhs  )  [inline]
 

Definition at line 63 of file pany.h.

References Any().

Any& P::Any::swap Any rhs  )  [inline]
 

Definition at line 56 of file pany.h.

References m_data.

const std::type_info& P::Any::type  )  const [inline]
 

Definition at line 78 of file pany.h.


Friends And Related Function Documentation

template<typename ValueType>
ValueType* any_cast Any val  )  [friend]
 

Cast from any to type.

Definition at line 138 of file pany.h.

std::ostream& operator<< std::ostream &  os,
const Any val
[friend]
 

Any stream output operator.

Definition at line 172 of file pany.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:32 2004 for P::Classes by doxygen 1.3.3