1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | cfMesh: A library for mesh generation
5 \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6 \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of cfMesh.
11 cfMesh 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 3 of the License, or (at your
14 option) any later version.
16 cfMesh 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 cfMesh. If not, see <http://www.gnu.org/licenses/>.
25 An IOLongList of a given type is a list which supports automated
28 \*---------------------------------------------------------------------------*/
30 #include "IOLongList.H"
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 template<class T, label Offset>
40 IOLongList<T, Offset>::IOLongList(const IOobject& io)
47 io.readOpt() == IOobject::MUST_READ
48 || (io.readOpt() == IOobject::READ_IF_PRESENT && headerOk())
51 readStream(typeName) >> *this;
57 template<class T, label Offset>
58 IOLongList<T, Offset>::IOLongList
65 LongList<T, Offset>(size)
69 template<class T, label Offset>
70 IOLongList<T, Offset>::IOLongList
73 const LongList<T, Offset>& list
79 if (io.readOpt() == IOobject::READ_IF_PRESENT && headerOk())
81 readStream(typeName) >> *this;
85 LongList<T, Offset>::operator=(list);
89 template<class T, label Offset>
90 void IOLongList<T, Offset>::operator=
92 const IOLongList<T, Offset>& rhs
95 LongList<T, Offset>::operator=(rhs);
99 template<class T, label Offset>
100 void IOLongList<T, Offset>::operator=
102 const LongList<T, Offset>& rhs
105 LongList<T, Offset>::operator=(rhs);
109 template<class T, label Offset>
110 bool IOLongList<T, Offset>::writeData(Ostream& os) const
112 return (os << *this).good();
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace Foam
120 // ************************************************************************* //