Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SAMRAI::tbox::ConstPointerBase Class Reference

#include <source/toolbox/memory/ConstPointerBase.h>

Inheritance diagram for SAMRAI::tbox::ConstPointerBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ConstPointerBase ()
virtual ~ConstPointerBase ()
virtual ReferenceCountergetSubclassReferenceCounter () const =0
virtual const DescribedClassgetSubclassPointer () const =0

Detailed Description

Class ConstPointerBase is an abstract base class used by template class ConstPointer<TYPE> for type-safe conversion between various pointer types. It forms the base of the RTTI conversion hierarchy for pointers. Both the non-const pointer base class and the const pointer class are subclasses of the const pointer base class. This structure ensures that RTTI conversion of pointers from const to const, non-const to non-const, and non-const to const work as expected but that conversion from const to non-const fail at compile-time.

See also:
tbox::ConstPointer

tbox::PointerBase

tbox::Pointer


Constructor & Destructor Documentation

SAMRAI::tbox::ConstPointerBase::ConstPointerBase  )  [inline]
 

SAMRAI::tbox::ConstPointerBase::~ConstPointerBase  )  [virtual]
 


Member Function Documentation

virtual ReferenceCounter* SAMRAI::tbox::ConstPointerBase::getSubclassReferenceCounter  )  const [pure virtual]
 

Implemented in SAMRAI::tbox::PointerBase.

virtual const DescribedClass* SAMRAI::tbox::ConstPointerBase::getSubclassPointer  )  const [pure virtual]
 

Implemented in SAMRAI::tbox::PointerBase.


The documentation for this class was generated from the following files:
Generated on Fri Dec 2 11:33:23 2005 for SAMRAI by  doxygen 1.4.2