STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_Array_iterator< _Ty, _Size > Class Template Reference
Inheritance diagram for _Array_iterator< _Ty, _Size >:
_Array_const_iterator< _Ty, _Size > _Iterator012< random_access_iterator_tag, _Ty, ptrdiff_t, const _Ty *, const _Ty &, _Iterator_base > _Iterator_base0

Public Types

enum  { _EEN_SIZE = _Size }
 
enum  { _EEN_IDL }
 
typedef _Array_iterator< _Ty, _Size_Myiter
 
typedef _Array_const_iterator< _Ty, _Size_Mybase
 
typedef random_access_iterator_tag iterator_category
 
typedef _Ty value_type
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef _Ty * pointer
 
typedef _Ty & reference
 
typedef pointer _Unchecked_type
 
- Public Types inherited from _Array_const_iterator< _Ty, _Size >
enum  { _EEN_SIZE = _Size }
 
enum  { _EEN_IDL }
 
typedef _Array_const_iterator< _Ty, _Size_Myiter
 
typedef random_access_iterator_tag iterator_category
 
typedef _Ty value_type
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef const _Ty * pointer
 
typedef const _Ty & reference
 
typedef pointer _Unchecked_type
 
- Public Types inherited from _Iterator012< random_access_iterator_tag, _Ty, ptrdiff_t, const _Ty *, const _Ty &, _Iterator_base >
typedef random_access_iterator_tag iterator_category
 
typedef _Ty value_type
 
typedef ptrdiff_t difference_type
 
typedef ptrdiff_t distance_type
 
typedef const _Ty * pointer
 
typedef const _Ty & reference
 

Public Member Functions

 _Array_iterator ()
 
 _Array_iterator (pointer _Parg, size_t _Off=0)
 
_Myiter_Rechecked (_Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
pointer operator-> () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
_Myiteroperator-- ()
 
_Myiter operator-- (int)
 
_Myiteroperator+= (difference_type _Off)
 
_Myiter operator+ (difference_type _Off) const
 
_Myiteroperator-= (difference_type _Off)
 
_Myiter operator- (difference_type _Off) const
 
difference_type operator- (const _Mybase &_Right) const
 
reference operator[] (difference_type _Off) const
 
- Public Member Functions inherited from _Array_const_iterator< _Ty, _Size >
 _Array_const_iterator ()
 
 _Array_const_iterator (pointer _Parg, size_t _Off=0)
 
_Myiter_Rechecked (_Unchecked_type _Right)
 
_Unchecked_type _Unchecked () const
 
reference operator* () const
 
pointer operator-> () const
 
_Myiteroperator++ ()
 
_Myiter operator++ (int)
 
_Myiteroperator-- ()
 
_Myiter operator-- (int)
 
_Myiteroperator+= (difference_type _Off)
 
_Myiter operator+ (difference_type _Off) const
 
_Myiteroperator-= (difference_type _Off)
 
_Myiter operator- (difference_type _Off) const
 
difference_type operator- (const _Myiter &_Right) const
 
reference operator[] (difference_type _Off) const
 
bool operator== (const _Myiter &_Right) const
 
bool operator!= (const _Myiter &_Right) const
 
bool operator< (const _Myiter &_Right) const
 
bool operator> (const _Myiter &_Right) const
 
bool operator<= (const _Myiter &_Right) const
 
bool operator>= (const _Myiter &_Right) const
 
- Public Member Functions inherited from _Iterator_base0
void _Adopt (const void *)
 
const _Container_base0_Getcont () const
 

Additional Inherited Members

- Public Attributes inherited from _Array_const_iterator< _Ty, _Size >
pointer _Ptr
 

Member Typedef Documentation

template<class _Ty, size_t _Size>
typedef _Array_const_iterator<_Ty, _Size> _Array_iterator< _Ty, _Size >::_Mybase
template<class _Ty, size_t _Size>
typedef _Array_iterator<_Ty, _Size> _Array_iterator< _Ty, _Size >::_Myiter
template<class _Ty, size_t _Size>
typedef pointer _Array_iterator< _Ty, _Size >::_Unchecked_type
template<class _Ty, size_t _Size>
typedef ptrdiff_t _Array_iterator< _Ty, _Size >::difference_type
template<class _Ty, size_t _Size>
typedef random_access_iterator_tag _Array_iterator< _Ty, _Size >::iterator_category
template<class _Ty, size_t _Size>
typedef _Ty* _Array_iterator< _Ty, _Size >::pointer
template<class _Ty, size_t _Size>
typedef _Ty& _Array_iterator< _Ty, _Size >::reference
template<class _Ty, size_t _Size>
typedef size_t _Array_iterator< _Ty, _Size >::size_type
template<class _Ty, size_t _Size>
typedef _Ty _Array_iterator< _Ty, _Size >::value_type

Member Enumeration Documentation

template<class _Ty, size_t _Size>
anonymous enum
Enumerator
_EEN_SIZE 
1708 {_EEN_SIZE = _Size}; // helper for expression evaluator
Definition: xutility:1708
_Check_return_ _In_ long _Size
Definition: io.h:325
template<class _Ty, size_t _Size>
anonymous enum
Enumerator
_EEN_IDL 
1709  {_EEN_IDL =
1710  _ITERATOR_DEBUG_LEVEL}; // helper for expression evaluator
Definition: xutility:1709
#define _ITERATOR_DEBUG_LEVEL
Definition: yvals.h:194

Constructor & Destructor Documentation

template<class _Ty, size_t _Size>
_Array_iterator< _Ty, _Size >::_Array_iterator ( )
inline
1701  { // construct with null pointer
1702  }
template<class _Ty, size_t _Size>
_Array_iterator< _Ty, _Size >::_Array_iterator ( pointer  _Parg,
size_t  _Off = 0 
)
inlineexplicit
1705  : _Mybase(_Parg, _Off)
1706  { // construct with pointer and offset
1707  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691

Member Function Documentation

template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::_Rechecked ( _Unchecked_type  _Right)
inline
1715  { // reset from unchecked iterator
1716  ((_Mybase *)this)->_Rechecked(_Right);
1717  return (*this);
1718  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691
const _Ty & _Right
Definition: algorithm:4087
template<class _Ty, size_t _Size>
_Unchecked_type _Array_iterator< _Ty, _Size >::_Unchecked ( ) const
inline
1721  { // make an unchecked iterator
1722  return ((pointer)((_Mybase *)this)->_Unchecked());
1723  }
_Unchecked_type _Unchecked() const
Definition: xutility:1720
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691
_Ty * pointer
Definition: xutility:1697
template<class _Ty, size_t _Size>
reference _Array_iterator< _Ty, _Size >::operator* ( ) const
inline
1726  { // return designated object
1727  return ((reference)**(_Mybase *)this);
1728  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691
_Ty & reference
Definition: xutility:1698
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator+ ( difference_type  _Off) const
inline
1768  { // return this + integer
1769  _Myiter _Tmp = *this;
1770  return (_Tmp += _Off);
1771  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1690
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator++ ( )
inline
1736  { // preincrement
1737  ++*(_Mybase *)this;
1738  return (*this);
1739  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator++ ( int  )
inline
1742  { // postincrement
1743  _Myiter _Tmp = *this;
1744  ++*this;
1745  return (_Tmp);
1746  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1690
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator+= ( difference_type  _Off)
inline
1762  { // increment by integer
1763  *(_Mybase *)this += _Off;
1764  return (*this);
1765  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator- ( difference_type  _Off) const
inline
1779  { // return this - integer
1780  _Myiter _Tmp = *this;
1781  return (_Tmp -= _Off);
1782  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1690
template<class _Ty, size_t _Size>
difference_type _Array_iterator< _Ty, _Size >::operator- ( const _Mybase _Right) const
inline
1785  { // return difference of iterators
1786  return (*(_Mybase *)this - _Right);
1787  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691
const _Ty & _Right
Definition: algorithm:4087
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator-- ( )
inline
1749  { // predecrement
1750  --*(_Mybase *)this;
1751  return (*this);
1752  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1691
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator-- ( int  )
inline
1755  { // postdecrement
1756  _Myiter _Tmp = *this;
1757  --*this;
1758  return (_Tmp);
1759  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1690
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator-= ( difference_type  _Off)
inline
1774  { // decrement by integer
1775  return (*this += -_Off);
1776  }
template<class _Ty, size_t _Size>
pointer _Array_iterator< _Ty, _Size >::operator-> ( ) const
inline
1731  { // return pointer to class object
1732  return (_STD pointer_traits<pointer>::pointer_to(**this));
1733  }
Definition: xmemory0:198
template<class _Ty, size_t _Size>
reference _Array_iterator< _Ty, _Size >::operator[] ( difference_type  _Off) const
inline
1790  { // subscript
1791  return (*(*this + _Off));
1792  }

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