Allow exclusive access to some of ResourceManagerBase's private methods to LinkBase.
More...
|
| constexpr | LinkBaseOnlyType (ResourceManagerBase &Parent) noexcept |
| | Construcs an instance - one for each ResourceManagerBase instance.
|
| |
| auto | ShareResourceAsNonConst (ItemIDType ID) const |
| | Copies and returns the shared pointer pointing to (and owning) the resource identified by ID. The resource itself is neither copied nor changed. The const version of this method returns a shared pointer pointing to a const resource. This method is only available if the resources stored in the resource manager are managed by a shared pointer (i.e. PointerType is std::shared_ptr).
|
| |
template<typename PointerType>
class DynExp::ResourceManagerBase< PointerType >::LinkBaseOnlyType
Allow exclusive access to some of ResourceManagerBase's private methods to LinkBase.
Definition at line 91 of file Managers.h.
◆ LinkBaseOnlyType()
template<typename PointerType >
|
|
inlineconstexprprivatenoexcept |
◆ ShareResourceAsNonConst()
template<typename PointerType >
Copies and returns the shared pointer pointing to (and owning) the resource identified by ID. The resource itself is neither copied nor changed. The const version of this method returns a shared pointer pointing to a const resource. This method is only available if the resources stored in the resource manager are managed by a shared pointer (i.e. PointerType is std::shared_ptr).
- Template Parameters
-
| T | Set to PointerType. Do not pass anything. |
- Parameters
-
| ID | ID of the resource to share |
- Returns
- Returns Resource::ResourcePointer of the requested resource.
- Exceptions
-
Definition at line 105 of file Managers.h.
◆ LinkBase
template<typename PointerType >
◆ ResourceManagerBase
template<typename PointerType >
◆ Parent
template<typename PointerType >
The documentation for this class was generated from the following file: