12 using namespace Teuchos;
19 return toString().substr(0, maxWidth);
27 :
TableEntry(), data_(value), precision_(precision), fmtflags_(flags)
32 std::ostringstream toss;
48 std::ostringstream toss;
76 bool spaceBeforeParens)
80 spaceBeforeParens_(spaceBeforeParens)
85 std::ostringstream toss;
87 toss <<
first_->toString();
89 toss <<
"(" <<
second_->toString() <<
")";
virtual std::string toString() const =0
Return a std::string representation of this entry.
An entry, perhaps compound, to be written into a table.
virtual std::string toChoppedString(int maxWidth) const
Return a std::string representation of this entry, truncated if necessary to fit within the given col...
std::ios_base::fmtflags fmtflags_
virtual std::string toString() const
Write the specified entry to a std::string.
std::ios_base::fmtflags fmtflags_
RCP< TableEntry > second_
Base class for representing compound entries in a printed table of data. "Compound" means that each e...
IntEntry(int value, const std::ios_base::fmtflags &flags)
Construct with a value.
virtual std::string toString() const
Write the specified entry to a std::string.
virtual std::string toString() const
Write the specified entry to a std::string.
virtual std::string toString() const
Write the specified entry to a std::string.
Smart reference counting pointer class for automatic garbage collection.
CompoundEntryWithParentheses(const RCP< TableEntry > &first, const RCP< TableEntry > &second, bool spaceBeforeParens=true)
DoubleEntry(const double &value, int precision, const std::ios_base::fmtflags &flags)
Construct with a value and a precision.
StringEntry(std::string value)
Construct with a value.