45 #include "Teuchos_Assert.hpp"
53 std::ostringstream toss;
54 for (
int i=0; i<pageWidth_; i++)
65 std::ostringstream toss;
66 for (
int i=0; i<pageWidth_; i++)
76 std::ostringstream toss;
77 for (
int i=0; i<size; i++)
86 const std::string& name,
90 int rtn = name.length();
92 for (
int i=0; i<column.numRows(); i++)
94 int x = column.entry(i)->toString().length();
95 rtn = std::max(rtn, x);
98 return rtn + columnSpacing_;
108 && columnWidths_.
size() != 0);
110 std::ios::fmtflags f( out.flags() );
113 int cw = defaultColumnWidth();
114 if (columnWidths_.
size() != 0) cw = columnWidths_[i];
116 out << std::left << std::setw(cw) << entries[i]->
toString();
132 entries[i] = columns[i].entry(rowIndex);
141 const std::string& header,
146 std::ios::fmtflags f(out.flags());
152 int cw = defaultColumnWidth();
153 if (columnWidths_.
size() != 0) cw = columnWidths_[i];
161 int numBlanks = (pageWidth_ - header.length())/2;
162 out <<
blanks(numBlanks) << header << std::endl;
168 int cw = defaultColumnWidth();
169 if (columnWidths_.
size() != 0) cw = columnWidths_[i];
171 out << std::left << std::setw(cw) << columnNames[i];
176 int numRows = columns[0].numRows();
183 for (
int i=0; i<numRows; i++)
185 if (i % lineInterval_ == 0)
186 out << std::left <<
thinline() << std::endl;
Ordinal size_type
The type of Array sizes and capacities.
std::string toString() const
Convert an Array to an std::string
Smart reference counting pointer class for automatic garbage collection.
#define TEUCHOS_ASSERT_EQUALITY(val1, val2)
This macro is checks that to numbers are equal and if not then throws an exception with a good error ...
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call...
Replacement for std::vector that is compatible with the Teuchos Memory Management classes...