Teuchos - Trilinos Tools Package
Version of the Day
Loading...
Searching...
No Matches
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_Array.hpp
Templated array class derived from the STL std::vector.
Teuchos_ConfigDefs.hpp
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
Teuchos_TableEntry.hpp
Base class for representing compound entries in a printed table of data. "Compound" means that each e...
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition
Teuchos_RCPDecl.hpp:397
Teuchos::TableColumn
Definition
Teuchos_TableColumn.hpp:30
Teuchos::TableColumn::TableColumn
TableColumn()
Empty ctor.
Definition
Teuchos_TableColumn.hpp:33
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated on Thu Oct 9 2025 20:59:53 for Teuchos - Trilinos Tools Package by
1.9.8