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

Encapsulate class-related knowledge for concrete classes. More...

#include <RunTimeClass.h>

Inheritance diagram for utl::TConcreteRunTimeClass< T >:

Public Member Functions

 TConcreteRunTimeClass (const RunTimeClass *baseClass)
 Constructor. More...
 
virtual Objectcreate () const
 Create a new instance of this class. More...
 
- Public Member Functions inherited from utl::TRunTimeClass< T >
 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...
 
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::TConcreteRunTimeClass< T >

Encapsulate class-related knowledge for concrete classes.

TConcreteRunTimeClass inherits from TRunTimeClass, and implements certain virtual methods that only apply to concrete (non-abstract) classes.

Author
Adam McKee

Definition at line 198 of file RunTimeClass.h.

Constructor & Destructor Documentation

◆ TConcreteRunTimeClass()

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

Constructor.

Parameters
baseClassbase class of this class

Definition at line 205 of file RunTimeClass.h.

Member Function Documentation

◆ create()

template<typename T >
virtual Object* utl::TConcreteRunTimeClass< T >::create ( ) const
inlinevirtual

Create a new instance of this class.

Returns
newly created instance of this class

Reimplemented from utl::RunTimeClass.

Definition at line 216 of file RunTimeClass.h.


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