LLGL 0.05 Beta
Loading...
Searching...
No Matches
TypeInfo.h File Reference
#include <LLGL/Interface.h>
#include <LLGL/Trap.h>

Namespaces

namespace  LLGL

Functions

template<typename T>
bool LLGL::IsInstanceOf (const Interface *obj)
 Returns whether the specified object is an instance of the interface specified by template parameter T.
template<typename T>
bool LLGL::IsInstanceOf (const Interface &obj)
 Const-reference version of IsInstanceOf.
template<typename T>
const T * LLGL::CastTo (const Interface *obj)
 Returns a constant pointer to this instance of type const T* if it implements the specified interface.
template<typename T>
T * LLGL::CastTo (Interface *obj)
 Returns a pointer to this instance of type T* if it implements the specified interface.
template<typename T>
const T & LLGL::CastTo (const Interface &obj)
 Returns a constant reference to this instance of type const T& if it implements the specified interface.
template<typename T>
T & LLGL::CastTo (Interface &obj)
 Returns a reference to this instance of type T& if it implements the specified interface.