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

Function readWordToken

src/OpenFOAM/db/IOstreams/Sstreams/ISstream.C:111–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111void Foam::ISstream::readWordToken(token& t)
112{
113 word* wPtr = new word;
114
115 if (read(*wPtr).bad())
116 {
117 delete wPtr;
118 t.setBad();
119 }
120 else if (token::compound::isCompound(*wPtr))
121 {
122 t = token::compound::New(*wPtr, *this).ptr();
123 delete wPtr;
124 }
125 else
126 {
127 t = wPtr;
128 }
129}
130
131
132Foam::Istream& Foam::ISstream::read(token& t)

Callers 1

ISstream.CFile · 0.85

Calls 6

isCompoundFunction · 0.85
readFunction · 0.50
NewFunction · 0.50
badMethod · 0.45
setBadMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected