MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / topoSetSource

Class topoSetSource

src/meshTools/sets/topoSetSource/topoSetSource.H:64–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62\*---------------------------------------------------------------------------*/
63
64class topoSetSource
65{
66public:
67
68 // Public data types
69
70 //- Enumeration defining the types of sources
71 enum sourceType
72 {
73 CELLSETSOURCE,
74 FACESETSOURCE,
75 POINTSETSOURCE,
76
77 CELLZONESOURCE,
78 FACEZONESOURCE,
79 POINTZONESOURCE
80 };
81
82 //- Enumeration defining the valid actions
83 enum setAction
84 {
85 CLEAR,
86 NEW,
87 INVERT,
88 ADD,
89 DELETE,
90 SUBSET,
91 LIST,
92 REMOVE
93 };
94
95protected:
96
97 //- A table of usage strings
98 static HashTable<string>* usageTablePtr_;
99
100 //- Class with constructor to add usage string to table
101 class addToUsageTable
102 {
103 public:
104
105 addToUsageTable(const word& name, const string& msg)
106 {
107 if (!usageTablePtr_)
108 {
109 usageTablePtr_ = new HashTable<string>();
110 }
111 usageTablePtr_->insert(name, msg);
112 }
113
114 ~addToUsageTable()
115 {
116 if (usageTablePtr_)
117 {
118 delete usageTablePtr_;
119 usageTablePtr_ = nullptr;
120 }
121 }

Callers 15

doCommandFunction · 0.85
badQualityToCell.CFile · 0.85
badQualityToFace.CFile · 0.85
regionToFace.CFile · 0.85
boxToFace.CFile · 0.85
faceToFace.CFile · 0.85
zoneToFace.CFile · 0.85
labelToFace.CFile · 0.85
patchToFace.CFile · 0.85
boundaryToFace.CFile · 0.85
pointToFace.CFile · 0.85
cellToFace.CFile · 0.85

Calls 1

foundMethod · 0.45

Tested by

no test coverage detected