IN2OSM  1.0.1
GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >
Collaboration diagram for GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >:
Collaboration graph

Public Types

typedef CharType Ch
 

Public Member Functions

 StackStream (internal::Stack< StackAllocator > &stack)
 
RAPIDJSON_FORCEINLINE void Put (Ch c)
 
RAPIDJSON_FORCEINLINE void * Push (SizeType count)
 
size_t Length () const
 
ChPop ()
 

Private Member Functions

 StackStream (const StackStream &)
 
StackStreamoperator= (const StackStream &)
 

Private Attributes

internal::Stack< StackAllocator > & stack_
 
SizeType length_
 

Detailed Description

template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
class GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >

Definition at line 926 of file reader.h.

Member Typedef Documentation

◆ Ch

typedef CharType Ch

Definition at line 928 of file reader.h.

Constructor & Destructor Documentation

◆ StackStream() [1/2]

StackStream ( internal::Stack< StackAllocator > &  stack)
inline

Definition at line 930 of file reader.h.

930 : stack_(stack), length_(0) {}
internal::Stack< StackAllocator > & stack_
Definition: reader.h:951

◆ StackStream() [2/2]

StackStream ( const StackStream< CharType > &  )
private

Member Function Documentation

◆ Length()

size_t Length ( ) const
inline

Definition at line 941 of file reader.h.

941 { return length_; }
Here is the caller graph for this function:

◆ operator=()

StackStream& operator= ( const StackStream< CharType > &  )
private

◆ Pop()

Ch* Pop ( )
inline

Definition at line 943 of file reader.h.

943  {
944  return stack_.template Pop<Ch>(length_);
945  }
internal::Stack< StackAllocator > & stack_
Definition: reader.h:951
Here is the caller graph for this function:

◆ Push()

RAPIDJSON_FORCEINLINE void* Push ( SizeType  count)
inline

Definition at line 936 of file reader.h.

936  {
937  length_ += count;
938  return stack_.template Push<Ch>(count);
939  }
internal::Stack< StackAllocator > & stack_
Definition: reader.h:951
Here is the caller graph for this function:

◆ Put()

RAPIDJSON_FORCEINLINE void Put ( Ch  c)
inline

Definition at line 931 of file reader.h.

931  {
932  *stack_.template Push<Ch>() = c;
933  ++length_;
934  }
internal::Stack< StackAllocator > & stack_
Definition: reader.h:951
Here is the caller graph for this function:

Member Data Documentation

◆ length_

SizeType length_
private

Definition at line 952 of file reader.h.

◆ stack_

internal::Stack<StackAllocator>& stack_
private

Definition at line 951 of file reader.h.


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