42 const scalar blockFraction,
43 const scalar nDivFraction,
44 const scalar expansionRatio
47 blockFraction_(blockFraction),
48 nDivFraction_(nDivFraction),
49 expansionRatio_(expansionRatio)
55 const scalar expansionRatio
60 expansionRatio_(expansionRatio)
94 equal(blockFraction_, gd.blockFraction_)
95 &&
equal(nDivFraction_, gd.nDivFraction_)
96 &&
equal(expansionRatio_, gd.expansionRatio_);
115 gd.blockFraction_ = 1.0;
116 gd.nDivFraction_ = 1.0;
117 gd.expansionRatio_ = t.
number();
121 is >> gd.blockFraction_ >> gd.nDivFraction_ >> gd.expansionRatio_;
122 is.
readEnd(
"gradingDescriptor");
126 is.
check(
"operator>>(Istream&, gradingDescriptor&)");
134 if (
equal(gd.blockFraction_, 1))
136 os << gd.expansionRatio_;
143 << gd.expansionRatio_
punctuationToken pToken() const
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool operator==(const gradingDescriptor &) const
gradingDescriptor inv() const
Return the inverse gradingDescriptor with 1/expansionRatio.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
gradingDescriptor()
Default constructor.
Istream & readEnd(const char *funcName)
Istream & operator>>(Istream &, directionInfo &)
Handles the specification for grading within a section of a block.
~gradingDescriptor()
Destructor.
bool operator!=(const gradingDescriptor &) const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool equal(const T &s1, const T &s2)
Ostream & operator<<(Ostream &, const ensightPart &)
bool isPunctuation() const