Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TSdlAnyInstance< IS_CONST > Class Template Reference

References a SDL object. This is a lightweight utility for referencing SDL objects. Following objects are valid targets to be referenced by this type: More...

#include <TSdlAnyInstance.h>

Public Member Functions

 TSdlAnyInstance ()
 
 TSdlAnyInstance (std::nullptr_t target)
 
template<typename T >
 TSdlAnyInstance (T *target)
 Reference to a SDL object. Allows only valid SDL objects.
 
template<typename T >
auto * get () const
 
const SdlClass * getClass () const
 
const SdlStruct * getStruct () const
 
const SdlFunction * getFunction () const
 
bool isClass () const
 
bool isStruct () const
 
bool isFunction () const
 
const ISdlInstantiable * getInstantiable () const
 
 operator bool () const
 

Detailed Description

template<bool IS_CONST>
class ph::TSdlAnyInstance< IS_CONST >

References a SDL object. This is a lightweight utility for referencing SDL objects. Following objects are valid targets to be referenced by this type:

  • Objects of SDL classes
  • Objects of SDL structs
  • Objects of SDL function parameter structs

Constructor & Destructor Documentation

◆ TSdlAnyInstance() [1/3]

template<bool IS_CONST>
ph::TSdlAnyInstance< IS_CONST >::TSdlAnyInstance ( )
inline

◆ TSdlAnyInstance() [2/3]

template<bool IS_CONST>
ph::TSdlAnyInstance< IS_CONST >::TSdlAnyInstance ( std::nullptr_t target)
inline

◆ TSdlAnyInstance() [3/3]

template<bool IS_CONST>
template<typename T >
ph::TSdlAnyInstance< IS_CONST >::TSdlAnyInstance ( T * target)
inline

Reference to a SDL object. Allows only valid SDL objects.

Member Function Documentation

◆ get()

template<bool IS_CONST>
template<typename T >
auto * ph::TSdlAnyInstance< IS_CONST >::get ( ) const
inline

◆ getClass()

template<bool IS_CONST>
const SdlClass * ph::TSdlAnyInstance< IS_CONST >::getClass ( ) const
inline

◆ getFunction()

template<bool IS_CONST>
const SdlFunction * ph::TSdlAnyInstance< IS_CONST >::getFunction ( ) const
inline

◆ getInstantiable()

template<bool IS_CONST>
const ISdlInstantiable * ph::TSdlAnyInstance< IS_CONST >::getInstantiable ( ) const
inline

◆ getStruct()

template<bool IS_CONST>
const SdlStruct * ph::TSdlAnyInstance< IS_CONST >::getStruct ( ) const
inline

◆ isClass()

template<bool IS_CONST>
bool ph::TSdlAnyInstance< IS_CONST >::isClass ( ) const
inline

◆ isFunction()

template<bool IS_CONST>
bool ph::TSdlAnyInstance< IS_CONST >::isFunction ( ) const
inline

◆ isStruct()

template<bool IS_CONST>
bool ph::TSdlAnyInstance< IS_CONST >::isStruct ( ) const
inline

◆ operator bool()

template<bool IS_CONST>
ph::TSdlAnyInstance< IS_CONST >::operator bool ( ) const
inline

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