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

#include <elm/rtti/Type.h>

+ Inheritance diagram for PointerType:

Public Member Functions

 PointerType (const Type &to)
 
virtual bool isPtr (void) const override
 
virtual const PointerTypeasPtr (void) const override
 
const Typeto (void) const
 
- Public Member Functions inherited from Type
 Type (string name="")
 
virtual ~Type (void)
 
string name (void) const
 
const PointerTypepointer (void) const
 
virtual bool canCast (const Type *t) const
 
virtual bool isVoid (void) const
 
virtual bool isBool (void) const
 
virtual bool isInt (void) const
 
virtual bool isFloat (void) const
 
virtual bool isClass (void) const
 
virtual const AbstractClassasClass (void) const
 
virtual bool isEnum (void) const
 
virtual const EnumerableasEnum (void) const
 
virtual bool isSerial (void) const
 
virtual const SerializableasSerial (void) const
 
virtual const TemplateTypeasTemplate (void) const
 
virtual const InstanceTypeasInstance (void) const
 
virtual const ParamTypeasParam (void) const
 
void initialize (void)
 
bool operator== (const Type &t) const
 
bool operator!= (const Type &t) const
 

Additional Inherited Members

- Public Types inherited from Type
typedef HashMap< string, const Type * >::Iter TypeIter
 
- Static Public Member Functions inherited from Type
static const Typeget (string name)
 
static TypeIter types (void)
 
- Static Public Attributes inherited from Type
static const Typeparam0
 
static const Typeparam1
 
static const Typeparam2
 
static const Typeparam3
 

Detailed Description

Type representing a pointer to another type.

Constructor & Destructor Documentation

◆ PointerType()

PointerType ( const Type to)

Member Function Documentation

◆ asPtr()

const PointerType & asPtr ( void  ) const
overridevirtual

Get the class description corresponding to this type. If the type is not a pointer, an assertion failure is raised.

Returns
Corresponding pointer instance.

Reimplemented from Type.

◆ isPtr()

bool isPtr ( void  ) const
overridevirtual

Test if the type is a pointer.

Returns
True if the type is boolean, false else.

Reimplemented from Type.

◆ to()

const Type& to ( void  ) const
inline

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