sisi4s
Loading...
Searching...
No Matches
sisi4s::Scanner Class Reference

#include <Scanner.hpp>

Collaboration diagram for sisi4s::Scanner:

Public Member Functions

 Scanner (std::istream *stream_)
 
std::string nextLine (char const delimiter='\n')
 

Protected Member Functions

void refillBuffer ()
 

Protected Attributes

std::istream * stream
 
char * buffer
 
char * pos
 
char * end
 
bool eof
 

Static Protected Attributes

static unsigned int constexpr BUFFER_SIZE = 128 * 1024 * 1024
 
static unsigned int constexpr REFILL_SIZE = 128
 

Friends

template<typename NumberType >
class NumberScanner
 

Constructor & Destructor Documentation

◆ Scanner()

sisi4s::Scanner::Scanner ( std::istream *  stream_)
inline

Member Function Documentation

◆ nextLine()

std::string sisi4s::Scanner::nextLine ( char const  delimiter = '\n')
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refillBuffer()

void sisi4s::Scanner::refillBuffer ( )
inlineprotected
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ NumberScanner

template<typename NumberType >
friend class NumberScanner
friend

Member Data Documentation

◆ buffer

char* sisi4s::Scanner::buffer
protected

◆ BUFFER_SIZE

unsigned int constexpr sisi4s::Scanner::BUFFER_SIZE = 128 * 1024 * 1024
staticconstexprprotected

◆ end

char * sisi4s::Scanner::end
protected

◆ eof

bool sisi4s::Scanner::eof
protected

◆ pos

char * sisi4s::Scanner::pos
protected

◆ REFILL_SIZE

unsigned int constexpr sisi4s::Scanner::REFILL_SIZE = 128
staticconstexprprotected

◆ stream

std::istream* sisi4s::Scanner::stream
protected

The documentation for this class was generated from the following file: