48 template<
class Enum,
unsigned int nEnum>
class NamedEnum;
81 const float defaultValue=0
88 const word& defaultValue
92 template<
class Enum,
unsigned int nEnum>
97 const Enum defaultValue
105 enumNames[defaultValue]
float floatOptimisationSwitch(const char *name, const float defaultValue=0)
Lookup optimisation switch or add default value.
dictionary & switchSet(const char *subDictName, dictionary *&subDictPtr)
Internal function to lookup a sub-dictionary from controlDict.
A list of keyword definitions, which are a keyword followed by any number of values (e...
int optimisationSwitch(const char *name, const int defaultValue=0)
Lookup optimisation switch or add default value.
void listSwitches()
List debug switches.
Initialise the NamedEnum HashTable from the static list of names.
int infoSwitch(const char *name, const int defaultValue=0)
Lookup info switch or add default value.
dictionary & infoSwitches()
The InfoSwitches sub-dictionary in the central controlDict.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
word name(const complex &)
Return a string representation of a complex.
dictionary & optimisationSwitches()
The OptimisationSwitches sub-dictionary in the central controlDict.
Enum namedEnumOptimisationSwitch(const char *name, const NamedEnum< Enum, nEnum > &enumNames, const Enum defaultValue)
Lookup optimisation switch or add default value.
const word wordOptimisationSwitch(const char *name, const word &defaultValue)
Lookup optimisation switch or add default value.
dictionary & debugSwitches()
The DebugSwitches sub-dictionary in the central controlDict.
dictionary & controlDict()
The central control dictionary.