Loading...
Searching...
No Matches
UDictionary.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2023 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::UDictionary
29
30Description
31 Template dictionary class which does not manages the storage
32 associated with it.
33
34 It is derived from DictionaryBase instantiated on a non-memory managed
35 form of intrusive doubly-linked list of <T>.
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef Foam_UDictionary_H
40#define Foam_UDictionary_H
41
42#include "DictionaryBase.H"
43#include "UIDLList.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
49
50/*---------------------------------------------------------------------------*\
51 Class UDictionary Declaration
52\*---------------------------------------------------------------------------*/
53
54template<class T>
55class UDictionary
56:
57 public DictionaryBase<UIDLList<T>, T>
58{
59public:
60
61 //- The template instance used for the dictionary content
63
64
65 // Constructors
66
67 //- Default construct: empty without allocation (capacity=0).
68 UDictionary() = default;
69
70 //- Construct empty with initial table capacity
71 explicit UDictionary(const label initialCapacity)
72 :
73 dict_type(initialCapacity)
74 {}
75
76 //- Copy construct
78 :
80 {}
81};
82
83
84// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85
86} // End namespace Foam
87
88// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89
90#endif
91
92// ************************************************************************* //
Intrusive doubly-linked list.
Template dictionary class which does not manages the storage associated with it.
Definition UDictionary.H:51
UDictionary(const UDictionary &dict)
Copy construct.
Definition UDictionary.H:78
DictionaryBase< UIDLList< T >, T > dict_type
The template instance used for the dictionary content.
Definition UDictionary.H:57
UDictionary()=default
Default construct: empty without allocation (capacity=0).
UDictionary(const label initialCapacity)
Construct empty with initial table capacity.
Definition UDictionary.H:70
Namespace for OpenFOAM.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dictionary dict