OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

typeInfo Class Reference

Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to cover I/O. More...


Detailed Description

Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to cover I/O.

The user can get the type's type name using the type info access function

    type()

The reference type cast template function:

    refCast<T>(r)

wraps dynamic_cast to handle the bad_cast exception and generate a FatalError.

The isA function:

    isA<T>(r)

returns true if r is of type T or derived from type T.


The documentation for this class was generated from the following file:
Copyright © 2000-2009 OpenCFD Ltd