Cogs.Core
|
Provides a wrapper around resources for pool storage with intrusive linked list pointers added. More...
#include <ResourcePolicies.h>
Public Attributes | |
ResourceWrapper * | next = nullptr |
ResourceWrapper * | prev = nullptr |
Stores a pointer to the next active element when allocated. | |
ResourceType | resource |
Wrapped resource. | |
bool | pinned = false |
If the wrapped resource is pinned and should be persistently allocated. | |
Provides a wrapper around resources for pool storage with intrusive linked list pointers added.
Definition at line 18 of file ResourcePolicies.h.
ResourceWrapper* Cogs::ResourceWrapper< ResourceType >::next = nullptr |
Stores a pointer to the next element in a free list when not allocated, or the next element in the active list when allocated.
Definition at line 22 of file ResourcePolicies.h.
bool Cogs::ResourceWrapper< ResourceType >::pinned = false |
If the wrapped resource is pinned and should be persistently allocated.
Definition at line 36 of file ResourcePolicies.h.
ResourceWrapper* Cogs::ResourceWrapper< ResourceType >::prev = nullptr |
Stores a pointer to the next active element when allocated.
Definition at line 25 of file ResourcePolicies.h.
ResourceType Cogs::ResourceWrapper< ResourceType >::resource |
Wrapped resource.
Definition at line 28 of file ResourcePolicies.h.