TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType > Class Template Reference

Public Types

typedef CharType Ch
 

Public Member Functions

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

Private Member Functions

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

Private Attributes

internal::Stack< StackAllocator > & stack_
 
SizeType length_
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::StackStream ( internal::Stack< StackAllocator > &  stack)
inline
617 : stack_(stack), length_(0) {}
SizeType length_
Definition: reader.h:632
internal::Stack< StackAllocator > & stack_
Definition: reader.h:631
template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::StackStream ( const StackStream< CharType > &  )
private

Member Function Documentation

template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
size_t GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::Length ( ) const
inline
622 { return length_; }
SizeType length_
Definition: reader.h:632
template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
StackStream& GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::operator= ( const StackStream< CharType > &  )
private
template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
Ch* GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::Pop ( )
inline
623  {
624  return stack_.template Pop<Ch>(length_);
625  }
SizeType length_
Definition: reader.h:632
internal::Stack< StackAllocator > & stack_
Definition: reader.h:631
template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
RAPIDJSON_FORCEINLINE void GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::Put ( Ch  c)
inline
618  {
619  *stack_.template Push<Ch>() = c;
620  ++length_;
621  }
SizeType length_
Definition: reader.h:632
internal::Stack< StackAllocator > & stack_
Definition: reader.h:631

Member Data Documentation

template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
SizeType GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::length_
private
template<typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
template<typename CharType>
internal::Stack<StackAllocator>& GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::StackStream< CharType >::stack_
private

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