BUG: pointHitSort: define operator<
[OpenFOAM-1.7.x.git] / src / meshTools / coordinateSystems / coordinateSystems.H
blob84625f06cde3e0c11da1ca726bd580edd74b3010
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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.
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.
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/>.
24 Class
25     Foam::coordinateSystems
27 Description
28     Provides a centralized coordinateSystem collection.
30 Note
31     Mixing normal constructors and the coordinateSystems::New constructor
32     may yield unexpected results.
34 SourceFiles
35     coordinateSystems.C
37 \*---------------------------------------------------------------------------*/
38 #ifndef coordinateSystems_H
39 #define coordinateSystems_H
41 #include "coordinateSystem.H"
42 #include "IOPtrList.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace Foam
49 /*---------------------------------------------------------------------------*\
50                      Class coordinateSystems Declaration
51 \*---------------------------------------------------------------------------*/
53 class coordinateSystems
55     public IOPtrList<coordinateSystem>
58     // Private Member Functions
60         //- Disallow default bitwise copy construct
61         coordinateSystems(const coordinateSystems&);
63         //- Disallow default bitwise assignment
64         void operator=(const coordinateSystems&);
66 public:
68     //- Runtime type information
69     TypeName("coordinateSystems");
71     // Constructors
73         //- Read construct from IOobject
74         explicit coordinateSystems(const IOobject&);
76         //- Construct from IOobject and a PtrList
77         coordinateSystems
78         (
79             const IOobject&,
80             const PtrList<coordinateSystem>&
81         );
83         //- Construct from IOobject and transferring the PtrList contents
84         coordinateSystems
85         (
86             const IOobject&,
87             const Xfer<PtrList<coordinateSystem> >&
88         );
90     // Selectors
92         //- Return previously registered or read construct from "constant"
93         static const coordinateSystems& New(const objectRegistry&);
95     // Member Functions
97         //- Find and return index for a given keyword, returns -1 if not found
98         label find(const word& key) const;
100         //- Search for given keyword
101         bool found(const word& keyword) const;
103         //- Return the table of contents (list of all keywords)
104         wordList toc() const;
106         //- write data
107         bool writeData(Ostream&, bool subDict=true) const;
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 #endif
119 // ************************************************************************* //