#include <TDynamicArray.h>
Public Member Functions | |
const_iterator (const _MyType &array, size_type pos=0) | |
const_iterator (const const_iterator &oth) | |
const_iterator (const iterator &oth) | |
const_reference | operator * () const |
const_pointer | operator-> () const |
const_iterator & | operator++ () |
const_iterator | operator++ (int) |
const_iterator & | operator-- () |
const_iterator | operator-- (int) |
bool | operator== (const const_iterator &rhs) const throw ( logic_error ) |
bool | operator!= (const const_iterator &rhs) const throw ( logic_error ) |
const_iterator & | operator= (const const_iterator &rhs) |
const_reference | operator[] (size_type pos) const throw ( out_of_range ) |
difference_type | operator- (const const_iterator &rhs) const throw ( logic_error ) |
const_iterator & | operator-= (difference_type diff) throw ( logic_error ) |
const_iterator & | operator+= (difference_type diff) throw ( logic_error ) |
const_iterator | operator- (difference_type diff) const throw ( logic_error ) |
const_iterator | operator+ (difference_type diff) const throw ( logic_error ) |
bool | operator< (const const_iterator &rhs) const throw ( logic_error ) |
bool | operator> (const const_iterator &rhs) const throw ( logic_error ) |
bool | operator<= (const const_iterator &rhs) const throw ( logic_error ) |
bool | operator>= (const const_iterator &rhs) const throw ( logic_error ) |
Protected Attributes | |
const _MyType & | m_array |
size_type | m_pos |
Definition at line 151 of file TDynamicArray.h.
mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::const_iterator | ( | const _MyType & | array, | |
size_type | pos = 0 | |||
) | [inline, explicit] |
array | const reference to array | |
pos | index of start position |
Definition at line 164 of file TDynamicArray.h.
mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::const_iterator | ( | const const_iterator & | oth | ) | [inline] |
mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::const_iterator | ( | const iterator & | oth | ) | [inline] |
const_reference mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator * | ( | ) | const [inline] |
const_pointer mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator-> | ( | ) | const [inline] |
const_iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator++ | ( | ) | [inline] |
move forward
Definition at line 200 of file TDynamicArray.h.
00203 { 00204 ++m_pos;
const_iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator++ | ( | int | ) | [inline] |
move forward
Definition at line 210 of file TDynamicArray.h.
const_iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator-- | ( | ) | [inline] |
move frontward
Definition at line 219 of file TDynamicArray.h.
00222 { 00223 --m_pos;
const_iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator-- | ( | int | ) | [inline] |
move frontward
Definition at line 229 of file TDynamicArray.h.
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator== | ( | const const_iterator & | rhs | ) | const throw ( logic_error ) [inline] |
EQ: equality operator
rhs | right hand side argument (other iterator) |
logic_error | if oth references different container |
Definition at line 240 of file TDynamicArray.h.
00243 { 00244 mbo_tda_throw_if_not(logic_error, &m_array == &rhs.m_array);
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator!= | ( | const 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 251 of file TDynamicArray.h.
const_iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator= | ( | const const_iterator & | rhs | ) | [inline] |
assignment (copies array reference and position)
rhs | right hand side argument (iterator to copy) |
Definition at line 260 of file TDynamicArray.h.
00263 { 00264 new (this) const_iterator(rhs.m_array, rhs.m_pos);
const_reference mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator[] | ( | size_type | pos | ) | const throw ( out_of_range ) [inline] |
pos | position of element to access (read only) |
const
reference to value at specified index out_of_range | if index is invalid |
Definition at line 270 of file TDynamicArray.h.
difference_type mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator- | ( | const 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 280 of file TDynamicArray.h.
00283 { 00284 mbo_tda_throw_if_not(logic_error, &m_array == &rhs.m_array);
const_iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_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 291 of file TDynamicArray.h.
00294 { 00295 #if defined(_MSC_VER) && _MSC_VER >= 1300 00296 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00297 #endif 00298 mbo_tda_throw_if_not(logic_error, m_pos >= diff); 00299 m_pos -= diff; 00300 #if defined(_MSC_VER) && _MSC_VER >= 1300 00301 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00302 #endif
const_iterator& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_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 309 of file TDynamicArray.h.
00312 { 00313 #if defined(_MSC_VER) && _MSC_VER >= 1300 00314 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00315 #endif 00316 mbo_tda_throw_if_not(logic_error, m_pos + diff >= m_pos && m_pos + diff >= diff && m_pos + diff <= m_array.size()); 00317 m_pos += diff; 00318 #if defined(_MSC_VER) && _MSC_VER >= 1300 00319 # pragma warning(default: 4018) 00320 #endif
const_iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_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 327 of file TDynamicArray.h.
00330 { 00331 #if defined(_MSC_VER) && _MSC_VER >= 1300 00332 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00333 #endif 00334 mbo_tda_throw_if_not(logic_error, m_pos >= diff); 00335 return const_iterator(m_array, m_pos - diff); 00336 #if defined(_MSC_VER) && _MSC_VER >= 1300 00337 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch
const_iterator mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_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 344 of file TDynamicArray.h.
00347 { 00348 #if defined(_MSC_VER) && _MSC_VER >= 1300 00349 # pragma warning(disable: 4018) // '>=' : signed/unsigned mismatch 00350 #endif 00351 mbo_tda_throw_if_not(logic_error, m_pos + diff >= m_pos && m_pos + diff >= diff && m_pos + diff <= m_array.size()); 00352 return const_iterator(m_array, m_pos + diff); 00353 #if defined(_MSC_VER) && _MSC_VER >= 1300 00354 # pragma warning(default: 4018)
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator< | ( | const 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 361 of file TDynamicArray.h.
00364 { 00365 mbo_tda_throw_if_not(logic_error, &m_array == &rhs.m_array);
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator> | ( | const 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 372 of file TDynamicArray.h.
00375 { 00376 mbo_tda_throw_if_not(logic_error, &m_array == &rhs.m_array);
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator<= | ( | const 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 383 of file TDynamicArray.h.
00386 { 00387 mbo_tda_throw_if_not(logic_error, &m_array == &rhs.m_array);
bool mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::operator>= | ( | const 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 394 of file TDynamicArray.h.
00397 { 00398 mbo_tda_throw_if_not(logic_error, &m_array == &rhsrhs.m_array);
const _MyType& mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::m_array [protected] |
reference to array
Definition at line 401 of file TDynamicArray.h.
size_type mbo::TDynamicArray< __ValueType, __Allocator, __MinSize, __Append >::const_iterator::m_pos [protected] |
current position
Definition at line 402 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 ![]() |