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 
Class for reading ASCII values from a table in a file. 
 
const DistArray< std::string > & stringColumn(unsigned int j) const 
Returns the string stored in column j. 
 
unsigned int numRows() const 
Returns the number of rows in the table. 
 
std::vector< DistArray< std::string > * > m_stringColumns
 
const V & doubleColumn(unsigned int j) const 
Returns the value (double) stored in column j. 
 
A class for partitioning vectors and matrices. 
 
void readColumnsFromFile()
 
void print(std::ostream &os) const 
Prints the table. 
 
std::vector< bool > m_colIsString
 
const BaseEnvironment & m_env
 
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
 
std::vector< V * > m_doubleColumns
 
unsigned int numCols() const 
Returns the number of columns in the table. 
 
AsciiTable(const BaseEnvironment &env, unsigned int numRows, unsigned int numExtraCols, const std::vector< bool > *extraColIsString, const std::string &fileName)
Default constructor.