60 columnWidths.
resize(tbl.
first().size(), std::string::size_type(0));
64 auto& colWidth = columnWidths[coli];
86 space < columnWidths[coli] - tblRow[coli].length() + 2;
95 if (headerSeparator)
os <<
nl;
96 headerSeparator =
false;
Macros for easy insertion into run-time selection tables.
label size_type
The type to represent the size of a buffer.
A List of objects of type <T> with automated input and output.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void resize(const label len)
Adjust allocated size of list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
T & first()
Return the first element of the list.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
#define defineTemplateTypeNameAndDebugWithName(Type, Name, DebugSwitch)
Define the typeName and debug information, lookup as Name.
OBJstream os(runTime.globalPath()/outputName)
Ostream & printTable(const UList< wordList > &tbl, List< std::string::size_type > &columnWidths, Ostream &os, bool headerSeparator=true)
Print a List of wordList as a table.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
#define addCompoundToRunTimeSelectionTable(Type, Tag)
Add compound to selection table, lookup using typeName.
#define defineCompoundTypeName(Type, UnusedTag)
Define compound using Type for its name.