#include <TDynamicArray.h>
Public Member Functions | |
iterator (_MyType &array, size_type pos=0) | |
iterator (const iterator &oth) | |
operator const_iterator () | |
| |
const_reference | operator * () const |
reference | operator * () |
const_pointer | operator-> () const |
pointer | operator-> () |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator-- () |
iterator | operator-- (int) |
bool | operator== (const iterator &rhs) const throw ( logic_error ) |
bool | operator!= (const iterator &rhs) const throw ( logic_error ) |
iterator & | operator= (const iterator &rhs) |
reference | operator[] (size_type pos) throw ( out_of_range ) |
const_reference | operator[] (size_type pos) const throw ( out_of_range ) |
difference_type | operator- (const iterator &rhs) const throw ( logic_error ) |
iterator & | operator-= (difference_type diff) throw ( logic_error ) |
iterator & | operator+= (difference_type diff) throw ( logic_error ) |
iterator | operator- (difference_type diff) const throw ( logic_error ) |
iterator | operator+ (difference_type diff) const throw ( logic_error ) |
bool | operator< (const iterator &rhs) const throw ( logic_error ) |
bool | operator> (const iterator &rhs) const throw ( logic_error ) |
bool | operator<= (const iterator &rhs) const throw ( logic_error ) |
bool | operator>= (const iterator &rhs) const throw ( logic_error ) |
Protected Attributes | |
_MyType & | m_array |
size_type | m_pos |
Definition at line 407 of file TDynamicArray.h.
mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::iterator | ( | _MyType & | array, | |
size_type | pos = 0 | |||
) | [inline, explicit] |
array | const reference to array | |
pos | index of start position |
Definition at line 420 of file TDynamicArray.h.
mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::iterator | ( | const iterator & | oth | ) | [inline, explicit] |
mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator const_iterator | ( | ) | [inline] |
const_reference mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator * | ( | ) | const [inline] |
reference mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator * | ( | ) | [inline] |
const_pointer mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator-> | ( | ) | const [inline] |
Definition at line 455 of file TDynamicArray.h.
References operator *().
pointer mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator-> | ( | ) | [inline] |
Definition at line 462 of file TDynamicArray.h.
References operator *().
iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator++ | ( | ) | [inline] |
iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator++ | ( | int | ) | [inline] |
move forward
Definition at line 480 of file TDynamicArray.h.
iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator-- | ( | ) | [inline] |
iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator-- | ( | int | ) | [inline] |
move frontward
Definition at line 499 of file TDynamicArray.h.
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator== | ( | const iterator & | rhs | ) | const throw ( logic_error ) [inline] |
EQ: equality operator
rhs | right hand side argument (other iterator) |
logic_error | if rhs references different container |
Definition at line 510 of file TDynamicArray.h.
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator!= | ( | const iterator & | rhs | ) | const throw ( logic_error ) [inline] |
NE: non-equality operator
rhs | right hand side argument (other iterator) |
logic_error | if rhs references different container |
Definition at line 521 of file TDynamicArray.h.
iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator= | ( | const iterator & | rhs | ) | [inline] |
assignment (copies array reference and position)
rhs | right hand side argument (iterator to copy) |
Definition at line 530 of file TDynamicArray.h.
reference mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator[] | ( | size_type | pos | ) | throw ( out_of_range ) [inline] |
pos | index of element to access (read/write) |
const
reference to value at specified index out_of_range | if index is invalid |
Definition at line 540 of file TDynamicArray.h.
const_reference mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator[] | ( | size_type | pos | ) | const throw ( out_of_range ) [inline] |
pos | index of element to access (read only) |
const
reference to value at specified index out_of_range | if index is invalid |
Definition at line 549 of file TDynamicArray.h.
difference_type mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator- | ( | const iterator & | rhs | ) | const throw ( logic_error ) [inline] |
Compute distance of to iterators
rhs | other iterator |
logic_error | if rhs references different container |
Definition at line 559 of file TDynamicArray.h.
iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator-= | ( | difference_type | diff | ) | throw ( logic_error ) [inline] |
Decrease position
diff | number of elements to go front |
logic_error | if new position is in back of array |
Definition at line 570 of file TDynamicArray.h.
00574 { 00575 #if defined(_MSC_VER) && _MSC_VER >= 1300 00576 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00577 #endif 00578 mbo_tda_throw_if_not(logic_error, m_pos >= diff); 00579 m_pos -= diff; 00580 #if defined(_MSC_VER) && _MSC_VER >= 1300 00581 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch
iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator+= | ( | difference_type | diff | ) | throw ( logic_error ) [inline] |
Increase position
diff | number of elements to go forth |
logic_error | if new position is invalid |
Definition at line 588 of file TDynamicArray.h.
00592 { 00593 #if defined(_MSC_VER) && _MSC_VER >= 1300 00594 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00595 #endif 00596 mbo_tda_throw_if_not(logic_error, m_pos + diff >= m_pos && m_pos + diff >= diff && m_pos + diff <= m_array.size()); 00597 m_pos += diff; 00598 #if defined(_MSC_VER) && _MSC_VER >= 1300 00599 # pragma warning(default: 4018)
iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator- | ( | difference_type | diff | ) | const throw ( logic_error ) [inline] |
Create iterator in back of current
diff | number of elements to go front |
logic_error | if new position is in back of array |
Definition at line 606 of file TDynamicArray.h.
00610 { 00611 #if defined(_MSC_VER) && _MSC_VER >= 1300 00612 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00613 #endif 00614 mbo_tda_throw_if_not(logic_error, m_pos >= diff); 00615 return iterator(m_array, m_pos - diff); 00616 #if defined(_MSC_VER) && _MSC_VER >= 1300
iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator+ | ( | difference_type | diff | ) | const throw ( logic_error ) [inline] |
Create iterator behind current
diff | number of elements to go forth |
logic_error | if new position is invalid |
Definition at line 623 of file TDynamicArray.h.
00627 { 00628 #if defined(_MSC_VER) && _MSC_VER >= 1300 00629 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00630 #endif 00631 mbo_tda_throw_if_not(logic_error, m_pos + diff >= m_pos && m_pos + diff >= diff && m_pos + diff <= m_array.size()); 00632 return iterator(m_array, m_pos + diff); 00633 #if defined(_MSC_VER) && _MSC_VER >= 1300
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator< | ( | const iterator & | rhs | ) | const throw ( logic_error ) [inline] |
LT: less than operator
rhs | right hand side argument (other iterator) |
logic_error | if rhs references different container |
Definition at line 640 of file TDynamicArray.h.
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator> | ( | const iterator & | rhs | ) | const throw ( logic_error ) [inline] |
GT: greater than operator
rhs | right hand side argument (other iterator) |
logic_error | if rhs references different container |
Definition at line 651 of file TDynamicArray.h.
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator<= | ( | const iterator & | rhs | ) | const throw ( logic_error ) [inline] |
LE: less than or equal operator
rhs | right hand side argument (other iterator) |
logic_error | if rhs references different container |
Definition at line 662 of file TDynamicArray.h.
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::operator>= | ( | const iterator & | rhs | ) | const throw ( logic_error ) [inline] |
GT: greate than or equal operator
rhs | right hand side argument (other iterator) |
logic_error | if rhs references different container |
Definition at line 673 of file TDynamicArray.h.
_MyType& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::m_array [protected] |
reference to array
Definition at line 680 of file TDynamicArray.h.
size_type mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::iterator::m_pos [protected] |
current position
Definition at line 681 of file TDynamicArray.h.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:14 2008 for MBO-lib by ![]() |