OGS
ProcessLib::Reflection::ReflectionData< Class, Accessor > Struct Template Reference

Detailed Description

template<typename Class, typename Accessor>
struct ProcessLib::Reflection::ReflectionData< Class, Accessor >

Provides access to a single member of Class via an accessor function and provides a name that can be used, e.g. to identify that member during I/O operations.

Accessor is a function taking an instance of Class and returning a reference to the member.

Definition at line 27 of file ReflectionData.h.

#include <ReflectionData.h>

Public Member Functions

 ReflectionData (std::string name, Accessor &&accessor)
 
 ReflectionData (Accessor &&accessor)
 

Public Attributes

std::string name
 
Accessor accessor
 

Constructor & Destructor Documentation

◆ ReflectionData() [1/2]

template<typename Class , typename Accessor >
ProcessLib::Reflection::ReflectionData< Class, Accessor >::ReflectionData ( std::string name,
Accessor && accessor )
inline

Definition at line 37 of file ReflectionData.h.

◆ ReflectionData() [2/2]

template<typename Class , typename Accessor >
ProcessLib::Reflection::ReflectionData< Class, Accessor >::ReflectionData ( Accessor && accessor)
inlineexplicit

Definition at line 42 of file ReflectionData.h.

42 : accessor(std::move(accessor))
43 {
44 }

Member Data Documentation

◆ accessor

◆ name


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