STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_String_iterator< _Mystr > Class Template Reference
Inheritance diagram for _String_iterator< _Mystr >:
_String_const_iterator< _Mystr > _Iterator012< random_access_iterator_tag, _Mystr::value_type, _Mystr::difference_type, _Mystr::const_pointer, _Mystr::const_reference, _Iterator_base > _Iterator_base0

Public Types

typedef _String_iterator< _Mystr > _Myiter
 
typedef _String_const_iterator< _Mystr > _Mybase
 
typedef random_access_iterator_tag iterator_category
 
typedef _Mystr::value_type value_type
 
typedef _Mystr::difference_type difference_type
 
typedef _Mystr::pointer pointer
 
typedef _Mystr::reference reference
 
typedef pointer _Unchecked_type
 
- Public Types inherited from _String_const_iterator< _Mystr >
typedef _String_const_iterator< _Mystr > _Myiter
 
typedef random_access_iterator_tag iterator_category
 
typedef _Mystr::value_type value_type
 
typedef _Mystr::difference_type difference_type
 
typedef _Mystr::const_pointer pointer
 
typedef _Mystr::const_reference reference
 
typedef pointer _Unchecked_type
 
- Public Types inherited from _Iterator012< random_access_iterator_tag, _Mystr::value_type, _Mystr::difference_type, _Mystr::const_pointer, _Mystr::const_reference, _Iterator_base >
typedef random_access_iterator_tag iterator_category
 
typedef _Mystr::value_type value_type
 
typedef _Mystr::difference_type difference_type
 
typedef _Mystr::const_pointer pointer
 
typedef _Mystr::const_reference reference
 

Public Member Functions

 _String_iterator ()
 
 _String_iterator (pointer _Parg, const _Container_base *_Pstring)
 
_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 _String_const_iterator< _Mystr >
 _String_const_iterator ()
 
 _String_const_iterator (pointer _Parg, const _Container_base *_Pstring)
 
_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
 
void _Compat (const _Myiter &) const
 
- Public Member Functions inherited from _Iterator_base0
void _Adopt (const void *)
 
const _Container_base0_Getcont () const
 

Additional Inherited Members

- Public Attributes inherited from _String_const_iterator< _Mystr >
pointer _Ptr
 

Member Typedef Documentation

template<class _Mystr>
typedef _String_const_iterator<_Mystr> _String_iterator< _Mystr >::_Mybase
template<class _Mystr>
typedef _String_iterator<_Mystr> _String_iterator< _Mystr >::_Myiter
template<class _Mystr>
typedef pointer _String_iterator< _Mystr >::_Unchecked_type
template<class _Mystr>
typedef _Mystr::difference_type _String_iterator< _Mystr >::difference_type
template<class _Mystr>
typedef random_access_iterator_tag _String_iterator< _Mystr >::iterator_category
template<class _Mystr>
typedef _Mystr::pointer _String_iterator< _Mystr >::pointer
template<class _Mystr>
typedef _Mystr::reference _String_iterator< _Mystr >::reference
template<class _Mystr>
typedef _Mystr::value_type _String_iterator< _Mystr >::value_type

Constructor & Destructor Documentation

template<class _Mystr>
_String_iterator< _Mystr >::_String_iterator ( )
inline
317  { // construct with null string pointer
318  }
template<class _Mystr>
_String_iterator< _Mystr >::_String_iterator ( pointer  _Parg,
const _Container_base _Pstring 
)
inline
321  : _Mybase(_Parg, _Pstring)
322  { // construct with pointer _Parg
323  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:308

Member Function Documentation

template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::_Rechecked ( _Unchecked_type  _Right)
inline
328  { // reset from unchecked iterator
329  this->_Ptr = _Right;
330  return (*this);
331  }
pointer _Ptr
Definition: xstring:273
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Mystr>
_Unchecked_type _String_iterator< _Mystr >::_Unchecked ( ) const
inline
334  { // make an unchecked iterator
335  return (_Const_cast(this->_Ptr));
336  }
auto _Const_cast(_Ptrty _Ptr)
Definition: xmemory0:295
pointer _Ptr
Definition: xstring:273
template<class _Mystr>
reference _String_iterator< _Mystr >::operator* ( ) const
inline
339  { // return designated object
340  return ((reference)**(_Mybase *)this);
341  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:308
_Mystr::reference reference
Definition: xstring:314
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator+ ( difference_type  _Off) const
inline
381  { // return this + integer
382  _Myiter _Tmp = *this;
383  return (_Tmp += _Off);
384  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:307
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator++ ( )
inline
349  { // preincrement
350  ++*(_Mybase *)this;
351  return (*this);
352  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:308
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator++ ( int  )
inline
355  { // postincrement
356  _Myiter _Tmp = *this;
357  ++*this;
358  return (_Tmp);
359  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:307
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator+= ( difference_type  _Off)
inline
375  { // increment by integer
376  *(_Mybase *)this += _Off;
377  return (*this);
378  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:308
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator- ( difference_type  _Off) const
inline
392  { // return this - integer
393  _Myiter _Tmp = *this;
394  return (_Tmp -= _Off);
395  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:307
template<class _Mystr>
difference_type _String_iterator< _Mystr >::operator- ( const _Mybase _Right) const
inline
398  { // return difference of iterators
399  return (*(_Mybase *)this - _Right);
400  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:308
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator-- ( )
inline
362  { // predecrement
363  --*(_Mybase *)this;
364  return (*this);
365  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:308
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator-- ( int  )
inline
368  { // postdecrement
369  _Myiter _Tmp = *this;
370  --*this;
371  return (_Tmp);
372  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:307
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator-= ( difference_type  _Off)
inline
387  { // decrement by integer
388  return (*this += -_Off);
389  }
template<class _Mystr>
pointer _String_iterator< _Mystr >::operator-> ( ) const
inline
344  { // return pointer to class object
345  return (pointer_traits<pointer>::pointer_to(**this));
346  }
Definition: xmemory0:244
template<class _Mystr>
reference _String_iterator< _Mystr >::operator[] ( difference_type  _Off) const
inline
403  { // subscript
404  return (*(*this + _Off));
405  }

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