IBAMR  IBAMR version 0.19.
Public Member Functions | List of all members
SAMRAI::tbox::ConstPointerBase Class Referenceabstract

#include <tbox/ConstPointerBase.h>

Inheritance diagram for SAMRAI::tbox::ConstPointerBase:
Inheritance graph
[legend]

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

◆ ConstPointerBase()

SAMRAI::tbox::ConstPointerBase::ConstPointerBase ( )

◆ ~ConstPointerBase()

virtual SAMRAI::tbox::ConstPointerBase::~ConstPointerBase ( )
virtual

Member Function Documentation

◆ getSubclassReferenceCounter()

virtual ReferenceCounter* SAMRAI::tbox::ConstPointerBase::getSubclassReferenceCounter ( ) const
pure virtual

◆ getSubclassPointer()

virtual const DescribedClass* SAMRAI::tbox::ConstPointerBase::getSubclassPointer ( ) const
pure virtual

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