Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
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
19#include "Teuchos_Array.hpp"
20
21#include <iomanip>
22
23namespace Teuchos
24{
30 {
31 public:
33 TableColumn() : data_() {;}
34
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,
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:
56 Array<RCP<TableEntry> > data_;
57 };
58
59
60}
61#endif
Templated array class derived from the STL std::vector.
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
Base class for representing compound entries in a printed table of data. "Compound" means that each e...
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...