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::difference_type distance_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
312  { // construct with null string pointer
313  }
template<class _Mystr>
_String_iterator< _Mystr >::_String_iterator ( pointer  _Parg,
const _Container_base _Pstring 
)
inline
316  : _Mybase(_Parg, _Pstring)
317  { // construct with pointer _Parg
318  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:303

Member Function Documentation

template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::_Rechecked ( _Unchecked_type  _Right)
inline
323  { // reset from unchecked iterator
324  this->_Ptr = _Right;
325  return (*this);
326  }
pointer _Ptr
Definition: xstring:268
const _Ty & _Right
Definition: algorithm:4087
template<class _Mystr>
_Unchecked_type _String_iterator< _Mystr >::_Unchecked ( ) const
inline
329  { // make an unchecked iterator
330  return (_Unchecked_type(this->_Ptr));
331  }
pointer _Unchecked_type
Definition: xstring:320
pointer _Ptr
Definition: xstring:268
template<class _Mystr>
reference _String_iterator< _Mystr >::operator* ( ) const
inline
334  { // return designated object
335  return ((reference)**(_Mybase *)this);
336  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:303
_Mystr::reference reference
Definition: xstring:309
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator+ ( difference_type  _Off) const
inline
376  { // return this + integer
377  _Myiter _Tmp = *this;
378  return (_Tmp += _Off);
379  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:302
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator++ ( )
inline
344  { // preincrement
345  ++*(_Mybase *)this;
346  return (*this);
347  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:303
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator++ ( int  )
inline
350  { // postincrement
351  _Myiter _Tmp = *this;
352  ++*this;
353  return (_Tmp);
354  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:302
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator+= ( difference_type  _Off)
inline
370  { // increment by integer
371  *(_Mybase *)this += _Off;
372  return (*this);
373  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:303
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator- ( difference_type  _Off) const
inline
387  { // return this - integer
388  _Myiter _Tmp = *this;
389  return (_Tmp -= _Off);
390  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:302
template<class _Mystr>
difference_type _String_iterator< _Mystr >::operator- ( const _Mybase _Right) const
inline
393  { // return difference of iterators
394  return ((_Mybase)*this - _Right);
395  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:303
const _Ty & _Right
Definition: algorithm:4087
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator-- ( )
inline
357  { // predecrement
358  --*(_Mybase *)this;
359  return (*this);
360  }
_String_const_iterator< _Mystr > _Mybase
Definition: xstring:303
template<class _Mystr>
_Myiter _String_iterator< _Mystr >::operator-- ( int  )
inline
363  { // postdecrement
364  _Myiter _Tmp = *this;
365  --*this;
366  return (_Tmp);
367  }
_String_iterator< _Mystr > _Myiter
Definition: xstring:302
template<class _Mystr>
_Myiter& _String_iterator< _Mystr >::operator-= ( difference_type  _Off)
inline
382  { // decrement by integer
383  return (*this += -_Off);
384  }
template<class _Mystr>
pointer _String_iterator< _Mystr >::operator-> ( ) const
inline
339  { // return pointer to class object
340  return (_STD pointer_traits<pointer>::pointer_to(**this));
341  }
Definition: xmemory0:198
template<class _Mystr>
reference _String_iterator< _Mystr >::operator[] ( difference_type  _Off) const
inline
398  { // subscript
399  return (*(*this + _Off));
400  }

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