iterator More...
#include <CSAutoSkipList.h>
Public Types | |
typedef std::iterator < std::random_access_iterator_tag, value_type > | baseclass |
typedef std::random_acces_iterator_tag | iterator_category |
typedef baseclass::value_type | value_type |
typedef baseclass::value_type * | pointer |
typedef baseclass::value_type & | reference |
typedef ptrdiff_t | difference_type |
Public Member Functions | |
T0 () | |
Default constructor. O(1) (Trivial Iterator) | |
T0 (const T0 &t0) | |
Copy constructor. O(1) (Output Iterator) | |
T0 (const T1 &t1) | |
Copy constructor. O(1) (Output Iterator) | |
T0 (container_type *container, node_type *p) | |
Custom constructor. O(logn) | |
T0 (container_type *container, node_type *p, size_type index) | |
Custom constructor. O(1) | |
bool | operator== (const T0 &other) const |
Equality Operator. O(1) (Trivial Iterator) | |
bool | operator!= (const T0 &other) const |
Not Equal Operator. O(1) (Trivial Iterator) | |
bool | operator== (const T1 &other) const |
Equality Operator. O(1) (Trivial Iterator) | |
bool | operator!= (const T1 &other) const |
Not Equal Operator. O(1) (Trivial Iterator) | |
T0 & | operator++ () |
Pre Increment Operator. O(1) (Forward Iterator) | |
T0 | operator++ (int) |
Post Increment Operator. O(1) (Forward Iterator) | |
T0 & | operator-- () |
Pre Decrement Operator. O(1) (Bidirectional Iterator) | |
T0 | operator-- (int) |
Post Decrement Operator. O(1) (Bidirectional Iterator) | |
reference | operator* () const |
Dereference Operator. O(1) (Trivial Iterator) | |
pointer | operator-> () const |
Pointer Operator. O(1) (Trivial Iterator) | |
bool | operator< (const T0 &other) const |
LessThan Operator. O(1) (Random Access Iterator LOGN) | |
bool | operator<= (const T0 &other) const |
LessThanOrEqual Operator. O(1) (Random Access Iterator LOGN) | |
bool | operator> (const T0 &other) const |
GreaterThan Operator. O(1) (Random Access Iterator LOGN) | |
bool | operator>= (const T0 &other) const |
GreaterThanOrEqual Operator. O(1) (Random Access Iterator LOGN) | |
bool | operator< (const T1 &other) const |
LessThan Operator. O(1) (Random Access Iterator LOGN) | |
bool | operator<= (const T1 &other) const |
LessThanOrEqual Operator. O(1) (Random Access Iterator LOGN) | |
bool | operator> (const T1 &other) const |
GreaterThan Operator. O(1) (Random Access Iterator LOGN) | |
bool | operator>= (const T1 &other) const |
GreaterThanOrEqual Operator. O(1) (Random Access Iterator LOGN) | |
T0 | operator+ (difference_type off) const |
Add Operator. O(logn) (Random Access Iterator LOGN) | |
T0 | operator- (difference_type off) const |
Subtract Operator. O(logn) (Random Access Iterator LOGN) | |
T0 & | operator+= (difference_type off) |
AddEqual Operator. O(logn) (Random Access Iterator LOGN) | |
T0 & | operator-= (difference_type off) |
SubtractEqual Operator. O(logn) (Random Access Iterator LOGN) | |
difference_type | operator- (const T0 &other) const |
Subtract iterator Operator. O(1) (Random Access Iterator LOGN) | |
difference_type | operator- (const T1 &other) const |
Subtract iterator Operator. O(1) (Random Access Iterator LOGN) | |
int | refresh () |
Recalculates iterator index. O(logn) | |
value_type & | operator[] (difference_type off) const |
Array Operator. O(logn) (Random Access Iterator LOGN) | |
size_type | getIndex () const |
Get current index. O(1) | |
Public Attributes | |
friend | T1 |
friend | container_type |
Private Attributes | |
container_type * | container |
SkipList container. | |
size_type | Findex |
Index of this iterator. | |
node_type * | node |
Node pointed to by this iterator. |
iterator
iterator for MultiAutoSkipList
MultiAutoSkipList< T, Pr, R >::T0::T0 | ( | const T0 & | t0 | ) | [inline] |
Copy constructor. O(1) (Output Iterator)
t0 | iterator to copy. |
MultiAutoSkipList< T, Pr, R >::T0::T0 | ( | const T1 & | t1 | ) | [inline] |
Copy constructor. O(1) (Output Iterator)
t1 | const_iterator to copy. |
MultiAutoSkipList< T, Pr, R >::T0::T0 | ( | container_type * | container, |
node_type * | p | ||
) | [inline] |
Custom constructor. O(logn)
Perfarmance: Index is automatically generated in O(logn).
container | SkipList that contains the current node. |
p | Node pointed to by this iterator. |
MultiAutoSkipList< T, Pr, R >::T0::T0 | ( | container_type * | container, |
node_type * | p, | ||
size_type | index | ||
) | [inline] |
Custom constructor. O(1)
container | SkipList that contains the current node. |
p | Node pointed to by this iterator. |
index | Indexd of the current node. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator== | ( | const T0 & | other | ) | const [inline] |
Equality Operator. O(1) (Trivial Iterator)
other | iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator!= | ( | const T0 & | other | ) | const [inline] |
Not Equal Operator. O(1) (Trivial Iterator)
other | iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator== | ( | const T1 & | other | ) | const [inline] |
Equality Operator. O(1) (Trivial Iterator)
other | const_iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator!= | ( | const T1 & | other | ) | const [inline] |
Not Equal Operator. O(1) (Trivial Iterator)
other | const_iterator to compare against. |
T0& MultiAutoSkipList< T, Pr, R >::T0::operator++ | ( | ) | [inline] |
Pre Increment Operator. O(1) (Forward Iterator)
iterator points to next node in the list.
T0 MultiAutoSkipList< T, Pr, R >::T0::operator++ | ( | int | ) | [inline] |
Post Increment Operator. O(1) (Forward Iterator)
iterator points to next node in the list.
T0& MultiAutoSkipList< T, Pr, R >::T0::operator-- | ( | ) | [inline] |
Pre Decrement Operator. O(1) (Bidirectional Iterator)
iterator points to previous node in the list.
T0 MultiAutoSkipList< T, Pr, R >::T0::operator-- | ( | int | ) | [inline] |
Post Decrement Operator. O(1) (Bidirectional Iterator)
iterator points to previous node in the list.
reference MultiAutoSkipList< T, Pr, R >::T0::operator* | ( | ) | const [inline] |
Dereference Operator. O(1) (Trivial Iterator)
Gain access to value that the iterator points to.
pointer MultiAutoSkipList< T, Pr, R >::T0::operator-> | ( | ) | const [inline] |
Pointer Operator. O(1) (Trivial Iterator)
Gain access to members of of the value pointed to by this iterator.
bool MultiAutoSkipList< T, Pr, R >::T0::operator< | ( | const T0 & | other | ) | const [inline] |
LessThan Operator. O(1) (Random Access Iterator LOGN)
other | iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator<= | ( | const T0 & | other | ) | const [inline] |
LessThanOrEqual Operator. O(1) (Random Access Iterator LOGN)
other | iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator> | ( | const T0 & | other | ) | const [inline] |
GreaterThan Operator. O(1) (Random Access Iterator LOGN)
other | iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator>= | ( | const T0 & | other | ) | const [inline] |
GreaterThanOrEqual Operator. O(1) (Random Access Iterator LOGN)
other | iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator< | ( | const T1 & | other | ) | const [inline] |
LessThan Operator. O(1) (Random Access Iterator LOGN)
other | const_iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator<= | ( | const T1 & | other | ) | const [inline] |
LessThanOrEqual Operator. O(1) (Random Access Iterator LOGN)
other | const_iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator> | ( | const T1 & | other | ) | const [inline] |
GreaterThan Operator. O(1) (Random Access Iterator LOGN)
other | const_iterator to compare against. |
bool MultiAutoSkipList< T, Pr, R >::T0::operator>= | ( | const T1 & | other | ) | const [inline] |
GreaterThanOrEqual Operator. O(1) (Random Access Iterator LOGN)
other | const_iterator to compare against. |
T0 MultiAutoSkipList< T, Pr, R >::T0::operator+ | ( | difference_type | off | ) | const [inline] |
Add Operator. O(logn) (Random Access Iterator LOGN)
off | offset from current index. |
T0 MultiAutoSkipList< T, Pr, R >::T0::operator- | ( | difference_type | off | ) | const [inline] |
Subtract Operator. O(logn) (Random Access Iterator LOGN)
off | negative offset from current index. |
T0& MultiAutoSkipList< T, Pr, R >::T0::operator+= | ( | difference_type | off | ) | [inline] |
AddEqual Operator. O(logn) (Random Access Iterator LOGN)
off | offset from current index. |
T0& MultiAutoSkipList< T, Pr, R >::T0::operator-= | ( | difference_type | off | ) | [inline] |
SubtractEqual Operator. O(logn) (Random Access Iterator LOGN)
off | negative offset from current index. |
difference_type MultiAutoSkipList< T, Pr, R >::T0::operator- | ( | const T0 & | other | ) | const [inline] |
Subtract iterator Operator. O(1) (Random Access Iterator LOGN)
other | iterator position to subtract. |
difference_type MultiAutoSkipList< T, Pr, R >::T0::operator- | ( | const T1 & | other | ) | const [inline] |
Subtract iterator Operator. O(1) (Random Access Iterator LOGN)
other | const_iterator position to subtract. |
int MultiAutoSkipList< T, Pr, R >::T0::refresh | ( | ) | [inline] |
value_type& MultiAutoSkipList< T, Pr, R >::T0::operator[] | ( | difference_type | off | ) | const [inline] |
Array Operator. O(logn) (Random Access Iterator LOGN)
off | offset from current index. |
size_type MultiAutoSkipList< T, Pr, R >::T0::getIndex | ( | ) | const [inline] |
Get current index. O(1)