Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
YAML_PM::Stream Class Reference

#include <stream.h>

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

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 Member Functions inherited from YAML_PM::noncopyable
 noncopyable ()
 
 ~noncopyable ()
 

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

◆ CharacterSet

Enumerator
utf8 
utf16le 
utf16be 
utf32le 
utf32be 

Definition at line 45 of file stream.h.

Constructor & Destructor Documentation

◆ Stream()

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

Definition at line 180 of file stream.cpp.

◆ ~Stream()

YAML_PM::Stream::~Stream ( )

Definition at line 223 of file stream.cpp.

Member Function Documentation

◆ _ReadAheadTo()

bool YAML_PM::Stream::_ReadAheadTo ( size_t  i) const
private

Definition at line 289 of file stream.cpp.

◆ AdvanceCurrent()

void YAML_PM::Stream::AdvanceCurrent ( )
private

Definition at line 278 of file stream.cpp.

◆ CharAt()

char YAML_PM::Stream::CharAt ( size_t  i) const
inlineprivate

Definition at line 68 of file stream.h.

◆ column()

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

Definition at line 41 of file stream.h.

◆ eat()

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

Definition at line 272 of file stream.cpp.

◆ eof()

static char YAML_PM::Stream::eof ( )
inlinestatic

Definition at line 36 of file stream.h.

◆ get() [1/2]

char YAML_PM::Stream::get ( )

Definition at line 245 of file stream.cpp.

◆ get() [2/2]

std::string YAML_PM::Stream::get ( int  n)

Definition at line 261 of file stream.cpp.

◆ GetNextByte()

unsigned char YAML_PM::Stream::GetNextByte ( ) const
private

Definition at line 398 of file stream.cpp.

◆ line()

int YAML_PM::Stream::line ( ) const
inline

Definition at line 40 of file stream.h.

◆ mark()

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

Definition at line 38 of file stream.h.

◆ operator bool()

YAML_PM::Stream::operator bool ( ) const

Definition at line 238 of file stream.cpp.

◆ operator!()

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

Definition at line 29 of file stream.h.

◆ peek()

char YAML_PM::Stream::peek ( ) const

Definition at line 228 of file stream.cpp.

◆ pos()

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

Definition at line 39 of file stream.h.

◆ ReadAheadTo()

bool YAML_PM::Stream::ReadAheadTo ( size_t  i) const
inlineprivate

Definition at line 72 of file stream.h.

◆ ResetColumn()

void YAML_PM::Stream::ResetColumn ( )
inline

Definition at line 42 of file stream.h.

◆ StreamInUtf16()

void YAML_PM::Stream::StreamInUtf16 ( ) const
private

Definition at line 319 of file stream.cpp.

◆ StreamInUtf32()

void YAML_PM::Stream::StreamInUtf32 ( ) const
private

Definition at line 420 of file stream.cpp.

◆ StreamInUtf8()

void YAML_PM::Stream::StreamInUtf8 ( ) const
private

Definition at line 310 of file stream.cpp.

Friends And Related Function Documentation

◆ StreamCharSource

friend class StreamCharSource
friend

Definition at line 23 of file stream.h.

Member Data Documentation

◆ m_charSet

CharacterSet YAML_PM::Stream::m_charSet
private

Definition at line 50 of file stream.h.

◆ m_input

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

Definition at line 47 of file stream.h.

◆ m_mark

Mark YAML_PM::Stream::m_mark
private

Definition at line 48 of file stream.h.

◆ m_nPrefetchedAvailable

size_t YAML_PM::Stream::m_nPrefetchedAvailable
mutableprivate

Definition at line 53 of file stream.h.

◆ m_nPrefetchedUsed

size_t YAML_PM::Stream::m_nPrefetchedUsed
mutableprivate

Definition at line 54 of file stream.h.

◆ m_pPrefetched

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

Definition at line 52 of file stream.h.

◆ m_readahead

std::deque<char> YAML_PM::Stream::m_readahead
mutableprivate

Definition at line 51 of file stream.h.


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


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:38:04