AlgoPlus v0.1.0
Loading...
Searching...
No Matches
skip_list< T >::Iterator Class Reference

Iterator class. More...

#include <skip_list.h>

Public Member Functions

 Iterator (std::shared_ptr< node > ptr) noexcept
 Construct a new Iterator object.
 
Iteratoroperator= (std::shared_ptr< node > current)
 = operator for Iterator type*
 
Iteratoroperator++ ()
 operator ++
 
Iterator operator++ (int)
 operator ++ for type Iterator
 
bool operator!= (const Iterator &it)
 operator != for type Iterator
 
operator* ()
 operator * for type Iterator
 

Detailed Description

template<typename T>
class skip_list< T >::Iterator

Iterator class.

Constructor & Destructor Documentation

◆ Iterator()

template<typename T >
skip_list< T >::Iterator::Iterator ( std::shared_ptr< node > ptr)
inlineexplicitnoexcept

Construct a new Iterator object.

Parameters
ptrpointer to the node

Member Function Documentation

◆ operator!=()

template<typename T >
bool skip_list< T >::Iterator::operator!= ( const Iterator & it)
inline

operator != for type Iterator

Parameters
itpointer to the node
Returns
bool

◆ operator*()

template<typename T >
T skip_list< T >::Iterator::operator* ( )
inline

operator * for type Iterator

Returns
T

◆ operator++() [1/2]

template<typename T >
Iterator & skip_list< T >::Iterator::operator++ ( )
inline

operator ++

Returns
Iterator

◆ operator++() [2/2]

template<typename T >
Iterator skip_list< T >::Iterator::operator++ ( int )
inline

operator ++ for type Iterator

Returns
Iterator

◆ operator=()

template<typename T >
Iterator & skip_list< T >::Iterator::operator= ( std::shared_ptr< node > current)
inline

= operator for Iterator type*

Parameters
currentpointer to the node
Returns
Iterator&

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