Table.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::Function1Types::Table
26 
27 Description
28  Templated table container function.
29 
30  Items are stored in a list of Tuple2's. First column is always stored as
31  scalar entries. Data is read in Tuple2 form.
32 
33  Usage:
34  \verbatim
35  <entryName> table
36  (
37  (0.0 (1 2 3))
38  (1.0 (4 5 6))
39  );
40  \endverbatim
41 
42 SourceFiles
43  Table.C
44 
45 \*---------------------------------------------------------------------------*/
46 
47 #ifndef Table_H
48 #define Table_H
49 
50 #include "Function1.H"
51 #include "Tuple2.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 namespace Function1Types
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class Table Declaration
62 \*---------------------------------------------------------------------------*/
63 
64 template<class Type>
65 class Table
66 :
67  public TableBase<Type>
68 {
69  // Private Member Functions
70 
71  //- Disallow default bitwise assignment
72  void operator=(const Table<Type>&);
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("table");
79 
80 
81  // Constructors
82 
83  //- Construct from entry name and Istream
84  Table(const word& entryName, const dictionary& dict);
85 
86  //- Copy constructor
87  Table(const Table<Type>& tbl);
88 
89 
90  //- Destructor
91  virtual ~Table();
92 };
93 
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 } // End namespace Function1Types
98 } // End namespace Foam
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #ifdef NoRepository
103  #include "Table.C"
104 #endif
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 #endif
109 
110 // ************************************************************************* //
Table(const word &entryName, const dictionary &dict)
Construct from entry name and Istream.
Definition: Table.C:32
const word const dictionary & dict
Definition: Function1.H:90
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Templated table container function.
Definition: Table.H:64
const word & entryName
Definition: Function1.H:90
Base class for table with bounds handling, interpolation and integration.
Definition: TableBase.H:55
A class for handling words, derived from string.
Definition: word.H:59
virtual ~Table()
Destructor.
Definition: Table.C:56
TypeName("table")
Runtime type information.
Namespace for OpenFOAM.