Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_TableColumn.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TEUCHOS_TABLECOLUMN_H
11 #define TEUCHOS_TABLECOLUMN_H
12 
17 #include "Teuchos_ConfigDefs.hpp"
18 #include "Teuchos_TableEntry.hpp"
19 #include "Teuchos_Array.hpp"
20 
21 #include <iomanip>
22 
23 namespace Teuchos
24 {
30  {
31  public:
33  TableColumn() : data_() {;}
34 
36  TableColumn(const Array<std::string>& vals);
37 
39  TableColumn(const Array<double>& vals, int precision, const std::ios_base::fmtflags& flags);
40 
42  TableColumn(const Array<double>& first, const Array<double>& second,
43  int precision, const std::ios_base::fmtflags& flags,
44  bool spaceBeforeParentheses);
45 
47  int numRows() const {return Teuchos::as<int>(data_.size());}
48 
50  void addEntry(const RCP<TableEntry>& entry);
51 
53  const RCP<TableEntry>& entry(int i) const {return data_[i];}
54 
55  private:
57  };
58 
59 
60 }
61 #endif
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
const RCP< TableEntry > & entry(int i) const
Base class for representing compound entries in a printed table of data. &quot;Compound&quot; means that each e...
void addEntry(const RCP< TableEntry > &entry)
Templated array class derived from the STL std::vector.
Array< RCP< TableEntry > > data_
Smart reference counting pointer class for automatic garbage collection.