Skip to content

NamedMember

#include <sbio/util/parameters.hh>
template<typename Class, typename T>
struct NamedMember

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

  • Class The type of the overall class/struct.

  • T The type of the member attribute being named.

Return Name Description
const char * name Provided parameter name.
T Class::* ptr Pointer to member where the parameter value is stored.

const char * name

Defined in src/lib/sbio/util/parameters.hh:293

Provided parameter name.


T Class::* ptr

Defined in src/lib/sbio/util/parameters.hh:294

Pointer to member where the parameter value is stored.