Celeritas 0.7+c0d26b9
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
celeritas::LdgMember< Class, T > Struct Template Reference

Storable projector that loads a struct member via ldg . More...

#include <Ldg.hh>

Public Member Functions

T operator() (Class const &obj) const
 

Public Attributes

T Class::* mp
 

Detailed Description

template<class Class, class T>
struct celeritas::LdgMember< Class, T >

Storable projector that loads a struct member via ldg .

Stores a pointer-to-member and, when called with an object, returns the member value loaded via __ldg . Use this when the load must be captured as a callable; for immediate use prefer the two-argument ldg overload.

auto load_parent = LdgMember{&BIHLeafNode::parent};
BIHNodeId parent = load_parent(node);
Type-safe index for accessing an array or collection of data.
Definition OpaqueId.hh:62
Storable projector that loads a struct member via ldg .
Definition Ldg.hh:195

The documentation for this struct was generated from the following file: