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

Function getBack

src/OpenFOAM/db/IOstreams/IOstreams/Istream.C:52–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52bool Foam::Istream::getBack(token& t)
53{
54 if (bad())
55 {
56 FatalIOErrorInFunction(*this)
57 << "Attempt to get back from bad stream"
58 << exit(FatalIOError);
59 }
60 else if (putBack_)
61 {
62 t = putBackToken_;
63 putBack_ = false;
64 return true;
65 }
66
67 return false;
68}
69
70
71bool Foam::Istream::peekBack(token& t)

Callers 3

UIPstream.CFile · 0.85
ISstream.CFile · 0.85
ITstream.CFile · 0.85

Calls 1

exitFunction · 0.50

Tested by

no test coverage detected