Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update. More...
Public Member Functions | |
RegisterSwitch (void(*registryFn)(const char *name, simpleRegIOobject *), const char *name, Type &switchVar) | |
virtual | ~RegisterSwitch ()=default |
virtual void | readData (Istream &is) |
Read. More... | |
virtual void | writeData (Ostream &os) const |
Write. More... | |
![]() | |
simpleRegIOobject (void(*fn)(const char *name, simpleRegIOobject *), const char *name) | |
Construct from objectregistry inserter and name. More... | |
virtual | ~simpleRegIOobject ()=default |
Destructor. More... | |
Public Attributes | |
Type & | value |
Reference to the switch variable that has been registered. More... | |
Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update.
Definition at line 51 of file registerSwitch.H.
|
inline |
Definition at line 61 of file registerSwitch.H.
|
virtualdefault |
|
inlinevirtual |
Read.
Implements simpleRegIOobject.
Definition at line 73 of file registerSwitch.H.
References RegisterSwitch< Type >::value.
|
inlinevirtual |
Write.
Implements simpleRegIOobject.
Definition at line 78 of file registerSwitch.H.
References os(), and RegisterSwitch< Type >::value.
Type& value |
Reference to the switch variable that has been registered.
Definition at line 58 of file registerSwitch.H.
Referenced by RegisterSwitch< Type >::readData(), and RegisterSwitch< Type >::writeData().