hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
indexTable< A, B >::iterator Class Reference

#include <def.hpp>

Collaboration diagram for indexTable< A, B >::iterator:

Public Types

using value_type = std::pair< A, B >
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

 iterator (typename std::vector< std::pair< A, B > >::iterator underlying_it)
 
bool operator!= (const iterator &other) const
 
bool operator== (const iterator &other) const
 
reference operator* () const
 
pointer operator-> () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iterator operator+ (difference_type n) const
 
iterator operator- (difference_type n) const
 
difference_type operator- (const iterator &other) const
 
iteratoroperator+= (difference_type n)
 
iteratoroperator-= (difference_type n)
 
bool operator< (const iterator &other) const
 
bool operator<= (const iterator &other) const
 
bool operator> (const iterator &other) const
 
bool operator>= (const iterator &other) const
 

Private Attributes

std::vector< std::pair< A, B > >::iterator it
 

Friends

iterator operator+ (difference_type n, const iterator &iter)
 

Detailed Description

template<typename A, typename B>
class yoi::indexTable< A, B >::iterator

Definition at line 226 of file def.hpp.

Member Typedef Documentation

◆ difference_type

template<typename A , typename B >
using difference_type = std::ptrdiff_t

Definition at line 231 of file def.hpp.

◆ iterator_category

template<typename A , typename B >
using iterator_category = std::random_access_iterator_tag

Definition at line 234 of file def.hpp.

◆ pointer

template<typename A , typename B >
using pointer = value_type*

Definition at line 232 of file def.hpp.

◆ reference

template<typename A , typename B >
using reference = value_type&

Definition at line 233 of file def.hpp.

◆ value_type

template<typename A , typename B >
using value_type = std::pair<A, B>

Definition at line 230 of file def.hpp.

Constructor & Destructor Documentation

◆ iterator()

template<typename A , typename B >
iterator ( typename std::vector< std::pair< A, B > >::iterator  underlying_it)
inline

Definition at line 236 of file def.hpp.

Member Function Documentation

◆ operator!=()

template<typename A , typename B >
bool operator!= ( const iterator other) const
inline

Definition at line 238 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator*()

template<typename A , typename B >
reference operator* ( ) const
inline

Definition at line 241 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator+()

template<typename A , typename B >
iterator operator+ ( difference_type  n) const
inline

Definition at line 263 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator++() [1/2]

template<typename A , typename B >
iterator & operator++ ( )
inline

Definition at line 244 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator++() [2/2]

template<typename A , typename B >
iterator operator++ ( int  )
inline

Definition at line 248 of file def.hpp.

◆ operator+=()

template<typename A , typename B >
iterator & operator+= ( difference_type  n)
inline

Definition at line 272 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator-() [1/2]

template<typename A , typename B >
difference_type operator- ( const iterator other) const
inline

Definition at line 269 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator-() [2/2]

template<typename A , typename B >
iterator operator- ( difference_type  n) const
inline

Definition at line 266 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator--() [1/2]

template<typename A , typename B >
iterator & operator-- ( )
inline

Definition at line 253 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator--() [2/2]

template<typename A , typename B >
iterator operator-- ( int  )
inline

Definition at line 257 of file def.hpp.

◆ operator-=()

template<typename A , typename B >
iterator & operator-= ( difference_type  n)
inline

Definition at line 276 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator->()

template<typename A , typename B >
pointer operator-> ( ) const
inline

Definition at line 242 of file def.hpp.

◆ operator<()

template<typename A , typename B >
bool operator< ( const iterator other) const
inline

Definition at line 281 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator<=()

template<typename A , typename B >
bool operator<= ( const iterator other) const
inline

Definition at line 282 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator==()

template<typename A , typename B >
bool operator== ( const iterator other) const
inline

Definition at line 239 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator>()

template<typename A , typename B >
bool operator> ( const iterator other) const
inline

Definition at line 283 of file def.hpp.

References indexTable< A, B >::iterator::it.

◆ operator>=()

template<typename A , typename B >
bool operator>= ( const iterator other) const
inline

Definition at line 284 of file def.hpp.

References indexTable< A, B >::iterator::it.

Friends And Related Symbol Documentation

◆ operator+

template<typename A , typename B >
iterator operator+ ( difference_type  n,
const iterator iter 
)
friend

Definition at line 286 of file def.hpp.

Member Data Documentation

◆ it


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