SAMRAI::tbox::PointerBase Class Reference

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

Inheritance diagram for SAMRAI::tbox::PointerBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Class PointerBase is a base class used by template class PointerRef<TYPE> for type-safe conversion between non-const pointer types. It is a subclass of ConstPointerBase. Since the non-const pointer class only takes this as a base class (and not the const pointer base class), const pointers cannot be converted into non-const pointers.

See also:
tbox::ConstPointerBase

tbox::Pointer


Constructor & Destructor Documentation

SAMRAI::tbox::PointerBase::PointerBase (  )  [inline]

SAMRAI::tbox::PointerBase::~PointerBase (  )  [virtual]


Member Function Documentation

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

Implements SAMRAI::tbox::ConstPointerBase.

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

Implements SAMRAI::tbox::ConstPointerBase.


The documentation for this class was generated from the following files:
Generated on Thu Jun 18 11:29:06 2009 for SAMRAI by  doxygen 1.5.1