8#include "MatrixParam.h"
9#include "BracketPolicy.h"
23 template <
typename Type>
32 isRequired_(isRequired),
36 std::string name = name_;
46 template <
typename Type>
53 template <
typename Type>
62 std::string
string = name_;
69 label_.setString(
string);
75 template <
typename Type>
83 std::string
string = name_;
85 label_.setString(
string);
86 label_.setIsRequired(
false);
92 label_.setIsRequired(isRequired_);
96 label_.setString(name_);
104 std::string
string = name_;
106 label_.setString(
string);
113 std::string
string = name_;
114 label_.setString(
string);
115 hasBrackets_ =
false;
125 template <
class Type>
131 in >>
Label(rBracket_);
136 std::string
string = name_;
138 hasBrackets_ =
false;
143 label_.setString(
string);
149 template <
class Type>
153 out << indent() << rBracket_ << std::endl;
This file contains templates for global functions send<T>, recv<T> and bcast<T>.
A label string in a file format.
static bool isMatched()
Did the most recent attempt to match a Label succeed?
void setString(std::string string)
Set the 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.
Label label_
Label object that contains parameter label string.
MatrixParam(const char *label, int m, int n, bool isRequired=true)
Constructor.
A single variable in a parameter file.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
BracketPolicy::Type get()
Get value of bracket policy.
Utility classes for scientific computation.