#include <TStaticArray.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 |
bool | operator!= (const iterator &rhs) const throw ( logic_error ) |
iterator & | operator= (const iterator &rhs) |
reference | operator[] (size_type nPos) throw ( out_of_range ) |
const_reference | operator[] (size_type nPos) 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 |
Friends | |
class | const_iterator |
Definition at line 417 of file TStaticArray.h.
mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::iterator | ( | _MyType & | array, | |
size_type | pos = 0 | |||
) | [inline, explicit] |
array | const reference to static array | |
pos | index of start position |
Definition at line 431 of file TStaticArray.h.
mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::iterator | ( | const iterator & | oth | ) | [inline] |
mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator const_iterator | ( | ) | [inline] |
const_reference mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator * | ( | ) | const [inline] |
reference mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator * | ( | ) | [inline] |
const_pointer mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator-> | ( | ) | const [inline] |
Definition at line 466 of file TStaticArray.h.
References operator *().
pointer mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator-> | ( | ) | [inline] |
Definition at line 473 of file TStaticArray.h.
References operator *().
iterator& mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator++ | ( | ) | [inline] |
iterator mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator++ | ( | int | ) | [inline] |
move forward
Definition at line 490 of file TStaticArray.h.
iterator& mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator-- | ( | ) | [inline] |
iterator mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator-- | ( | int | ) | [inline] |
move backward
Definition at line 508 of file TStaticArray.h.
bool mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator== | ( | const iterator & | rhs | ) | const [inline] |
EQ: equality operator
rhs | right hand side argument (other iterator) |
logic_error | if rhs references different container |
Definition at line 519 of file TStaticArray.h.
bool mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 530 of file TStaticArray.h.
iterator& mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator= | ( | const iterator & | rhs | ) | [inline] |
assignment (copies array reference and position)
rhs | right hand side argument (iterator to copy) |
Definition at line 539 of file TStaticArray.h.
reference mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator[] | ( | size_type | nPos | ) | throw ( out_of_range ) [inline] |
nPos | index of element to access (read/write) |
const
reference to value at specified index out_of_range | if index is invalid |
Definition at line 549 of file TStaticArray.h.
const_reference mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::operator[] | ( | size_type | nPos | ) | const throw ( out_of_range ) [inline] |
nPos | of element to access (read only) |
const
reference to value at specified index out_of_range | if index is invalid |
Definition at line 558 of file TStaticArray.h.
difference_type mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 568 of file TStaticArray.h.
iterator& mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 579 of file TStaticArray.h.
00583 { 00584 #if _MSC_VER >= 1300 00585 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00586 #endif 00587 mbo_ta_throw_if_not(logic_error, m_pos >= diff); 00588 m_pos -= diff; 00589 #if _MSC_VER >= 1300 00590 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch
iterator& mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 597 of file TStaticArray.h.
00601 { 00602 #if _MSC_VER >= 1300 00603 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00604 #endif 00605 mbo_tsa_throw_if_not(logic_error, m_pos + diff >= m_pos && m_pos + diff >= diff && m_pos + diff <= m_array.size()); 00606 m_pos += diff; 00607 #if _MSC_VER >= 1300 00608 # pragma warning(default: 4018)
iterator mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 615 of file TStaticArray.h.
00619 { 00620 #if _MSC_VER >= 1300 00621 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00622 #endif 00623 mbo_tsa_throw_if_not(logic_error, m_pos >= diff); 00624 return iterator(m_array, m_pos - diff); 00625 #if _MSC_VER >= 1300
iterator mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 632 of file TStaticArray.h.
00636 { 00637 #if _MSC_VER >= 1300 00638 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00639 #endif 00640 mbo_tsa_throw_if_not(logic_error, m_pos + diff >= m_pos && m_pos + diff >= diff && m_pos + diff <= m_array.size()); 00641 return iterator(m_array, m_pos + diff); 00642 #if _MSC_VER >= 1300
bool mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 649 of file TStaticArray.h.
bool mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 660 of file TStaticArray.h.
bool mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 671 of file TStaticArray.h.
bool mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::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 682 of file TStaticArray.h.
friend class const_iterator [friend] |
Definition at line 426 of file TStaticArray.h.
_MyType& mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::m_array [protected] |
reference to array
Definition at line 689 of file TStaticArray.h.
size_type mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::iterator::m_pos [protected] |
current position
Definition at line 690 of file TStaticArray.h.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:15 2008 for MBO-lib by ![]() |