#include <stream.h>
Public Member Functions | |
int | column () const |
void | eat (int n=1) |
char | get () |
std::string | get (int n) |
int | line () const |
const Mark | mark () const |
operator bool () const | |
bool | operator! () const |
char | peek () const |
int | pos () const |
void | ResetColumn () |
Stream (std::istream &input) | |
~Stream () | |
Static Public Member Functions | |
static char | eof () |
Private Types | |
enum | CharacterSet { utf8, utf16le, utf16be, utf32le, utf32be } |
Private Member Functions | |
bool | _ReadAheadTo (size_t i) const |
void | AdvanceCurrent () |
char | CharAt (size_t i) const |
unsigned char | GetNextByte () const |
bool | ReadAheadTo (size_t i) const |
void | StreamInUtf16 () const |
void | StreamInUtf32 () const |
void | StreamInUtf8 () const |
Private Attributes | |
CharacterSet | m_charSet |
std::istream & | m_input |
Mark | m_mark |
size_t | m_nPrefetchedAvailable |
size_t | m_nPrefetchedUsed |
unsigned char *const | m_pPrefetched |
std::deque< char > | m_readahead |
Friends | |
class | StreamCharSource |
enum YAML_PM::Stream::CharacterSet [private] |
YAML_PM::Stream::Stream | ( | std::istream & | input | ) |
Definition at line 180 of file stream.cpp.
Definition at line 223 of file stream.cpp.
bool YAML_PM::Stream::_ReadAheadTo | ( | size_t | i | ) | const [private] |
Definition at line 289 of file stream.cpp.
void YAML_PM::Stream::AdvanceCurrent | ( | ) | [private] |
Definition at line 278 of file stream.cpp.
char YAML_PM::Stream::CharAt | ( | size_t | i | ) | const [inline, private] |
int YAML_PM::Stream::column | ( | ) | const [inline] |
void YAML_PM::Stream::eat | ( | int | n = 1 | ) |
Definition at line 272 of file stream.cpp.
static char YAML_PM::Stream::eof | ( | ) | [inline, static] |
char YAML_PM::Stream::get | ( | ) |
Definition at line 245 of file stream.cpp.
std::string YAML_PM::Stream::get | ( | int | n | ) |
Definition at line 261 of file stream.cpp.
unsigned char YAML_PM::Stream::GetNextByte | ( | ) | const [private] |
Definition at line 398 of file stream.cpp.
int YAML_PM::Stream::line | ( | ) | const [inline] |
const Mark YAML_PM::Stream::mark | ( | ) | const [inline] |
YAML_PM::Stream::operator bool | ( | ) | const |
Definition at line 238 of file stream.cpp.
bool YAML_PM::Stream::operator! | ( | ) | const [inline] |
char YAML_PM::Stream::peek | ( | ) | const |
Definition at line 228 of file stream.cpp.
int YAML_PM::Stream::pos | ( | ) | const [inline] |
bool YAML_PM::Stream::ReadAheadTo | ( | size_t | i | ) | const [inline, private] |
void YAML_PM::Stream::ResetColumn | ( | ) | [inline] |
void YAML_PM::Stream::StreamInUtf16 | ( | ) | const [private] |
Definition at line 319 of file stream.cpp.
void YAML_PM::Stream::StreamInUtf32 | ( | ) | const [private] |
Definition at line 420 of file stream.cpp.
void YAML_PM::Stream::StreamInUtf8 | ( | ) | const [private] |
Definition at line 310 of file stream.cpp.
friend class StreamCharSource [friend] |
CharacterSet YAML_PM::Stream::m_charSet [private] |
std::istream& YAML_PM::Stream::m_input [private] |
Mark YAML_PM::Stream::m_mark [private] |
size_t YAML_PM::Stream::m_nPrefetchedAvailable [mutable, private] |
size_t YAML_PM::Stream::m_nPrefetchedUsed [mutable, private] |
unsigned char* const YAML_PM::Stream::m_pPrefetched [private] |
std::deque<char> YAML_PM::Stream::m_readahead [mutable, private] |