1 /*----------------------------------------------------------------------------*\
3 | ____| _| |_ / __ \ /\ | \/ |
4 | |__ _ __ ___ ___ / \| | | | / \ | \ / |
5 | __| '__/ _ \/ _ ( (| |) ) | | |/ /\ \ | |\/| |
6 | | | | | __/ __/\_ _/| |__| / ____ \| | | |
7 |_| |_| \___|\___| |_| \____/_/ \_\_| |_|
9 FreeFOAM: The Cross-Platform CFD Toolkit
11 Copyright (C) 2008-2010 Michael Wild <themiwi@users.sf.net>
12 Gerber van der Graaf <gerber_graaf@users.sf.net>
13 --------------------------------------------------------------------------------
15 This file is part of FreeFOAM.
17 FreeFOAM is free software: you can redistribute it and/or modify it
18 under the terms of the GNU General Public License as published by
19 the Free Software Foundation, either version 3 of the License, or
20 (at your option) any later version.
22 FreeFOAM is distributed in the hope that it will be useful, but WITHOUT
23 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
24 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
27 You should have received a copy of the GNU General Public License
28 along with FreeFOAM. If not, see <http://www.gnu.org/licenses/>.
30 \*---------------------------------------------------------------------------*/
32 #include <LibName/ClassName.H>
34 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
36 template<TemplateClassArgument>
37 const dataType Foam::ClassName<TemplateArgument>::staticData();
40 // * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * * //
43 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
45 template<TemplateClassArgument>
46 Foam::ClassName<TemplateArgument>::ClassName()
53 template<TemplateClassArgument>
54 Foam::ClassName<TemplateArgument>::ClassName(const dataType& data)
61 template<TemplateClassArgument>
62 Foam::ClassName<TemplateArgument>::ClassName
64 const ClassName<TemplateArgument>&
72 // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
74 template<TemplateClassArgument>
75 Foam::autoPtr<Foam::ClassName<TemplateArgument> >
76 Foam::ClassName<TemplateArgument>::New()
78 return autoPtr<ClassName<TemplateArgument> >
80 new ClassName<TemplateArgument>
85 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
87 template<TemplateClassArgument>
88 Foam::ClassName<TemplateArgument>::~ClassName()
92 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
95 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
98 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
101 // * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
103 template<TemplateClassArgument>
104 void Foam::ClassName<TemplateArgument>::operator=
106 const ClassName<TemplateArgument>& rhs
109 // Check for assignment to self
114 "Foam::ClassName<TemplateArgument>::operator="
115 "(const Foam::ClassName<TemplateArgument>&)"
116 ) << "Attempted assignment to self"
117 << abort(FatalError);
122 // * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * * //
125 // * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * * //
128 // *********************** vim: set sw=4 sts=4 et: ************************ //