25 #ifndef UQ_ASCII_TABLE_H
26 #define UQ_ASCII_TABLE_H
28 #include <queso/Environment.h>
29 #include <queso/DistArray.h>
30 #include <queso/Map.h>
31 #include <queso/Miscellaneous.h>
44 template<
class V = GslVector,
class M = GslMatrix>
55 unsigned int numExtraCols,
56 const std::vector<bool>* extraColIsString,
57 const std::string& fileName);
79 void print (std::ostream& os)
const;
100 #endif // UQ_ASCII_TABLE_H
void print(std::ostream &os) const
Prints the table.
A class for partitioning vectors and matrices.
AsciiTable(const BaseEnvironment &env, unsigned int numRows, unsigned int numExtraCols, const std::vector< bool > *extraColIsString, const std::string &fileName)
Default constructor.
std::vector< DistArray< std::string > * > m_stringColumns
unsigned int numCols() const
Returns the number of columns in the table.
std::vector< bool > m_colIsString
const BaseEnvironment & m_env
const DistArray< std::string > & stringColumn(unsigned int j) const
Returns the string stored in column j.
std::vector< V * > m_doubleColumns
const V & doubleColumn(unsigned int j) const
Returns the value (double) stored in column j.
unsigned int numRows() const
Returns the number of rows in the table.
void readColumnsFromFile()
Class for reading ASCII values from a table in a file.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...