faceIOGraph.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6  \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 Description
25  An graph of faces which supports automated output.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "faceIOGraph.H"
30 
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
39 :
40  regIOobject(io),
41  VRWGraph()
42 {}
43 
45 (
46  const IOobject& io,
47  const label size
48 )
49 :
50  regIOobject(io),
51  VRWGraph(size)
52 {}
53 
55 (
56  const IOobject& io,
57  const VRWGraph& g
58 )
59 :
60  regIOobject(io),
61  VRWGraph(g)
62 {}
63 
65 {
67 }
68 
70 {
72 }
73 
75 {
76  return (os << *this).good();
77 }
78 
79 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80 
82 
83 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
84 
85 } // End namespace Foam
86 
87 // ************************************************************************* //
Foam::IOobject
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
Foam::faceIOGraph::faceIOGraph
faceIOGraph(const IOobject &)
Construct from IOobject.
Definition: faceIOGraph.C:38
g
const dimensionedVector & g
Definition: setRegionFluidFields.H:33
Foam::faceIOGraph
Definition: faceIOGraph.H:49
Foam::VRWGraph::operator=
void operator=(const VRWGraph &)
Assignment operator.
Definition: VRWGraphI.H:586
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
faceIOGraph.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::regIOobject
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:60
Foam::defineTypeNameWithName
defineTypeNameWithName(cellIOGraph, "cellList")
Foam::faceIOGraph::writeData
bool writeData(Ostream &) const
Pure virtual writaData function.
Definition: faceIOGraph.C:74
Foam::faceIOGraph::operator=
void operator=(const faceIOGraph &)
Definition: faceIOGraph.C:64
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::VRWGraph
Definition: VRWGraph.H:101