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 }
 
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 }
 
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_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 
1942 {_EEN_SIZE = _Size}; // helper for expression evaluator
Definition: xutility:1942
_Size
Definition: vcruntime_string.h:36

Constructor & Destructor Documentation

template<class _Ty, size_t _Size>
_Array_iterator< _Ty, _Size >::_Array_iterator ( )
inline
1935  { // construct with null pointer
1936  }
template<class _Ty, size_t _Size>
_Array_iterator< _Ty, _Size >::_Array_iterator ( pointer  _Parg,
size_t  _Off = 0 
)
inlineexplicit
1939  : _Mybase(_Parg, _Off)
1940  { // construct with pointer and offset
1941  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925

Member Function Documentation

template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::_Rechecked ( _Unchecked_type  _Right)
inline
1946  { // reset from unchecked iterator
1947  ((_Mybase *)this)->_Rechecked(_Right);
1948  return (*this);
1949  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
_Unchecked_type _Array_iterator< _Ty, _Size >::_Unchecked ( ) const
inline
1952  { // make an unchecked iterator
1953  return ((pointer)((_Mybase *)this)->_Unchecked());
1954  }
_Unchecked_type _Unchecked() const
Definition: xutility:1951
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925
_Ty * pointer
Definition: xutility:1931
template<class _Ty, size_t _Size>
reference _Array_iterator< _Ty, _Size >::operator* ( ) const
inline
1957  { // return designated object
1958  return ((reference)**(_Mybase *)this);
1959  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925
_Ty & reference
Definition: xutility:1932
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator+ ( difference_type  _Off) const
inline
1999  { // return this + integer
2000  _Myiter _Tmp = *this;
2001  return (_Tmp += _Off);
2002  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1924
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator++ ( )
inline
1967  { // preincrement
1968  ++*(_Mybase *)this;
1969  return (*this);
1970  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator++ ( int  )
inline
1973  { // postincrement
1974  _Myiter _Tmp = *this;
1975  ++*this;
1976  return (_Tmp);
1977  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1924
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator+= ( difference_type  _Off)
inline
1993  { // increment by integer
1994  *(_Mybase *)this += _Off;
1995  return (*this);
1996  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator- ( difference_type  _Off) const
inline
2010  { // return this - integer
2011  _Myiter _Tmp = *this;
2012  return (_Tmp -= _Off);
2013  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1924
template<class _Ty, size_t _Size>
difference_type _Array_iterator< _Ty, _Size >::operator- ( const _Mybase _Right) const
inline
2016  { // return difference of iterators
2017  return (*(_Mybase *)this - _Right);
2018  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator-- ( )
inline
1980  { // predecrement
1981  --*(_Mybase *)this;
1982  return (*this);
1983  }
_Array_const_iterator< _Ty, _Size > _Mybase
Definition: xutility:1925
template<class _Ty, size_t _Size>
_Myiter _Array_iterator< _Ty, _Size >::operator-- ( int  )
inline
1986  { // postdecrement
1987  _Myiter _Tmp = *this;
1988  --*this;
1989  return (_Tmp);
1990  }
_Array_iterator< _Ty, _Size > _Myiter
Definition: xutility:1924
template<class _Ty, size_t _Size>
_Myiter& _Array_iterator< _Ty, _Size >::operator-= ( difference_type  _Off)
inline
2005  { // decrement by integer
2006  return (*this += -_Off);
2007  }
template<class _Ty, size_t _Size>
pointer _Array_iterator< _Ty, _Size >::operator-> ( ) const
inline
1962  { // return pointer to class object
1963  return (pointer_traits<pointer>::pointer_to(**this));
1964  }
Definition: xmemory0:244
template<class _Ty, size_t _Size>
reference _Array_iterator< _Ty, _Size >::operator[] ( difference_type  _Off) const
inline
2021  { // subscript
2022  return (*(*this + _Off));
2023  }

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