indexedVertexEnum.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2012-2015 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
28#include "indexedVertexEnum.H"
29#include "Pstream.H"
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33const Foam::Enum
34<
36>
38({
39 { vertexType::vtUnassigned, "Unassigned" },
40 { vertexType::vtInternal, "Internal" },
41 { vertexType::vtInternalNearBoundary, "InternalNearBoundary" },
42 { vertexType::vtInternalSurface, "InternalSurface" },
43 { vertexType::vtInternalSurfaceBaffle, "InternalSurfaceBaffle" },
44 { vertexType::vtExternalSurfaceBaffle, "ExternalSurfaceBaffle" },
45 { vertexType::vtInternalFeatureEdge, "InternalFeatureEdge" },
46 { vertexType::vtInternalFeatureEdgeBaffle, "InternalFeatureEdgeBaffle" },
47 { vertexType::vtExternalFeatureEdgeBaffle, "ExternalFeatureEdgeBaffle" },
48 { vertexType::vtInternalFeaturePoint, "InternalFeaturePoint" },
49 { vertexType::vtExternalSurface, "ExternalSurface" },
50 { vertexType::vtExternalFeatureEdge, "ExternalFeatureEdge" },
51 { vertexType::vtExternalFeaturePoint, "ExternalFeaturePoint" },
52 { vertexType::vtFar, "Far" },
53 { vertexType::vtConstrained, "Constrained" },
54});
55
56
57const Foam::Enum
58<
60>
62{
63 { vertexMotion::fixed, "fixed" },
64 { vertexMotion::movable, "movable" },
65};
66
67
68// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
69
70Foam::Ostream& Foam::operator<<
71(
72 Ostream& os,
74)
75{
76 os << static_cast<int>(v);
77
78 return os;
79}
80
81Foam::Istream& Foam::operator>>
82(
83 Istream& is,
85)
86{
87 int type;
88 is >> type;
89
91
92 return is;
93}
94
95// ************************************************************************* //
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Definition: Enum.H:61
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
static const Enum< vertexMotion > vertexMotionNames_
static const Enum< vertexType > vertexTypeNames_
OBJstream os(runTime.globalPath()/outputName)
type
Types of root.
Definition: Roots.H:55