#include <SBuf.h>

Inheritance diagram for SBufReverseIterator:
Collaboration diagram for SBufReverseIterator:

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = char
 
using difference_type = std::ptrdiff_t
 
using pointer = char *
 
using reference = char &
 
typedef MemBlob::size_type size_type
 

Public Member Functions

SBufReverseIteratoroperator++ ()
 
const char & operator* () const
 
bool operator== (const SBufIterator &s) const
 
bool operator!= (const SBufIterator &s) const
 

Protected Member Functions

 SBufReverseIterator (const SBuf &s, size_type sz)
 

Protected Attributes

const char * iter = nullptr
 

Friends

class SBuf
 

Detailed Description

Reverse input const_iterator for SBufs

Please note that any operation on the underlying SBuf may invalidate all iterators over it, resulting in undefined behavior by them.

Definition at line 77 of file SBuf.h.

Member Typedef Documentation

◆ difference_type

using SBufIterator::difference_type = std::ptrdiff_t
inherited

Definition at line 54 of file SBuf.h.

◆ iterator_category

using SBufIterator::iterator_category = std::input_iterator_tag
inherited

Definition at line 52 of file SBuf.h.

◆ pointer

using SBufIterator::pointer = char*
inherited

Definition at line 55 of file SBuf.h.

◆ reference

using SBufIterator::reference = char&
inherited

Definition at line 56 of file SBuf.h.

◆ size_type

Definition at line 59 of file SBuf.h.

◆ value_type

using SBufIterator::value_type = char
inherited

Definition at line 53 of file SBuf.h.

Constructor & Destructor Documentation

◆ SBufReverseIterator()

SBufReverseIterator::SBufReverseIterator ( const SBuf s,
size_type  sz 
)
inlineprotected

Definition at line 84 of file SBuf.h.

Member Function Documentation

◆ operator!=()

bool SBufIterator::operator!= ( const SBufIterator s) const
inlineinherited

Definition at line 788 of file SBuf.h.

References SBufIterator::iter.

◆ operator*()

const char & SBufReverseIterator::operator* ( ) const
inline

Definition at line 82 of file SBuf.h.

References SBufIterator::iter.

◆ operator++()

SBufReverseIterator & SBufReverseIterator::operator++ ( )
inline

Definition at line 81 of file SBuf.h.

References SBufIterator::iter.

◆ operator==()

bool SBufIterator::operator== ( const SBufIterator s) const
inlineinherited

Definition at line 781 of file SBuf.h.

References SBufIterator::iter.

Friends And Related Function Documentation

◆ SBuf

friend class SBuf
friend

Definition at line 79 of file SBuf.h.

Member Data Documentation

◆ iter

const char* SBufIterator::iter = nullptr
protectedinherited

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors