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

Function addOrDelete

src/meshTools/sets/topoSetSource/topoSetSource.C:139–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
138
139void Foam::topoSetSource::addOrDelete
140(
141 topoSet& set,
142 const label celli,
143 const bool add
144) const
145{
146 if (add)
147 {
148 set.insert(celli);
149 }
150 else
151 {
152 set.erase(celli);
153 }
154}
155
156
157// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 15

combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85
combineFunction · 0.85

Calls 2

eraseMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected