39 table[i].first() =
units.x.toStandard(table[i].
first());
40 table[i].second() =
units.value.toStandard(table[i].
second());
54 convertRead(
units, tableCopy);
72 tableCopy[i].second() =
units.value.toUser(tableCopy[i].
second());
#define forAll(list, i)
Loop across all elements in list.
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,...
TableReader()
Default construct.
virtual ~TableReader()
Destructor.
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.
A 2-tuple for storing two objects of different types.
T & first()
Return the first element of the list.
labelList second(const UList< labelPair > &p)
labelList first(const UList< labelPair > &p)
const HashTable< unitConversion > & units()
Get the table of unit conversions.