libebml_ng
Public Member Functions | List of all members
ebml::parseString::iterator Class Reference

Iterator for parseString objects. More...

#include <string.h>

Public Member Functions

 iterator (const char *, size_t)
 Construct an iterator with the given data pointer and size. More...
 
parseString operator* ()
 Dereference the iterator. More...
 
parseString::iteratoroperator++ ()
 Pre-increment operator. More...
 
parseString::iterator operator++ (int)
 Post-increment operator. More...
 
bool operator== (const parseString::iterator &) const
 Equality comparison. More...
 
bool operator!= (const parseString::iterator &) const
 Inequality comparison. More...
 
bool atEnd () const
 Check whether the iterator has reached the end. More...
 

Detailed Description

Iterator for parseString objects.

Provides sequential access to a sequence of EBML elements stored within the same buffer as described by a parseString.

Constructor & Destructor Documentation

◆ iterator()

ebml::parseString::iterator::iterator ( const char *  data,
size_t  size 
)

Construct an iterator with the given data pointer and size.

Parameters
dataPointer to the beginning of the data.
sizeTotal size in bytes of the data.

Member Function Documentation

◆ atEnd()

bool ebml::parseString::iterator::atEnd ( ) const

Check whether the iterator has reached the end.

Returns
True if no more elements remain.

◆ operator!=()

bool ebml::parseString::iterator::operator!= ( const parseString::iterator other) const

Inequality comparison.

Parameters
otherAnother parseString iterator.
Returns
True if the iterators differ.

◆ operator*()

parseString ebml::parseString::iterator::operator* ( )

Dereference the iterator.

Returns
A parseString representing the current element.

◆ operator++() [1/2]

parseString::iterator & ebml::parseString::iterator::operator++ ( )

Pre-increment operator.

Returns
Reference to the iterator after advancing.

◆ operator++() [2/2]

parseString::iterator ebml::parseString::iterator::operator++ ( int  )

Post-increment operator.

Returns
The iterator before increment.

◆ operator==()

bool ebml::parseString::iterator::operator== ( const parseString::iterator other) const

Equality comparison.

Parameters
otherAnother parseString iterator.
Returns
True if both iterators are equal.

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