HLIBpro  3.0
TTypeInfo Class Referenceabstract

Provides basic interface and methods for RTTI. More...

#include <TTypeInfo.hh>

Inheritance diagram for TTypeInfo:
TClusterBasis< value_t > TVector< value_t > TCluster TClusterBasis< T_value > TLinearOperator< T_value > TVector< T_value > TScalarVector< value_t > TUniformVector< value_t > TGeomCluster TFacInvMatrix< T_value > TGaussSeidel< T_value > TJacobi< T_value > TMatrix< T_value > TMatrixProduct< T_value > TMatrixSum< T_value > TNearfieldMulVec< T_value > TPermMatrix< T_value > TSOR< T_value > TBlockVector< T_value > TScalarVector< T_value > TUniformVector< T_value >

Public Member Functions

virtual typeid_t type () const =0
 return type ID of object
 
virtual bool is_type (const typeid_t t) const
 return true if local object is of given type ID t
 
virtual std::string typestr () const
 return string representation of type
 

Detailed Description

    In 𝖧𝖫𝖨𝖡𝗉𝗋𝗈 an independent RTTI system is used to simplify
    type checks and provide readable output, e.g. in error messages.

    All classes that should be handled by this RTTI have to be derived
    from TTypeInfo and must implement the functions "type" and "is_type"
    (for hierarchical type checks, e.g. test against base classes).