IN2OSM  1.0.1
DecodedStream< SourceStream, Encoding >

#include <regex.h>

Collaboration diagram for DecodedStream< SourceStream, Encoding >:
Collaboration graph

Public Member Functions

 DecodedStream (SourceStream &ss)
 
unsigned Peek ()
 
unsigned Take ()
 

Private Member Functions

void Decode ()
 

Private Attributes

SourceStream & ss_
 
unsigned codepoint_
 

Detailed Description

template<typename SourceStream, typename Encoding>
class internal::DecodedStream< SourceStream, Encoding >

Definition at line 51 of file regex.h.

Constructor & Destructor Documentation

◆ DecodedStream()

DecodedStream ( SourceStream &  ss)
inline

Definition at line 53 of file regex.h.

53 : ss_(ss), codepoint_() { Decode(); }
unsigned codepoint_
Definition: regex.h:69
SourceStream & ss_
Definition: regex.h:68
Here is the call graph for this function:

Member Function Documentation

◆ Decode()

void Decode ( )
inlineprivate

Definition at line 63 of file regex.h.

63  {
64  if (!Encoding::Decode(ss_, &codepoint_))
65  codepoint_ = 0;
66  }
unsigned codepoint_
Definition: regex.h:69
SourceStream & ss_
Definition: regex.h:68
Here is the caller graph for this function:

◆ Peek()

unsigned Peek ( )
inline

Definition at line 54 of file regex.h.

54 { return codepoint_; }
unsigned codepoint_
Definition: regex.h:69
Here is the caller graph for this function:

◆ Take()

unsigned Take ( )
inline

Definition at line 55 of file regex.h.

55  {
56  unsigned c = codepoint_;
57  if (c) // No further decoding when '\0'
58  Decode();
59  return c;
60  }
unsigned codepoint_
Definition: regex.h:69
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ codepoint_

unsigned codepoint_
private

Definition at line 69 of file regex.h.

◆ ss_

SourceStream& ss_
private

Definition at line 68 of file regex.h.


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