NamedMember
NamedMember
Section titled “NamedMember”#include <sbio/util/parameters.hh>template<typename Class, typename T>struct NamedMemberDefined in src/lib/sbio/util/parameters.hh:292
A small wrapper to attach a name to a member attribute.
While the system of NamedKeys and NamedArgs works will for certain keyword arguments, the types of values that they can support are limited. The NamedMember adds a mechanism to attach a keyword to any member of a class or struct. A container of these NamedMembers can then be used to iterate over the member fields with some sort of semantic checks.
Template Parameters
Section titled “Template Parameters”-
ClassThe type of the overall class/struct. -
TThe type of the member attribute being named.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
const char * |
name |
Provided parameter name. |
T Class::* |
ptr |
Pointer to member where the parameter value is stored. |
const char * nameDefined in src/lib/sbio/util/parameters.hh:293
Provided parameter name.
T Class::* ptrDefined in src/lib/sbio/util/parameters.hh:294
Pointer to member where the parameter value is stored.