STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

const_iterator Class Reference

Non-mutating (const) iterator for the list_adaptor class. More...

#include <mfcstl_array_adaptor.h>

List of all members.

Public Methods

 const_iterator ()
 Default constructor.

 const_iterator (class_type const &rhs)
 Copy constructor.

const_iterator const & operator= (class_type const &rhs)
 Copy assignment operator.

class_typeoperator++ ()
 Pre-increment operator.

class_type operator++ (int)
 Post-increment operator.

difference_type compare (class_type const &rhs) const
 Compares this with rhs.

ms_bool_t operator== (class_type const &rhs) const
 Evaluates whether this and rhs are equivalent.

ms_bool_t operator!= (class_type const &rhs) const
 Evaluates whether this and rhs are not equivalent.

class_typeoperator-- ()
 Pre-decrement operator.

class_type operator-- (int)
 Post-decrement operator.

class_typeoperator+= (difference_type inc)
 Moves the iterator forward.

class_typeoperator-= (difference_type dec)
 Moves the iterator backward.

value_type & operator[] (difference_type index)
 Access the element at the given index.

value_type operator[] (difference_type index) const
 Access the element at the given index.


Detailed Description

template<class C, class T = array_adaptor_traits<C>>
class mfcstl::array_adaptor< C, T >::const_iterator

Non-mutating (const) iterator for the list_adaptor class.

Note:
This supports the Random-Access Iterator concept


Constructor & Destructor Documentation

const_iterator   [inline]
 

Default constructor.

const_iterator class_type const &    rhs [inline]
 

Copy constructor.

Parameters:
rhs  The instance from which to copy construct


Member Function Documentation

difference_type compare class_type const &    rhs const [inline]
 

Compares this with rhs.

Parameters:
rhs  The instance against which to test
Return values:
0  if the two are equal
<0  if this is before rhs in the sequence
>0  if this is after rhs in the sequence

ms_bool_t operator!= class_type const &    rhs const [inline]
 

Evaluates whether this and rhs are not equivalent.

Parameters:
rhs  The instance against which to compare
Return values:
true  If this and rhs are not equivalent
false  If this and rhs are equivalent

class_type operator++ int    [inline]
 

Post-increment operator.

class_type& operator++   [inline]
 

Pre-increment operator.

class_type& operator+= difference_type    inc [inline]
 

Moves the iterator forward.

Parameters:
inc  The amount by which to increment the iterator's current position

class_type operator-- int    [inline]
 

Post-decrement operator.

class_type& operator--   [inline]
 

Pre-decrement operator.

class_type& operator-= difference_type    dec [inline]
 

Moves the iterator backward.

Parameters:
dec  The amount by which to decrement the iterator's current position

const_iterator const& operator= class_type const &    rhs [inline]
 

Copy assignment operator.

Parameters:
rhs  The instance from which to copy assign

ms_bool_t operator== class_type const &    rhs const [inline]
 

Evaluates whether this and rhs are equivalent.

Parameters:
rhs  The instance against which to compare
Return values:
true  If this and rhs are equivalent
false  If this and rhs are not equivalent

value_type operator[] difference_type    index const [inline]
 

Access the element at the given index.

Parameters:
index  The required offset from the iterator's position

value_type& operator[] difference_type    index [inline]
 

Access the element at the given index.

Parameters:
index  The required offset from the iterator's position


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004