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 
1559 {_EEN_SIZE = _Size}; // helper for expression evaluator
_CRT_BEGIN_C_HEADER _Check_return_ _Ret_maybenull_ _In_ size_t _Size
Definition: corecrt_malloc.h:58
Definition: xutility:1559

Constructor & Destructor Documentation

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

Member Function Documentation

template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::_Rechecked ( _Unchecked_type  _Right)
inline
1574  { // reset from unchecked iterator
1575  _Ptr = _Right;
1576  return (*this);
1577  }
pointer _Ptr
Definition: xutility:1683
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
_Unchecked_type _Array_const_iterator< _Ty, _Size >::_Unchecked ( ) const
inline
1580  { // make an unchecked iterator
1581  return (_Ptr);
1582  }
pointer _Ptr
Definition: xutility:1683
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator!= ( const _Myiter _Right) const
inline
1659  { // test for iterator inequality
1660  return (!(*this == _Right));
1661  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
reference _Array_const_iterator< _Ty, _Size >::operator* ( ) const
inline
1585  { // return designated object
1586  return (*_Ptr);
1587  }
pointer _Ptr
Definition: xutility:1683
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator+ ( difference_type  _Off) const
inline
1627  { // return this + integer
1628  _Myiter _Tmp = *this;
1629  return (_Tmp += _Off);
1630  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1551
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator++ ( )
inline
1595  { // preincrement
1596  ++_Ptr;
1597  return (*this);
1598  }
pointer _Ptr
Definition: xutility:1683
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator++ ( int  )
inline
1601  { // postincrement
1602  _Myiter _Tmp = *this;
1603  ++*this;
1604  return (_Tmp);
1605  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1551
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator+= ( difference_type  _Off)
inline
1621  { // increment by integer
1622  _Ptr += _Off;
1623  return (*this);
1624  }
pointer _Ptr
Definition: xutility:1683
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator- ( difference_type  _Off) const
inline
1638  { // return this - integer
1639  _Myiter _Tmp = *this;
1640  return (_Tmp -= _Off);
1641  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1551
template<class _Ty, size_t _Size>
difference_type _Array_const_iterator< _Ty, _Size >::operator- ( const _Myiter _Right) const
inline
1644  { // return difference of iterators
1645  return (_Ptr - _Right._Ptr);
1646  }
pointer _Ptr
Definition: xutility:1683
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator-- ( )
inline
1608  { // predecrement
1609  --_Ptr;
1610  return (*this);
1611  }
pointer _Ptr
Definition: xutility:1683
template<class _Ty, size_t _Size>
_Myiter _Array_const_iterator< _Ty, _Size >::operator-- ( int  )
inline
1614  { // postdecrement
1615  _Myiter _Tmp = *this;
1616  --*this;
1617  return (_Tmp);
1618  }
_Array_const_iterator< _Ty, _Size > _Myiter
Definition: xutility:1551
template<class _Ty, size_t _Size>
_Myiter& _Array_const_iterator< _Ty, _Size >::operator-= ( difference_type  _Off)
inline
1633  { // decrement by integer
1634  return (*this += -_Off);
1635  }
template<class _Ty, size_t _Size>
pointer _Array_const_iterator< _Ty, _Size >::operator-> ( ) const
inline
1590  { // return pointer to class object
1591  return (pointer_traits<pointer>::pointer_to(**this));
1592  }
Definition: xmemory0:254
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator< ( const _Myiter _Right) const
inline
1664  { // test if this < _Right
1665  return (_Ptr < _Right._Ptr);
1666  }
pointer _Ptr
Definition: xutility:1683
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator<= ( const _Myiter _Right) const
inline
1674  { // test if this <= _Right
1675  return (!(_Right < *this));
1676  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator== ( const _Myiter _Right) const
inline
1654  { // test for iterator equality
1655  return (_Ptr == _Right._Ptr);
1656  }
pointer _Ptr
Definition: xutility:1683
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator> ( const _Myiter _Right) const
inline
1669  { // test if this > _Right
1670  return (_Right < *this);
1671  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
bool _Array_const_iterator< _Ty, _Size >::operator>= ( const _Myiter _Right) const
inline
1679  { // test if this >= _Right
1680  return (!(*this < _Right));
1681  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Ty, size_t _Size>
reference _Array_const_iterator< _Ty, _Size >::operator[] ( difference_type  _Off) const
inline
1649  { // subscript
1650  return (*(*this + _Off));
1651  }

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: