1 #ifndef UTIL_SCALAR_PARAM_H 2 #define UTIL_SCALAR_PARAM_H 11 #include <util/param/Parameter.h> 12 #include <util/archives/Serializable_includes.h> 110 template <
class Type>
117 template <
class Type>
119 { in >> *valuePtr_; }
121 template <
class Type>
125 template <
class Type>
130 template <
class Type>
138 template <
class Type>
144 out << std::right << std::scientific
154 template <
class Type>
156 { valuePtr_ = &value; }
void setValue(Type &value)
Set the pointer to point a specific variable.
std::string label() const
Return label string.
virtual void saveValue(Serializable::OArchive &ar)
Save parameter value to an archive.
Label label_
Label object that contains parameter label string.
A single variable in a parameter file.
virtual void readValue(std::istream &in)
Read parameter value from an input stream.
File containing preprocessor macros for error handling.
Saving / output archive for binary ostream.
MPI::Intracomm & ioCommunicator() const
Get the MPI communicator by reference.
Template for a Parameter object associated with a scalar variable.
Utility classes for scientific computation.
static const int Precision
Precision for io of floating point data field.
bool isActive() const
Is this parameter active?
void writeParam(std::ostream &out)
Write parameter to stream.
Saving archive for binary istream.
static const int Width
Width of output field for a scalar variable.
This file contains templates for global functions send<T>, recv<T> and bcast<T>.
ScalarParam(const char *label, Type &value, bool isRequired=true)
Constructor.
virtual void loadValue(Serializable::IArchive &ar)
Load bare parameter value from an archive.
bool isRequired() const
Is this an optional parameter?
virtual void bcastValue()
Broadcast parameter value within the ioCommunicator.
std::string indent() const
Return indent string for this object (string of spaces).