| 50 | |
| 51 | |
| 52 | bool 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 | |
| 71 | bool Foam::Istream::peekBack(token& t) |
no test coverage detected