SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::Resource< Handle > Class Template Reference
Inheritance diagram for spark::render::Resource< Handle >:
spark::render::IResource< Handle >

Public Member Functions

 Resource (Handle handle) noexcept
 Initializes the managed resource with the given handle.
 
 Resource (const Resource &other)=delete
 
 Resource (Resource &&other) noexcept=delete
 
Resourceoperator= (const Resource &other)=delete
 
Resourceoperator= (Resource &&other) noexcept=delete
 
const Handle & handle () const final
 Gets the managed resource handle.
 

Protected Member Functions

Handle & handle () final
 Gets the managed resource handle.
 

Additional Inherited Members

- Public Types inherited from spark::render::IResource< Handle >
using handle_type = Handle
 

Constructor & Destructor Documentation

◆ Resource()

template<typename Handle >
spark::render::Resource< Handle >::Resource ( Handle handle)
explicitnoexcept

Initializes the managed resource with the given handle.

Parameters
handleThe handle to the managed resource.

Member Function Documentation

◆ handle() [1/2]

template<typename Handle >
const Handle & spark::render::Resource< Handle >::handle ( ) const
nodiscardfinalvirtual

Gets the managed resource handle.

Returns
A modifiable reference to the managed resource handle.

Implements spark::render::IResource< Handle >.

◆ handle() [2/2]

template<typename Handle >
Handle & spark::render::Resource< Handle >::handle ( )
nodiscardfinalprotectedvirtual

Gets the managed resource handle.

Returns
A modifiable reference to the managed resource handle.

Implements spark::render::IResource< Handle >.