Storage< TypeList< Roles... >, Policy >
Storage< TypeList< Roles… >, Policy >
Section titled “Storage< TypeList< Roles… >, Policy >”#include <sbio/core/storage.hh>template<typename... Roles, typename Policy>struct Storage< TypeList< Roles... >, Policy >Defined in src/lib/sbio/core/storage.hh:187
Inherits:
template BufferTypeFor< Roles > >
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
get |
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 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:196
Compile-time buffer accessor.
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:213
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.