StormByte C++ Library: Database module 0.0.9999
StormByte-Database is a StormByte library module for handling database connections
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
StormByte::Database::Row::ConstIterator Class Reference

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = const Value
 
using difference_type = std::ptrdiff_t
 
using pointer = const Value *
 
using reference = const Value &
 

Public Member Functions

reference operator* () const
 Dereference operator.
 
pointer operator-> () const
 Arrow operator.
 
ConstIteratoroperator++ ()
 Pre-increment operator.
 
ConstIterator operator++ (int)
 Post-increment operator.
 
ConstIteratoroperator-- () noexcept
 Pre-decrement operator.
 
ConstIterator operator-- (int) noexcept
 Post-decrement operator.
 
ConstIteratoroperator+= (difference_type n) noexcept
 Addition assignment operator.
 
ConstIteratoroperator-= (difference_type n) noexcept
 Subtraction assignment operator.
 
ConstIterator operator+ (difference_type n) const noexcept
 Addition operator.
 
ConstIterator operator- (difference_type n) const noexcept
 Subtraction operator.
 
difference_type operator- (const ConstIterator &other) const noexcept
 Difference operator.
 
reference operator[] (difference_type n) const
 
bool operator== (const ConstIterator &other) const noexcept
 Equality operator.
 
bool operator!= (const ConstIterator &other) const noexcept
 Inequality operator.
 

Friends

class Row
 

Member Function Documentation

◆ operator!=()

bool StormByte::Database::Row::ConstIterator::operator!= ( const ConstIterator other) const
inlinenoexcept

Inequality operator.

Parameters
otherAnother ConstIterator to compare with
Returns
True if both ConstIterators do not point to the same position in the same Row

◆ operator*()

reference StormByte::Database::Row::ConstIterator::operator* ( ) const
inline

Dereference operator.

Returns
Reference to the current Value

◆ operator+()

ConstIterator StormByte::Database::Row::ConstIterator::operator+ ( difference_type  n) const
inlinenoexcept

Addition operator.

Parameters
nNumber of positions to advance
Returns
New ConstIterator advanced by n positions

◆ operator++() [1/2]

ConstIterator & StormByte::Database::Row::ConstIterator::operator++ ( )
inline

Pre-increment operator.

Returns
Reference to the incremented ConstIterator

◆ operator++() [2/2]

ConstIterator StormByte::Database::Row::ConstIterator::operator++ ( int  )
inline

Post-increment operator.

Returns
ConstIterator before increment

◆ operator+=()

ConstIterator & StormByte::Database::Row::ConstIterator::operator+= ( difference_type  n)
inlinenoexcept

Addition assignment operator.

Parameters
nNumber of positions to advance
Returns
Reference to the advanced ConstIterator

◆ operator-() [1/2]

difference_type StormByte::Database::Row::ConstIterator::operator- ( const ConstIterator other) const
inlinenoexcept

Difference operator.

Parameters
otherAnother ConstIterator to compare with
Returns
Difference in positions between the two ConstIterators

◆ operator-() [2/2]

ConstIterator StormByte::Database::Row::ConstIterator::operator- ( difference_type  n) const
inlinenoexcept

Subtraction operator.

Parameters
nNumber of positions to retreat
Returns
New ConstIterator retreated by n positions

◆ operator--() [1/2]

ConstIterator & StormByte::Database::Row::ConstIterator::operator-- ( )
inlinenoexcept

Pre-decrement operator.

Returns
Reference to the decremented ConstIterator

◆ operator--() [2/2]

ConstIterator StormByte::Database::Row::ConstIterator::operator-- ( int  )
inlinenoexcept

Post-decrement operator.

Returns
ConstIterator before decrement

◆ operator-=()

ConstIterator & StormByte::Database::Row::ConstIterator::operator-= ( difference_type  n)
inlinenoexcept

Subtraction assignment operator.

Parameters
nNumber of positions to retreat
Returns
Reference to the retreated ConstIterator

◆ operator->()

pointer StormByte::Database::Row::ConstIterator::operator-> ( ) const
inline

Arrow operator.

Returns
Pointer to the current Value

◆ operator==()

bool StormByte::Database::Row::ConstIterator::operator== ( const ConstIterator other) const
inlinenoexcept

Equality operator.

Parameters
otherAnother ConstIterator to compare with
Returns
True if both ConstIterators point to the same position in the same Row

◆ operator[]()

reference StormByte::Database::Row::ConstIterator::operator[] ( difference_type  n) const
inline

Random access by offset from const iterator


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