Register request for access to slots storage

Warning

doxygenfunction: Unable to resolve function “resource_slot::register_access” with arguments None in doxygen xml output for project “resourceSlot” from directory: _build/breathe/doxygen/resourceSlot/xml. Potential matches:

- template<class F> resource_slot::NodeHandleWithSlotsAccess register_access(const char *name, const char *source_location, resource_slot::detail::ActionList &&action_list, F &&declaration_callback)
- template<class F> resource_slot::NodeHandleWithSlotsAccess register_access(dabfg::NameSpace ns, const char *name, const char *source_location, resource_slot::detail::ActionList &&action_list, F &&declaration_callback)
struct State

State of slots storage.

Size is kept small, can be copied to declaration_callback.

Public Functions

const char *resourceToReadFrom(const char *slot_name) const

Get name of resource in slot before the node.

This function can be called several times inside the node.

Parameters:

slot_name – name of slot; should be requested in action_list

Returns:

current resource

const char *resourceToCreateFor(const char *slot_name) const

Get name of resource from declaration of Create or Update for using after the node.

This function can be called several times inside the node. For example, for using in readTextureHistory().

Parameters:

slot_name – name of slot; should be requested in action_list

Returns:

resource after node

struct Create

Create request

Declared resource MUST be created in the node

Public Functions

Create(const char *slot_name, const char *resource_name)

Constructor

Parameters:
  • slot_name – name of the slot

  • resource_name – name of the resource, that MUST be created in current node and WILL be saved into slot for using after the node

struct Update

Update request

Requested slot CAN be read in the node and declared resource MUST be created in the node

Public Functions

Update(const char *slot_name, const char *resource_name, int update_priority)

Constructor

Parameters:
  • slot_name – name of the slot

  • resource_name – name of the resource, that MUST be created in current node and WILL be saved into slot for using after the node

  • update_priority – priority of update, nodes with HIGHER priority will be scheduled AFTER nodes with LOWER priority

struct Read

Read request

Requested slot CAN be read in the node

Public Functions

Read(const char *slot_name, int read_priority = DEFAULT_READ_PRIORITY)

Constructor

Parameters:
  • slot_name – name of the slot

  • read_priority – priority of read; nodes with LOWER priority will be scheduled BEFORE current node. By default Read will be scheduled after all Update of this slot.