1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35 \*---------------------------------------------------------------------------*/
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
51 // Forward declaration of friend functions and operators
53 template<TemplateClassArgument>
56 template<TemplateClassArgument>
57 Istream& operator>>(Istream&, ClassName<TemplateArgument>&);
59 template<TemplateClassArgument>
60 Ostream& operator<<(Ostream&, const ClassName<TemplateArgument>&);
63 /*---------------------------------------------------------------------------*\
64 Class ClassName Declaration
65 \*---------------------------------------------------------------------------*/
67 template<TemplateClassArgument>
77 // Private Member Functions
79 //- Disallow default bitwise copy construct
80 ClassName(const ClassName<TemplateArgument>&);
82 //- Disallow default bitwise assignment
83 void operator=(const ClassName<TemplateArgument>&);
88 // Static data members
90 //- Static data someStaticData
91 static const dataType staticData;
99 //- Construct from components
100 ClassName(const dataType& data);
102 //- Construct from Istream
105 //- Construct as copy
106 ClassName(const ClassName<TemplateArgument>&);
111 //- Select null constructed
112 static autoPtr<ClassName<TemplateArgument> > New();
124 void operator=(const ClassName<TemplateArgument>&);
131 // IOstream Operators
133 friend Istream& operator>>
137 (Istream&, ClassName<TemplateArgument>&);
139 friend Ostream& operator<<
143 (Ostream&, const ClassName<TemplateArgument>&);
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 } // End namespace Foam
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 #include "ClassNameI.H"
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 # include "ClassName.C"
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 // ************************************************************************* //