156 if(buffer_offset_ >= buffer_size_) {
163 if(stream_.rdbuf()->sgetc() == EOF) {
167 buffer_size_ =
static_cast<unsigned> (stream_.readsome(buffer_,
sizeof(buffer_)));
unsigned buffer_offset_
The offset of the current character in the buffer.
std::istream & stream_
The input to read from.
void fill_buffer()
Fills the buffer.
int peek()
Gets a character from the buffer.
Helper class for buffering a std::istream.
char buffer_[1024]
Buffer to store the data read from std::istream.
unsigned in
If equal to search_counter, the node is off the list.
buffered_istream(std::istream &in)
unsigned buffer_size_
The size of buffer_.
std::istream & stream()
Returns the owned stream.
bool eof() const
Is the end of input reached?
bool eof_
Is the end of input reached?