#include <SBuf.h>

Inheritance diagram for SBufIterator:
Collaboration diagram for SBufIterator:

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

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

Protected Member Functions

 SBufIterator (const SBuf &, size_type)
 

Protected Attributes

const char * iter = nullptr
 

Friends

class SBuf
 

Detailed Description

Forward 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 48 of file SBuf.h.

Member Typedef Documentation

◆ difference_type

using SBufIterator::difference_type = std::ptrdiff_t

Definition at line 54 of file SBuf.h.

◆ iterator_category

using SBufIterator::iterator_category = std::input_iterator_tag

Definition at line 52 of file SBuf.h.

◆ pointer

using SBufIterator::pointer = char*

Definition at line 55 of file SBuf.h.

◆ reference

using SBufIterator::reference = char&

Definition at line 56 of file SBuf.h.

◆ size_type

Definition at line 59 of file SBuf.h.

◆ value_type

Definition at line 53 of file SBuf.h.

Constructor & Destructor Documentation

◆ SBufIterator()

SBufIterator::SBufIterator ( const SBuf s,
size_type  pos 
)
inlineprotected

Definition at line 776 of file SBuf.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 788 of file SBuf.h.

References iter.

◆ operator*()

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

Definition at line 63 of file SBuf.h.

References iter.

◆ operator++()

SBufIterator & SBufIterator::operator++ ( )
inline

Definition at line 64 of file SBuf.h.

References iter.

◆ operator==()

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

Definition at line 781 of file SBuf.h.

References iter.

Friends And Related Function Documentation

◆ SBuf

friend class SBuf
friend

Definition at line 58 of file SBuf.h.

Member Data Documentation

◆ iter

const char* SBufIterator::iter = nullptr
protected

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors