IN2OSM  1.0.1
GenericStringStream< Encoding >

Read-only string stream. More...

#include <fwd.h>

Collaboration diagram for GenericStringStream< Encoding >:
Collaboration graph

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 GenericStringStream (const Ch *src)
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
ChPutBegin ()
 
void Put (Ch)
 
void Flush ()
 
size_t PutEnd (Ch *)
 

Public Attributes

const Chsrc_
 Current read position. More...
 
const Chhead_
 Original head of the string. More...
 

Detailed Description

template<typename Encoding>
struct GenericStringStream< Encoding >

Read-only string stream.

Note
implements Stream concept

Definition at line 47 of file fwd.h.

Member Typedef Documentation

◆ Ch

typedef Encoding::Ch Ch

Definition at line 155 of file stream.h.

Constructor & Destructor Documentation

◆ GenericStringStream()

GenericStringStream ( const Ch src)
inline

Definition at line 157 of file stream.h.

157 : src_(src), head_(src) {}
const Ch * src_
Current read position.
Definition: stream.h:168
const Ch * head_
Original head of the string.
Definition: stream.h:169

Member Function Documentation

◆ Flush()

void Flush ( )
inline

Definition at line 165 of file stream.h.

165 { RAPIDJSON_ASSERT(false); }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:406

◆ Peek()

Ch Peek ( ) const
inline

Definition at line 159 of file stream.h.

159 { return *src_; }
const Ch * src_
Current read position.
Definition: stream.h:168
Here is the caller graph for this function:

◆ Put()

void Put ( Ch  )
inline

Definition at line 164 of file stream.h.

164 { RAPIDJSON_ASSERT(false); }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:406

◆ PutBegin()

Ch* PutBegin ( )
inline

Definition at line 163 of file stream.h.

163 { RAPIDJSON_ASSERT(false); return 0; }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:406

◆ PutEnd()

size_t PutEnd ( Ch )
inline

Definition at line 166 of file stream.h.

166 { RAPIDJSON_ASSERT(false); return 0; }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:406

◆ Take()

Ch Take ( )
inline

Definition at line 160 of file stream.h.

160 { return *src_++; }
const Ch * src_
Current read position.
Definition: stream.h:168
Here is the caller graph for this function:

◆ Tell()

size_t Tell ( ) const
inline

Definition at line 161 of file stream.h.

161 { return static_cast<size_t>(src_ - head_); }
const Ch * src_
Current read position.
Definition: stream.h:168
const Ch * head_
Original head of the string.
Definition: stream.h:169
Here is the caller graph for this function:

Member Data Documentation

◆ head_

const Ch* head_

Original head of the string.

Definition at line 169 of file stream.h.

◆ src_

const Ch* src_

Current read position.

Definition at line 168 of file stream.h.


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