libUTL++
utl::TRunTimeClass< T > Class Template Reference

Template version of RunTimeClass. More...

#include <RunTimeClass.h>

Inheritance diagram for utl::TRunTimeClass< T >:

Public Member Functions

 TRunTimeClass (const RunTimeClass *baseClass)
 Constructor. More...
 
virtual const char * vname () const
 Get the name. More...
 
virtual size_t size () const
 Get the size of this class (as in sizeof()). More...
 
- Public Member Functions inherited from utl::RunTimeClass
 RunTimeClass (const RunTimeClass *baseClass)
 Constructor. More...
 
 RunTimeClass (const RunTimeClass &runTimeClass)
 Copy constructor. More...
 
virtual Objectcreate () const
 Create a new instance of this class. More...
 
bool _isA (const RunTimeClass *rtc) const
 Determine whether thisClass.isA(givenClass). More...
 
const RunTimeClassbaseClass () const
 Get the base class. More...
 
const char * name () const
 Get the name. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from utl::RunTimeClass
static void printClassNames ()
 Print class names. More...
 
static void add (RunTimeClass *rtc)
 Add a class to the repository of known classes. More...
 
static const RunTimeClassfind (const char *className)
 Find the RunTimeClass by the given name. More...
 

Detailed Description

template<typename T>
class utl::TRunTimeClass< T >

Template version of RunTimeClass.

TRunTimeClass inherits from RunTimeClass, and implements methods that apply to both abstract and concrete classes.

Author
Adam McKee

Definition at line 144 of file RunTimeClass.h.

Constructor & Destructor Documentation

◆ TRunTimeClass()

template<typename T >
utl::TRunTimeClass< T >::TRunTimeClass ( const RunTimeClass baseClass)
inline

Constructor.

Parameters
baseClassbase class of this class

Definition at line 151 of file RunTimeClass.h.

Member Function Documentation

◆ vname()

template<typename T >
virtual const char* utl::TRunTimeClass< T >::vname ( ) const
inlinevirtual

Get the name.

Reimplemented from utl::RunTimeClass.

Definition at line 166 of file RunTimeClass.h.

◆ size()

template<typename T >
virtual size_t utl::TRunTimeClass< T >::size ( ) const
inlinevirtual

Get the size of this class (as in sizeof()).

Reimplemented from utl::RunTimeClass.

Definition at line 172 of file RunTimeClass.h.


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