1#ifndef UTIL_MATRIX_PARAM_H
2#define UTIL_MATRIX_PARAM_H
11#include <util/param/Parameter.h>
60 template <
typename Type>
108 virtual void readLabel(std::istream& in);
132 {
return hasBrackets_; }
140 void setBrackets(std::string lBracket, std::string rBracket);
150 std::string lBracket_;
153 std::string rBracket_;
170#include <util/param/MatrixParam.tpp>
An array-valued parameter in a parameter file.
int m() const
Get the logical array dimension.
std::string label() const
Return label string.
void setBrackets(std::string lBracket, std::string rBracket)
Set left and right bracket / delimiter strings.
virtual void readLabel(std::istream &in)
Read parameter label from an input stream.
virtual ~MatrixParam()
Destructor.
void readEndBracket(std::istream &in)
Read the closing delimiter, if any.
void writeEndBracket(std::ostream &out) const
Write the end bracket delimiter, if any.
bool hasBrackets() const
Are brackets being used as delimiters?
bool isRequired() const
Is this an optional parameter?
MatrixParam(const char *label, int m, int n, bool isRequired=true)
Constructor.
int n() const
Get the logical array dimension.
std::string indent() const
Return indent string for this object (string of spaces).
A single variable in a parameter file.
std::string label() const
Return label string.
virtual void save(Serializable::OArchive &ar)
Save to an archive.
virtual void readValue(std::istream &in)
Read parameter value from an input stream.
bool isRequired() const
Is this an optional parameter?
Label label_
Label object that contains parameter label string.
bool isActive() const
Is this parameter active?
virtual void load(Serializable::IArchive &ar)
Load from an archive.
Utility classes for scientific computation.