UPtrDictionary.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 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::UPtrDictionary
28 
29 Description
30  Template dictionary class which does not manages the storage
31  associated with it.
32 
33  It is derived from DictionaryBase instantiated on a non-memory managed
34  form of intrusive doubly-linked list of <T>.
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef Foam_UPtrDictionary_H
39 #define Foam_UPtrDictionary_H
40 
41 #include "DictionaryBase.H"
42 #include "DLList.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class UPtrDictionary Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 template<class T>
54 class UPtrDictionary
55 :
56  public DictionaryBase<DLList<T*>, T>
57 {
58 public:
59 
60  // Constructors
61 
62  //- Construct given initial table size
63  explicit UPtrDictionary(const label size = 128)
64  :
65  DictionaryBase<DLList<T*>, T>(size)
66  {}
67 
68  //- Copy construct
70  :
72  {}
73 };
74 
75 
76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
77 
78 } // End namespace Foam
79 
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 
82 #endif
83 
84 // ************************************************************************* //
dictionary dict
Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it...
UPtrDictionary(const label size=128)
Construct given initial table size.
Template class for non-intrusive linked lists.
Definition: LList.H:50
Template dictionary class which does not manages the storage associated with it.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Non-intrusive doubly-linked list.
Namespace for OpenFOAM.