Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Object Class Reference

#include <elm/rtti/type_of.h>

Public Member Functions

virtual ~Object (void)
virtual const TypegetType (void) const

Static Public Attributes

static const Type__type = single<ObjectClass>()

Detailed Description

Base class of classes which type is dynamically obtained at run-time.

Constructor & Destructor Documentation

◆ ~Object()

~Object ( void  )

Member Function Documentation

◆ getType()

const Type & getType ( void  ) const

Get the actual type of the current object. It is particularly useful when a class B extends a class A and one gets a pointer to class A and the actual poinetd object is of a class B.

Actual type of the current object.

References Object::__type.

Member Data Documentation

◆ __type

const Type & __type = single<ObjectClass>()

Referenced by Object::getType().

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