View for a group of SDL references.
More...
#include <ISdlReferenceGroup.h>
|
| PH_DEFINE_INLINE_RULE_OF_5_MEMBERS_NO_DTOR (ISdlReferenceGroup) |
|
virtual | ~ISdlReferenceGroup ()=default |
|
virtual std::shared_ptr< ISdlResource > | get (std::string_view resourceName) const =0 |
| Get a resource reference.
|
|
virtual bool | has (std::string_view resourceName) const =0 |
| Check the existence of a resource reference.
|
|
template<typename T > |
std::shared_ptr< T > | getTyped (std::string_view resourceName) const |
| Get a resource reference of type T with name resourceName .
|
|
template<typename T > |
bool | hasTyped (std::string_view resourceName) const |
| Check the existence of resource of type T .
|
|
View for a group of SDL references.
◆ ~ISdlReferenceGroup()
virtual ph::ISdlReferenceGroup::~ISdlReferenceGroup |
( |
| ) |
|
|
virtualdefault |
◆ get()
virtual std::shared_ptr< ISdlResource > ph::ISdlReferenceGroup::get |
( |
std::string_view | resourceName | ) |
const |
|
pure virtual |
◆ getTyped()
template<typename T >
std::shared_ptr< T > ph::ISdlReferenceGroup::getTyped |
( |
std::string_view | resourceName | ) |
const |
|
inline |
Get a resource reference of type T
with name resourceName
.
- Returns
- The resource requested.
nullptr
if not found.
- Exceptions
-
◆ has()
virtual bool ph::ISdlReferenceGroup::has |
( |
std::string_view | resourceName | ) |
const |
|
pure virtual |
◆ hasTyped()
template<typename T >
bool ph::ISdlReferenceGroup::hasTyped |
( |
std::string_view | resourceName | ) |
const |
|
inline |
Check the existence of resource of type T
.
◆ PH_DEFINE_INLINE_RULE_OF_5_MEMBERS_NO_DTOR()
The documentation for this class was generated from the following file: