tetengo 1.8.1
A multipurpose library set
Loading...
Searching...
No Matches
tetengo::json::reader_iterator Class Reference

A reader iterator. More...

#include <reader_iterator.hpp>

+ Inheritance diagram for tetengo::json::reader_iterator:
+ Collaboration diagram for tetengo::json::reader_iterator:

Public Member Functions

 reader_iterator ()
 Creates an iterator.
 
 reader_iterator (reader &reader_)
 Creates an iterator.
 
char operator* () const
 Dereferences the iterator.
 
char operator* ()
 Dereferences the iterator.
 
reader_iteratoroperator++ ()
 Increments the iterator.
 
reader_iterator operator++ (int)
 Postincrements the iterator.
 

Friends

bool operator== (const reader_iterator &one, const reader_iterator &another)
 Returns true when one iterator is equal to another.
 

Detailed Description

A reader iterator.

Constructor & Destructor Documentation

◆ reader_iterator() [1/2]

tetengo::json::reader_iterator::reader_iterator ( )

Creates an iterator.

It points to the last of the characters.

◆ reader_iterator() [2/2]

tetengo::json::reader_iterator::reader_iterator ( reader reader_)
explicit

Creates an iterator.

Parameters
reader_A reader.

Member Function Documentation

◆ operator*() [1/2]

char tetengo::json::reader_iterator::operator* ( )

Dereferences the iterator.

Returns
The dereferenced value.

◆ operator*() [2/2]

char tetengo::json::reader_iterator::operator* ( ) const

Dereferences the iterator.

Returns
The dereferenced value.

◆ operator++() [1/2]

reader_iterator & tetengo::json::reader_iterator::operator++ ( )

Increments the iterator.

Returns
This iterator.

◆ operator++() [2/2]

reader_iterator tetengo::json::reader_iterator::operator++ ( int  )

Postincrements the iterator.

Returns
The iterator before the incrementation.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const reader_iterator one,
const reader_iterator another 
)
friend

Returns true when one iterator is equal to another.

Parameters
oneOne iterator.
anotherAnother iterator.
Return values
trueWhen one is equal to another.
falseOtherwise.

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