| 
    queso-0.52.0
    
   | 
 
Class for reading ASCII values from a table in a file. More...
#include <AsciiTable.h>

Public Member Functions | |
Constructor/Destructor methods  | |
| AsciiTable (const BaseEnvironment &env, unsigned int numRows, unsigned int numExtraCols, const std::vector< bool > *extraColIsString, const std::string &fileName) | |
| Default constructor.  More... | |
| ~AsciiTable () | |
| Destructor.  More... | |
Property methods  | |
| unsigned int | numRows () const | 
| Returns the number of rows in the table.  More... | |
| unsigned int | numCols () const | 
| Returns the number of columns in the table.  More... | |
| const DistArray< std::string > & | stringColumn (unsigned int j) const | 
Returns the string stored in column j.  More... | |
| const V & | doubleColumn (unsigned int j) const | 
Returns the value (double) stored in column j.  More... | |
I/O methods  | |
| void | print (std::ostream &os) const | 
| Prints the table.  More... | |
Private Member Functions | |
| Map * | newMap () | 
| void | readColumnsFromFile () | 
| template<> | |
| Map * | newMap () | 
Private Attributes | |
| const BaseEnvironment & | m_env | 
| unsigned int | m_numRows | 
| unsigned int | m_numCols | 
| std::vector< bool > | m_colIsString | 
| std::string | m_fileName | 
| const Map * | m_map | 
| std::vector< DistArray < std::string > * >  | m_stringColumns | 
| std::vector< V * > | m_doubleColumns | 
Class for reading ASCII values from a table in a file.
Definition at line 42 of file AsciiTable.h.
| QUESO::AsciiTable< V, M >::AsciiTable | ( | const BaseEnvironment & | env, | 
| unsigned int | numRows, | ||
| unsigned int | numExtraCols, | ||
| const std::vector< bool > * | extraColIsString, | ||
| const std::string & | fileName | ||
| ) | 
Default constructor.
This constructor reads the data from file fileName, checking whether the data in each column of the file is or not a string, and whether the data in each row is or not valid. 
Definition at line 31 of file AsciiTable.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::AsciiTable< V, M >::m_colIsString, QUESO::AsciiTable< V, M >::m_doubleColumns, QUESO::AsciiTable< V, M >::m_env, QUESO::AsciiTable< V, M >::m_numCols, QUESO::AsciiTable< V, M >::m_stringColumns, QUESO::AsciiTable< V, M >::readColumnsFromFile(), and QUESO::BaseEnvironment::subDisplayFile().
| QUESO::AsciiTable< V, M >::~AsciiTable | ( | ) | 
Destructor.
Definition at line 76 of file AsciiTable.C.
| const V & QUESO::AsciiTable< V, M >::doubleColumn | ( | unsigned int | j | ) | const | 
Returns the value (double) stored in column j. 
Definition at line 299 of file AsciiTable.C.
References UQ_FATAL_TEST_MACRO.
      
  | 
  private | 
Definition at line 31 of file GslAsciiTable.C.
      
  | 
  private | 
| unsigned int QUESO::AsciiTable< V, M >::numCols | ( | ) | const | 
| unsigned int QUESO::AsciiTable< V, M >::numRows | ( | ) | const | 
| void QUESO::AsciiTable< V, M >::print | ( | std::ostream & | os | ) | const | 
Prints the table.
Definition at line 317 of file AsciiTable.C.
References UQ_FATAL_TEST_MACRO.
      
  | 
  private | 
Definition at line 89 of file AsciiTable.C.
References QUESO::MiscReadCharsAndDoubleFromFile(), QUESO::MiscReadStringAndDoubleFromFile(), and UQ_FATAL_TEST_MACRO.
Referenced by QUESO::AsciiTable< V, M >::AsciiTable().
| const DistArray< std::string > & QUESO::AsciiTable< V, M >::stringColumn | ( | unsigned int | j | ) | const | 
Returns the string stored in column j. 
Definition at line 282 of file AsciiTable.C.
References UQ_FATAL_TEST_MACRO.
      
  | 
  private | 
Definition at line 85 of file AsciiTable.h.
Referenced by QUESO::AsciiTable< V, M >::AsciiTable().
      
  | 
  private | 
Definition at line 90 of file AsciiTable.h.
Referenced by QUESO::AsciiTable< V, M >::AsciiTable().
      
  | 
  private | 
Definition at line 82 of file AsciiTable.h.
Referenced by QUESO::AsciiTable< V, M >::AsciiTable().
      
  | 
  private | 
Definition at line 86 of file AsciiTable.h.
      
  | 
  private | 
Definition at line 88 of file AsciiTable.h.
      
  | 
  private | 
Definition at line 84 of file AsciiTable.h.
Referenced by QUESO::AsciiTable< V, M >::AsciiTable().
      
  | 
  private | 
Definition at line 83 of file AsciiTable.h.
      
  | 
  private | 
Definition at line 89 of file AsciiTable.h.
Referenced by QUESO::AsciiTable< V, M >::AsciiTable().