Teuchos - Trilinos Tools Package
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
comm
src
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
{
29
class
TableColumn
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
:
56
Array<RCP<TableEntry> > data_;
57
};
58
59
60
}
61
#endif
Teuchos_ConfigDefs.hpp
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
Teuchos::TableColumn
Definition:
Teuchos_TableColumn.hpp:29
Teuchos_TableEntry.hpp
Base class for representing compound entries in a printed table of data. "Compound" means that each e...
Teuchos_Array.hpp
Templated array class derived from the STL std::vector.
Teuchos::TableColumn::TableColumn
TableColumn()
Empty ctor.
Definition:
Teuchos_TableColumn.hpp:33
Teuchos::Array< std::string >
Generated on Fri Dec 20 2024 09:21:32 for Teuchos - Trilinos Tools Package by
1.8.5