Helper class for deferred getting of material properties after the construction phase for materials. More...
#include <MaterialPropertyInterface.h>
Public Member Functions | |
OptionalMaterialPropertyProxyBase (const std::string &name, const unsigned int state) | |
virtual | ~OptionalMaterialPropertyProxyBase () |
virtual void | resolve (M &material)=0 |
Protected Attributes | |
const std::string | _name |
const unsigned int | _state |
Helper class for deferred getting of material properties after the construction phase for materials.
This enables "optional material properties" in materials. It works by returning a reference to a pointer to a material property (rather than a reference to the property value). The pointer will be set to point to either an existing material property or to nullptr if the requested property does not exist.
Definition at line 40 of file MaterialPropertyInterface.h.
|
inline |
Definition at line 43 of file MaterialPropertyInterface.h.
|
inlinevirtual |
Definition at line 47 of file MaterialPropertyInterface.h.
|
pure virtual |
Implemented in OptionalMaterialPropertyProxy< M, T, is_ad >.
|
protected |
Definition at line 51 of file MaterialPropertyInterface.h.
|
protected |
Definition at line 52 of file MaterialPropertyInterface.h.
Referenced by OptionalMaterialPropertyProxy< M, T, is_ad >::resolve().