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

Function findEntry

src/mesh/blockMesh/blockMeshTools/blockMeshTools.C:114–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113
114const Foam::keyType& Foam::blockMeshTools::findEntry
115(
116 const dictionary& dict,
117 const label val
118)
119{
120 forAllConstIter(dictionary, dict, iter)
121 {
122 if (iter().isStream())
123 {
124 label keyVal(Foam::readLabel(iter().stream()));
125 if (keyVal == val)
126 {
127 return iter().keyword();
128 }
129 }
130 }
131
132 return keyType::null;
133}
134
135
136// ************************************************************************* //

Callers

nothing calls this directly

Calls 2

forAllConstIterFunction · 0.50
isStreamMethod · 0.45

Tested by

no test coverage detected