User Manual, Developers Guide and API Documentation

wns::ChamaeleonBase Class Reference

Base class for Chamaeleon<T>. More...

#include <Chamaeleon.hpp>

Inheritance diagram for wns::ChamaeleonBase:

Inheritance graph
[legend]
Collaboration diagram for wns::ChamaeleonBase:

Collaboration graph
[legend]

List of all members.

Public Member Functions

template<typename T>
Chamaeleon< T > * downCast () throw (BadCast)
 Type safe downcast.
TypeInfo getTypeInfo () const throw ()
 Returns the TypeInfo that has been provided at contruction time.
virtual ~ChamaeleonBase () throw ()
 Virtual destructor to support dynamic_cast.

Protected Member Functions

 ChamaeleonBase (const TypeInfo &typeInfo) throw ()
 Constructor taking the TypeInfo of the object from Chamaeleon<T>.

Private Attributes

TypeInfo typeInfo_
 Stores the TypeInfo object of Chamaeleon<T>.

Classes

class  BadCast
 Thrown in case of a bad cast. More...


Detailed Description

Author:
Marc Schinnenburg <marc@schinnenburg.net>

Definition at line 42 of file Chamaeleon.hpp.


Constructor & Destructor Documentation

ChamaeleonBase::~ChamaeleonBase (  )  throw () [virtual]

Definition at line 37 of file Chamaeleon.cpp.

ChamaeleonBase::ChamaeleonBase ( const TypeInfo typeInfo  )  throw () [explicit, protected]

Is protected, since it doesn't make sense to have an instance of this type

Definition at line 32 of file Chamaeleon.cpp.


Member Function Documentation

template<typename T>
Chamaeleon<T>* wns::ChamaeleonBase::downCast (  )  throw (BadCast) [inline]

Definition at line 87 of file Chamaeleon.hpp.

TypeInfo ChamaeleonBase::getTypeInfo (  )  const throw ()

Definition at line 42 of file Chamaeleon.cpp.


Member Data Documentation

Definition at line 112 of file Chamaeleon.hpp.


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

Generated on Sat May 26 03:32:50 2012 for openWNS by  doxygen 1.5.5