148 #define defineTableReader(Type) \
150 defineNamedTemplateTypeNameAndDebug(TableReader<Type>, 0); \
152 defineTemplateRunTimeSelectionTable(TableReader<Type>, dictionary);
155 #define addTableReader(SS, Type) \
157 defineNamedTemplateTypeNameAndDebug(TableReaders::SS<Type>, 0); \
159 addTemplatedToRunTimeSelectionTable(TableReader, SS, Type, dictionary)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Macros for creating standard TableReader-s.
TableReader()
Default construct.
TypeName("TableReader")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, TableReader, dictionary,(const word &name, const Function1s::unitConversions &units, const dictionary &dict),(name, units, dict))
static autoPtr< TableReader< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
virtual ~TableReader()
Destructor.
virtual autoPtr< TableReader< Type > > clone() const =0
Construct and return a clone.
List< Tuple2< scalar, Type > > convertWrite(const Function1s::unitConversions &units, const List< Tuple2< scalar, Type >> &table) const
Do unit conversions in order to output data.
void convertRead(const Function1s::unitConversions &units, List< Tuple2< scalar, Type >> &table) const
Do unit conversions on input data.
virtual void write(Ostream &os, const Function1s::unitConversions &units, const List< Tuple2< scalar, Type >> &table) const
Write settings and values.
virtual List< Tuple2< scalar, Type > > read(const Function1s::unitConversions &units, const dictionary &dict) const =0
Read values.
A 2-tuple for storing two objects of different types.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
Macros to ease declaration of run-time selection tables.