Tramway SDK
Public Member Functions | Protected Attributes | List of all members
tram::ResourceProxy< T > Class Template Reference

#include <resource.h>

Public Member Functions

 ResourceProxy (EntityComponent *parent)
 
 ~ResourceProxy ()
 
void set (Resource *new_res)
 
T * get ()
 
T * operator= (Resource *res)
 
T * operator-> ()
 
T & operator* ()
 
 operator bool ()
 

Protected Attributes

EntityComponentparent
 
Resourceresource = nullptr
 

Constructor & Destructor Documentation

◆ ResourceProxy()

template<typename T >
tram::ResourceProxy< T >::ResourceProxy ( EntityComponent parent)
inline

◆ ~ResourceProxy()

template<typename T >
tram::ResourceProxy< T >::~ResourceProxy ( )
inline

Member Function Documentation

◆ get()

template<typename T >
T * tram::ResourceProxy< T >::get ( )
inline

◆ operator bool()

template<typename T >
tram::ResourceProxy< T >::operator bool ( )
inlineexplicit

◆ operator*()

template<typename T >
T & tram::ResourceProxy< T >::operator* ( )
inline

◆ operator->()

template<typename T >
T * tram::ResourceProxy< T >::operator-> ( )
inline

◆ operator=()

template<typename T >
T * tram::ResourceProxy< T >::operator= ( Resource res)
inline

◆ set()

template<typename T >
void tram::ResourceProxy< T >::set ( Resource new_res)
inline

Member Data Documentation

◆ parent

template<typename T >
EntityComponent* tram::ResourceProxy< T >::parent
protected

◆ resource

template<typename T >
Resource* tram::ResourceProxy< T >::resource = nullptr
protected

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