Public Types |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
SBufIterator Class Reference
#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 |
SBufIterator & | operator++ () |
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.
Member Typedef Documentation
◆ difference_type
using SBufIterator::difference_type = std::ptrdiff_t |
◆ iterator_category
using SBufIterator::iterator_category = std::input_iterator_tag |
◆ pointer
using SBufIterator::pointer = char* |
◆ reference
using SBufIterator::reference = char& |
◆ size_type
◆ value_type
using SBufIterator::value_type = char |
Constructor & Destructor Documentation
◆ SBufIterator()
Member Function Documentation
◆ operator!=()
|
inline |
◆ operator*()
|
inline |
◆ operator++()
|
inline |
◆ operator==()
|
inline |
Friends And Related Function Documentation
◆ SBuf
Member Data Documentation
◆ iter
|
protected |
Definition at line 69 of file SBuf.h.
Referenced by operator!=(), operator*(), SBufReverseIterator::operator*(), operator++(), SBufReverseIterator::operator++(), and operator==().
The documentation for this class was generated from the following file:
- src/sbuf/SBuf.h