|
using | SharedDataType = typename TDataAccessorManagerInfo::Manager::DataBlockPointer |
|
using | SharedType = typename TDataAccessorManagerInfo::Manager::DataBlockType::DataPointer |
|
|
| BaseDataAccessor (std::string_view name) |
| Get resource by its name.
|
|
| BaseDataAccessor (char const name[]) |
|
| BaseDataAccessor (std::string name) |
|
| BaseDataAccessor (SharedDataType data) |
| Get resource from a user provided data block.
|
|
| BaseDataAccessor (SharedType data) |
| Get resource from a user provided data pointer.
|
|
virtual void | clear () |
| Clear the resource.
|
|
void | reload () |
| Reload the cached resource from the same name.
|
|
bool | valid () const |
| Check if the font is valid (not unloaded)
|
|
SharedDataType const & | getSharedBlock () const |
| Get the resource block data.
|
|
SharedType const & | getSharedData () const |
| Get the shared resource data.
|
|
std::string const & | getName () const |
| Get the name of the resource.
|
|
auto & | operator= (std::string_view name) |
|
auto & | operator= (char const name[]) |
|
auto & | operator= (std::string name) |
|
auto & | operator= (SharedDataType data) |
|
auto & | operator= (SharedType data) |
|
TDataAccessorManagerInfo::Manager::DataType * | retrieve () |
| Retrieve the raw shared pointer from the current resource.
|
|
TDataAccessorManagerInfo::Manager::DataType const * | retrieve () const |
|
◆ BaseDataAccessor() [1/3]
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Get resource by its name.
- Parameters
-
name | The name of the loaded resource |
◆ BaseDataAccessor() [2/3]
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Get resource from a user provided data block.
- Parameters
-
data | The user provided data block |
◆ BaseDataAccessor() [3/3]
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
requires (TOption == DataAccessorOptions::ALLOW_VARIANT_OF_DATAPOINTER_AND_BLOCKPOINTER)
Get resource from a user provided data pointer.
- Parameters
-
data | The user provided data pointer |
◆ clear()
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Clear the resource.
This method clear the resource by setting it to the default/bad "valid" resource.
Reimplemented in fge::Animation.
◆ getName()
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Get the name of the resource.
- Returns
- The name of the resource, or an empty string if the resource is not valid
◆ getSharedBlock()
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Get the resource block data.
- Warning
- If ALLOW_VARIANT_OF_DATAPOINTER_AND_BLOCKPOINTER is set, this method can a "bad" element.
- Returns
- The resource block data
◆ getSharedData()
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
requires (TOption == DataAccessorOptions::ALLOW_VARIANT_OF_DATAPOINTER_AND_BLOCKPOINTER)
Get the shared resource data.
- Returns
- The shared resource data
◆ reload()
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Reload the cached resource from the same name.
◆ retrieve()
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Retrieve the raw shared pointer from the current resource.
- Warning
- Will never be nullptr if the manager was correctly initialized.
- Returns
- The raw resource pointer
◆ valid()
template<class TDataAccessorManagerInfo , DataAccessorOptions TOption>
Check if the font is valid (not unloaded)
- Returns
- True if the font is valid, false otherwise
The documentation for this class was generated from the following files: