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 &optSwitch) | |
virtual | ~RegisterSwitch () |
virtual void | readData (Foam::Istream &is) |
Read. More... | |
virtual void | writeData (Foam::Ostream &os) const |
Write. More... | |
![]() | |
simpleRegIOobject (void(*fn)(const char *name, simpleRegIOobject *), const char *name) | |
Construct from objectregistry inserter and name. More... | |
virtual | ~simpleRegIOobject () |
Destructor. More... | |
Private Attributes | |
Type & | optSwitch_ |
Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update.
Definition at line 47 of file registerSwitch.H.
|
inline |
Definition at line 56 of file registerSwitch.H.
|
inlinevirtual |
Definition at line 66 of file registerSwitch.H.
|
inlinevirtual |
Read.
Implements simpleRegIOobject.
Definition at line 69 of file registerSwitch.H.
References RegisterSwitch< Type >::optSwitch_.
|
inlinevirtual |
Write.
Implements simpleRegIOobject.
Definition at line 74 of file registerSwitch.H.
References RegisterSwitch< Type >::optSwitch_.
|
private |
Definition at line 51 of file registerSwitch.H.
Referenced by RegisterSwitch< Type >::readData(), and RegisterSwitch< Type >::writeData().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.