Skip to content

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

Name Kind Owner
get 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 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.


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.