CONZEPT 16 C++ API
C16::Tables::IteratorConst Class Reference

const-Iterator for tables of a database. More...

#include "C16/Tables.hpp"

Detailed Description

const-Iterator for tables of a database.

Public Types

using difference_type = int
 Type of the difference of iterators. More...
 
using value_type = const Table
 Type of the elements of the iterator. More...
 
using reference = const Table &
 Type of a reference to an element of the iterator. More...
 
using pointer = const Table *
 Type of a pointer to an element of the iterator. More...
 

Public Member Functions

 IteratorConst ()
 Constructs an invalid iterator. More...
 
 IteratorConst (const IteratorConst &other)
 Constructs an iterator by copying another iterator. More...
 
IteratorConstoperator= (const IteratorConst &other)
 Assigns the iterator from another iterator. More...
 
reference operator* () const
 Gets the element of the iterator. More...
 
pointer operator-> () const
 Gets the element of the iterator. More...
 
IteratorConstoperator++ ()
 Increments the iterator. More...
 
IteratorConstoperator-- ()
 Decrements the iterator. More...
 
IteratorConstoperator+= (difference_type offset)
 Increments the iterator. More...
 
IteratorConstoperator-= (difference_type offset)
 Decrements the iterator. More...
 
IteratorConst operator++ (int)
 Gets an incremented iterator. More...
 
IteratorConst operator-- (int)
 Gets a decremented iterator. More...
 
IteratorConst operator+ (difference_type offset) const
 Gets an incremented iterator. More...
 
IteratorConst operator- (difference_type offset) const
 Gets a decremented iterator. More...
 
bool operator== (const IteratorConst &other) const
 Gets if the iterator is equal to another iterator. More...
 
bool operator!= (const IteratorConst &other) const
 Gets if the iterator is unequal to another iterator. More...
 
bool operator<= (const IteratorConst &other) const
 Gets if the iterator is lower than or equal to another iterator. More...
 
bool operator>= (const IteratorConst &other) const
 Gets if the iterator is greater than or equal to another iterator. More...
 
bool operator< (const IteratorConst &other) const
 Gets if the iterator is lower than another iterator. More...
 
bool operator> (const IteratorConst &other) const
 Gets if the iterator is greater than another iterator. More...
 
difference_type operator- (const IteratorConst &other) const
 Gets the difference to another iterator. More...
 

Member Typedef Documentation

◆ difference_type

Type of the difference of iterators.

◆ value_type

Type of the elements of the iterator.

◆ reference

Type of a reference to an element of the iterator.

◆ pointer

Type of a pointer to an element of the iterator.

Constructor & Destructor Documentation

◆ IteratorConst() [1/2]

C16::Tables::IteratorConst::IteratorConst ( )

Constructs an invalid iterator.

◆ IteratorConst() [2/2]

C16::Tables::IteratorConst::IteratorConst ( const IteratorConst other)

Constructs an iterator by copying another iterator.

Parameters
otherAnother iterator

Member Function Documentation

◆ operator=()

IteratorConst& C16::Tables::IteratorConst::operator= ( const IteratorConst other)

Assigns the iterator from another iterator.

Parameters
otherAnother iterator
Returns
This iterator

◆ operator*()

reference C16::Tables::IteratorConst::operator* ( ) const

Gets the element of the iterator.

◆ operator->()

pointer C16::Tables::IteratorConst::operator-> ( ) const

Gets the element of the iterator.

◆ operator++() [1/2]

IteratorConst& C16::Tables::IteratorConst::operator++ ( )

Increments the iterator.

Returns
This iterator

◆ operator--() [1/2]

IteratorConst& C16::Tables::IteratorConst::operator-- ( )

Decrements the iterator.

Returns
This iterator

◆ operator+=()

IteratorConst& C16::Tables::IteratorConst::operator+= ( difference_type  offset)

Increments the iterator.

Parameters
offsetOffset to increment the iterator by
Returns
This iterator

◆ operator-=()

IteratorConst& C16::Tables::IteratorConst::operator-= ( difference_type  offset)

Decrements the iterator.

Parameters
offsetOffset to decrement the iterator by
Returns
This iterator

◆ operator++() [2/2]

IteratorConst C16::Tables::IteratorConst::operator++ ( int  )

Gets an incremented iterator.

◆ operator--() [2/2]

IteratorConst C16::Tables::IteratorConst::operator-- ( int  )

Gets a decremented iterator.

◆ operator+()

IteratorConst C16::Tables::IteratorConst::operator+ ( difference_type  offset) const

Gets an incremented iterator.

Parameters
offsetOffset to increment the iterator by

◆ operator-() [1/2]

IteratorConst C16::Tables::IteratorConst::operator- ( difference_type  offset) const

Gets a decremented iterator.

Parameters
offsetOffset to decrement the iterator by

◆ operator==()

bool C16::Tables::IteratorConst::operator== ( const IteratorConst other) const

Gets if the iterator is equal to another iterator.

Parameters
otherAnother iterator

◆ operator!=()

bool C16::Tables::IteratorConst::operator!= ( const IteratorConst other) const

Gets if the iterator is unequal to another iterator.

Parameters
otherAnother iterator

◆ operator<=()

bool C16::Tables::IteratorConst::operator<= ( const IteratorConst other) const

Gets if the iterator is lower than or equal to another iterator.

Parameters
otherAnother iterator

◆ operator>=()

bool C16::Tables::IteratorConst::operator>= ( const IteratorConst other) const

Gets if the iterator is greater than or equal to another iterator.

Parameters
otherAnother iterator

◆ operator<()

bool C16::Tables::IteratorConst::operator< ( const IteratorConst other) const

Gets if the iterator is lower than another iterator.

Parameters
otherAnother iterator

◆ operator>()

bool C16::Tables::IteratorConst::operator> ( const IteratorConst other) const

Gets if the iterator is greater than another iterator.

Parameters
otherAnother iterator

◆ operator-() [2/2]

difference_type C16::Tables::IteratorConst::operator- ( const IteratorConst other) const

Gets the difference to another iterator.

Parameters
otherAnother iterator