Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
YAML_PM::Stream Class Reference

#include <stream.h>

Inheritance diagram for YAML_PM::Stream:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 20 of file stream.h.


Member Enumeration Documentation

Enumerator:
utf8 
utf16le 
utf16be 
utf32le 
utf32be 

Definition at line 45 of file stream.h.


Constructor & Destructor Documentation

YAML_PM::Stream::Stream ( std::istream &  input)

Definition at line 180 of file stream.cpp.

Definition at line 223 of file stream.cpp.


Member Function Documentation

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]

Definition at line 68 of file stream.h.

int YAML_PM::Stream::column ( ) const [inline]

Definition at line 41 of file stream.h.

void YAML_PM::Stream::eat ( int  n = 1)

Definition at line 272 of file stream.cpp.

static char YAML_PM::Stream::eof ( ) [inline, static]

Definition at line 36 of file stream.h.

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]

Definition at line 40 of file stream.h.

const Mark YAML_PM::Stream::mark ( ) const [inline]

Definition at line 38 of file stream.h.

YAML_PM::Stream::operator bool ( ) const

Definition at line 238 of file stream.cpp.

bool YAML_PM::Stream::operator! ( ) const [inline]

Definition at line 29 of file stream.h.

char YAML_PM::Stream::peek ( ) const

Definition at line 228 of file stream.cpp.

int YAML_PM::Stream::pos ( ) const [inline]

Definition at line 39 of file stream.h.

bool YAML_PM::Stream::ReadAheadTo ( size_t  i) const [inline, private]

Definition at line 72 of file stream.h.

void YAML_PM::Stream::ResetColumn ( ) [inline]

Definition at line 42 of file stream.h.

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.


Friends And Related Function Documentation

friend class StreamCharSource [friend]

Definition at line 23 of file stream.h.


Member Data Documentation

Definition at line 50 of file stream.h.

std::istream& YAML_PM::Stream::m_input [private]

Definition at line 47 of file stream.h.

Definition at line 48 of file stream.h.

size_t YAML_PM::Stream::m_nPrefetchedAvailable [mutable, private]

Definition at line 53 of file stream.h.

size_t YAML_PM::Stream::m_nPrefetchedUsed [mutable, private]

Definition at line 54 of file stream.h.

unsigned char* const YAML_PM::Stream::m_pPrefetched [private]

Definition at line 52 of file stream.h.

std::deque<char> YAML_PM::Stream::m_readahead [mutable, private]

Definition at line 51 of file stream.h.


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


libpointmatcher
Author(s):
autogenerated on Mon Sep 14 2015 02:59:08