CursorStreamWrapper< InputStream, Encoding > Class Template Reference

CursorStreamWrapper&lt; InputStream, Encoding &gt; Class Template Reference#

Composable Kernel: CursorStreamWrapper< InputStream, Encoding > Class Template Reference
CursorStreamWrapper< InputStream, Encoding > Class Template Reference

Cursor stream wrapper for counting line and column number if error exists. More...

#include <cursorstreamwrapper.h>

Inheritance diagram for CursorStreamWrapper< InputStream, Encoding >:
GenericStreamWrapper< InputStream, UTF8<> >

Public Types

typedef Encoding::Ch Ch
 
- Public Types inherited from GenericStreamWrapper< InputStream, UTF8<> >
typedef Encoding::Ch Ch
 

Public Member Functions

 CursorStreamWrapper (InputStream &is)
 
Ch Take ()
 
size_t GetLine () const
 Get the error line number, if error exists. More...
 
size_t GetColumn () const
 Get the error column number, if error exists. More...
 
- Public Member Functions inherited from GenericStreamWrapper< InputStream, UTF8<> >
 GenericStreamWrapper (InputStream &is)
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell ()
 
ChPutBegin ()
 
void Put (Ch ch)
 
void Flush ()
 
size_t PutEnd (Ch *ch)
 
const ChPeek4 () const
 
UTFType GetType () const
 
bool HasBOM () const
 

Additional Inherited Members

- Protected Attributes inherited from GenericStreamWrapper< InputStream, UTF8<> >
InputStream & is_
 

Detailed Description

template<typename InputStream, typename Encoding = UTF8<>>
class CursorStreamWrapper< InputStream, Encoding >

Cursor stream wrapper for counting line and column number if error exists.

Template Parameters
InputStreamAny stream that implements Stream Concept

Member Typedef Documentation

◆ Ch

template<typename InputStream , typename Encoding = UTF8<>>
typedef Encoding::Ch CursorStreamWrapper< InputStream, Encoding >::Ch

Constructor & Destructor Documentation

◆ CursorStreamWrapper()

template<typename InputStream , typename Encoding = UTF8<>>
CursorStreamWrapper< InputStream, Encoding >::CursorStreamWrapper ( InputStream &  is)
inline

Member Function Documentation

◆ GetColumn()

template<typename InputStream , typename Encoding = UTF8<>>
size_t CursorStreamWrapper< InputStream, Encoding >::GetColumn ( ) const
inline

Get the error column number, if error exists.

◆ GetLine()

template<typename InputStream , typename Encoding = UTF8<>>
size_t CursorStreamWrapper< InputStream, Encoding >::GetLine ( ) const
inline

Get the error line number, if error exists.

◆ Take()

template<typename InputStream , typename Encoding = UTF8<>>
Ch CursorStreamWrapper< InputStream, Encoding >::Take ( )
inline

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/rapidjson/cursorstreamwrapper.h