Storage< RequirementsList< Roles... >, Policy >
Storage< RequirementsList< Roles… >, Policy >
Section titled “Storage< RequirementsList< Roles… >, Policy >”#include <sbio/core/storage.hh>template<typename... Roles, typename Policy>struct Storage< RequirementsList< Roles... >, Policy >Defined in src/lib/sbio/core/storage.hh:222
Inherits:
template BufferTypeFor< Roles > >,template BufferTypeFor< Roles >... > >
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
get |
function |
Declared here |
get_member |
function |
Declared here |
for_each_role |
function |
Declared here |
buffer |
variable |
Inherited from BufferMember |
Inherited from BufferMember
Section titled “Inherited from BufferMember”| Kind | Name | Description |
|---|---|---|
variable |
buffer |
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
SBIO_HD auto & |
get inline |
Compile-time buffer accessor. |
SBIO_HD auto & |
get_member inline |
Compile-time buffer accessor - non-scope aware version. |
SBIO_HD void |
for_each_role inline |
An accessor that will iterate over members of a certain role. This allows a caller to provide a function to be applied to all buffers of that role, without having to know the number, or to iterate them itself. |
inline
template<typename RoleOrDescriptor, hd_std::size_t Id = 0> inline SBIO_HD auto & get()Defined in src/lib/sbio/core/storage.hh:238
Compile-time buffer accessor.
get_member
Section titled “get_member”inline
template<typename RoleOrDescriptor, hd_std::size_t Id = 0> inline SBIO_HD auto & get_member()Defined in src/lib/sbio/core/storage.hh:252
Compile-time buffer accessor - non-scope aware version.
for_each_role
Section titled “for_each_role”inline
template<class Role, class CBType> inline SBIO_HD void for_each_role(CBType && callback)Defined in src/lib/sbio/core/storage.hh:270
An accessor that will iterate over members of a certain role. This allows a caller to provide a function to be applied to all buffers of that role, without having to know the number, or to iterate them itself.