iso::data::VoidValue Class Reference

abstract single value container class More...

#include <iso_data_void_value.h>

Inherited by iso::data::TypedValue< Type >.

Inheritance diagram for iso::data::VoidValue:

Inheritance graph
[legend]
List of all members.

Public Member Functions

template<class Type>
 VoidValue ()
template<class Type>
 VoidValue (const Type &pValue)
 ~VoidValue ()
const std::type_info * type () const
virtual VoidValuecopy () const=0
virtual const VoidValueoperator= (const VoidValue &pValue) throw (base::Exception)
template<class Type>
 operator Type () const throw (base::Exception)
template<class Type>
bool match () const
bool match (const VoidValue &pValue) const
template<class Type>
void get (Type &pValue) const throw (base::Exception)
template<class Type>
Type & value () throw (base::Exception)
template<class Type>
const Type & value () const throw (base::Exception)
base::String info () const

Protected Attributes

void * mValue
const std::type_info * mType

Friends

std::ostream & operator<< (std::ostream &pOstream, const VoidValue &pValue)

Detailed Description

abstract single value container class

value container class

stores a value of an arbitrary data type as void pointer along with information about the data type

Created by Daniel Bisig on 3/13/09.


Constructor & Destructor Documentation

template<class Type>
iso::data::VoidValue::VoidValue (  ) 

template<class Type>
iso::data::VoidValue::VoidValue ( const Type &  pValue  ) 

VoidValue::~VoidValue (  ) 


Member Function Documentation

const std::type_info * VoidValue::type (  )  const

virtual VoidValue* iso::data::VoidValue::copy (  )  const [pure virtual]

Implemented in iso::data::TypedValue< Type >.

const VoidValue & VoidValue::operator= ( const VoidValue pValue  )  throw (base::Exception) [virtual]

template<class Type>
iso::data::VoidValue::operator Type (  )  const throw (base::Exception)

template<class Type>
bool iso::data::VoidValue::match (  )  const [inline]

bool VoidValue::match ( const VoidValue pValue  )  const

template<class Type>
void iso::data::VoidValue::get ( Type &  pValue  )  const throw (base::Exception)

template<class Type>
Type & iso::data::VoidValue::value (  )  throw (base::Exception)

Reimplemented in iso::data::TypedValue< Type >.

template<class Type>
const Type & iso::data::VoidValue::value (  )  const throw (base::Exception)

Reimplemented in iso::data::TypedValue< Type >.

base::String VoidValue::info (  )  const

Reimplemented in iso::data::TypedValue< Type >.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOstream,
const VoidValue pValue 
) [friend]


Member Data Documentation

void* iso::data::VoidValue::mValue [protected]

const std::type_info* iso::data::VoidValue::mType [protected]


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 13:57:33 2011 for iso_data by  doxygen 1.5.1