Skip to content

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 >... > >

Name Kind Owner
get function Declared here
get_member function Declared here
for_each_role function Declared here
buffer variable Inherited from BufferMember
Kind Name Description
variable buffer
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.


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.


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.