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

Public Types

enum  { _EEN_SIZE = _Size }
 
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 const _Ty * pointer
 
typedef const _Ty & reference
 

Public Member Functions

 _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
 

Public Attributes

pointer _Ptr
 

Member Typedef Documentation

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

Member Enumeration Documentation

template<class _Ty, size_t _Size>
anonymous enum
Enumerator
_EEN_SIZE 
1560 {_EEN_SIZE = _Size}; // helper for expression evaluator
Definition: xutility:1560
_Size
Definition: vcruntime_string.h:36

Constructor & Destructor Documentation

template<class _Ty, size_t _Size>
_Array_const_iterator< _Ty, _Size >::_Array_const_iterator ( )
inline
1563  : _Ptr(0)
1564  { // construct with null pointer
1565  }
pointer _Ptr
Definition: xutility:1684
template<class _Ty, size_t _Size>
_Array_const_iterator< _Ty, _Size >::_Array_const_iterator ( pointer  _Parg,
size_t  _Off = 0 
)
inlineexplicit
1568  : _Ptr(_Parg + _Off)
1569  { // construct with pointer and offset
1570  }
pointer _Ptr
Definition: xutility:1684

Member Function Documentation

template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::_Rechecked ( _Unchecked_type  _Right)
inline
1575  { // reset from unchecked iterator
1576  _Ptr = _Right;
1577  return (*this);
1578  }
pointer _Ptr
Definition: xutility:1684
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
_Unchecked_type _Array_const_iterator< _Ty, _Size >::_Unchecked ( ) const
inline
1581  { // make an unchecked iterator
1582  return (_Ptr);
1583  }
pointer _Ptr
Definition: xutility:1684
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator!= ( const _Myiter _Right) const
inline
1660  { // test for iterator inequality
1661  return (!(*this == _Right));
1662  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
reference _Array_const_iterator< _Ty, _Size >::operator* ( ) const
inline
1586  { // return designated object
1587  return (*_Ptr);
1588  }
pointer _Ptr
Definition: xutility:1684
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator+ ( difference_type  _Off) const
inline
1628  { // return this + integer
1629  _Myiter _Tmp = *this;
1630  return (_Tmp += _Off);
1631  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1552
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator++ ( )
inline
1596  { // preincrement
1597  ++_Ptr;
1598  return (*this);
1599  }
pointer _Ptr
Definition: xutility:1684
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator++ ( int  )
inline
1602  { // postincrement
1603  _Myiter _Tmp = *this;
1604  ++*this;
1605  return (_Tmp);
1606  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1552
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator+= ( difference_type  _Off)
inline
1622  { // increment by integer
1623  _Ptr += _Off;
1624  return (*this);
1625  }
pointer _Ptr
Definition: xutility:1684
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator- ( difference_type  _Off) const
inline
1639  { // return this - integer
1640  _Myiter _Tmp = *this;
1641  return (_Tmp -= _Off);
1642  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1552
template<class _Ty, size_t _Size>
difference_type _Array_const_iterator< _Ty, _Size >::operator- ( const _Myiter _Right) const
inline
1645  { // return difference of iterators
1646  return (_Ptr - _Right._Ptr);
1647  }
pointer _Ptr
Definition: xutility:1684
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator-- ( )
inline
1609  { // predecrement
1610  --_Ptr;
1611  return (*this);
1612  }
pointer _Ptr
Definition: xutility:1684
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator-- ( int  )
inline
1615  { // postdecrement
1616  _Myiter _Tmp = *this;
1617  --*this;
1618  return (_Tmp);
1619  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1552
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator-= ( difference_type  _Off)
inline
1634  { // decrement by integer
1635  return (*this += -_Off);
1636  }
template<class _Ty, size_t _Size>
pointer _Array_const_iterator< _Ty, _Size >::operator-> ( ) const
inline
1591  { // return pointer to class object
1592  return (pointer_traits<pointer>::pointer_to(**this));
1593  }
Definition: xmemory0:244
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator< ( const _Myiter _Right) const
inline
1665  { // test if this < _Right
1666  return (_Ptr < _Right._Ptr);
1667  }
pointer _Ptr
Definition: xutility:1684
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator<= ( const _Myiter _Right) const
inline
1675  { // test if this <= _Right
1676  return (!(_Right < *this));
1677  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator== ( const _Myiter _Right) const
inline
1655  { // test for iterator equality
1656  return (_Ptr == _Right._Ptr);
1657  }
pointer _Ptr
Definition: xutility:1684
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator> ( const _Myiter _Right) const
inline
1670  { // test if this > _Right
1671  return (_Right < *this);
1672  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator>= ( const _Myiter _Right) const
inline
1680  { // test if this >= _Right
1681  return (!(*this < _Right));
1682  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
reference _Array_const_iterator< _Ty, _Size >::operator[] ( difference_type  _Off) const
inline
1650  { // subscript
1651  return (*(*this + _Off));
1652  }

Member Data Documentation

template<class _Ty, size_t _Size>
pointer _Array_const_iterator< _Ty, _Size >::_Ptr

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