Castor3D 0.16.0
Multiplatform 3D engine
|
External resource representation. More...
#include <Resource.hpp>
Public Types | |
using | ElementT = ResT |
using | ElementKeyT = KeyT |
Public Member Functions | |
ResourceT (ResourceT &&rhs) noexcept=default | |
ResourceT (ResourceT const &)=delete | |
ResourceT & | operator= (ResourceT &&rhs) noexcept=default |
ResourceT & | operator= (ResourceT const &)=delete |
~ResourceT () noexcept override=default | |
template<typename ... ParametersT> | |
ResourceT (ParametersT &&... params) | |
ResourceT (ElementT &&rhs) | |
ResourceT & | operator= (ElementT &&rhs) |
template<typename ... ParametersT> | |
void | initialise (ParametersT &&... params) |
template<typename ... ParametersT> | |
void | cleanup (ParametersT &&... params) |
template<typename ... ParametersT, typename ... ParametersU> | |
void | reinitialise (ParametersT &&... paramsT, ParametersU &&... paramsU) |
bool | isInitialised () const noexcept |
ElementT & | operator* () noexcept |
using | OnResourceFunc = castor::Function< void( ElementT const & ) > |
using | OnResourceEvent = SignalT< OnResourceFunc > |
using | Connection = ConnectionT< OnResourceEvent > |
OnResourceEvent | onInitialising |
OnResourceEvent | onInitialised |
OnResourceEvent | onCleaning |
OnResourceEvent | onCleaned |
External resource representation.
using castor::ResourceT< ResT, KeyT >::Connection = ConnectionT< OnResourceEvent > |
using castor::ResourceT< ResT, KeyT >::ElementKeyT = KeyT |
using castor::ResourceT< ResT, KeyT >::ElementT = ResT |
using castor::ResourceT< ResT, KeyT >::OnResourceEvent = SignalT< OnResourceFunc > |
using castor::ResourceT< ResT, KeyT >::OnResourceFunc = castor::Function< void( ElementT const & ) > |
name Signal.
|
defaultnoexcept |
name Construction/Desctruction.
|
delete |
|
overridedefaultnoexcept |
|
explicit |
|
explicit |
void castor::ResourceT< ResT, KeyT >::cleanup | ( | ParametersT &&... | params | ) |
void castor::ResourceT< ResT, KeyT >::initialise | ( | ParametersT &&... | params | ) |
name Initialisation/Cleanup.
|
inlinenoexcept |
name Getters.
|
inlinenoexcept |
ResourceT & castor::ResourceT< ResT, KeyT >::operator= | ( | ElementT && | rhs | ) |
|
defaultnoexcept |
|
delete |
void castor::ResourceT< ResT, KeyT >::reinitialise | ( | ParametersT &&... | paramsT, |
ParametersU &&... | paramsU ) |
OnResourceEvent castor::ResourceT< ResT, KeyT >::onCleaned |
OnResourceEvent castor::ResourceT< ResT, KeyT >::onCleaning |
OnResourceEvent castor::ResourceT< ResT, KeyT >::onInitialised |
OnResourceEvent castor::ResourceT< ResT, KeyT >::onInitialising |