initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / bin / foamTemplates / sourceTemplate / foamTemplateTemplate.H
bloba4aec0d763fddcb67747f7ea792672c7b4bd2887
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2008 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 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
19     for more details.
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
25 Class
26     Foam::ClassName
28 Description
30 SourceFiles
31     ClassNameI.H
32     ClassName.C
33     ClassNameIO.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef ClassName_H
38 #define ClassName_H
40 #include ".H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 // Forward declaration of classes
48 class someClass;
51 // Forward declaration of friend functions and operators
53 template<TemplateClassArgument>
54 class ClassName;
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>
68 class ClassName
70     public baseClassName
72     // Private data
74         dataType data_;
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>&);
86 public:
88     // Static data members
90         //- Static data someStaticData
91         static const dataType staticData;
94     // Constructors
96         //- Construct null
97         ClassName();
99         //- Construct from components
100         ClassName(const dataType& data);
102         //- Construct from Istream
103         ClassName(Istream&);
105         //- Construct as copy
106         ClassName(const ClassName<TemplateArgument>&);
109     // Selectors
111         //- Select null constructed
112         static autoPtr<ClassName<TemplateArgument> > New();
115     // Destructor
117         ~ClassName();
120     // Member Functions
122     // Member Operators
124         void operator=(const ClassName<TemplateArgument>&);
127     // Friend Functions
129     // Friend Operators
131     // IOstream Operators
133         friend Istream& operator>>
134         #ifndef __CINT__
135         <TemplateArgument>
136         #endif
137         (Istream&, ClassName<TemplateArgument>&);
139         friend Ostream& operator<<
140         #ifndef __CINT__
141         <TemplateArgument>
142         #endif
143         (Ostream&, const ClassName<TemplateArgument>&);
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 } // End namespace Foam
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 #include "ClassNameI.H"
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 #ifdef NoRepository
158 #   include "ClassName.C"
159 #endif
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 #endif
165 // ************************************************************************* //