listbox_data_const_iterator Class Template Reference
[Windows Controls Library]

#include <winstl/controls/listbox_data_const_iterator.hpp>

Inheritance diagram for listbox_data_const_iterator:

iterator_base< winstl_ns_qual_std(random_access_iterator_tag), DWORD, ws_ptrdiff_t, void, DWORD >

List of all members.


Detailed Description

template<typename CT>
class winstl::listbox_data_const_iterator< CT >

Iterator for listbox_sequence class.

This class acts as the iterator for enumerating the data elements of a listbox_sequence class, and implements the Random Access Iterator concept

Parameters:
CT The control traits type

Public Types

Member Types
typedef DWORD value_type
 The value type.
typedef
listbox_data_const_iterator
< CT > 
class_type
 The current parameterisation of the type.
typedef size_t size_type
 The size type.
typedef ws_ptrdiff_t difference_type
 The difference type.
typedef value_type const const_reference
 The non-mutating (const) reference type.
typedef CT control_traits_type
 The control traits type.

Public Member Functions

Construction
 listbox_data_const_iterator (HWND hwndListBox, int index)
 Construct an instance from the list-box hwndListBox at the given index.
Forward Iterator Methods
const_reference operator* () const
 Dereferences the iterator and returns a reference to the current value.
class_typeoperator++ ()
 Pre-increment operator.
class_type operator++ (int)
 Post-increment operator.
difference_type compare (class_type const &rhs) const
 Compares this and rhs for equivalence.
bool operator== (class_type const &rhs) const
 Indicates whether this and rhs are equivalent.
bool operator!= (class_type const &rhs) const
 Indicates whether this and rhs are not equivalent.
Bidirectional Iterator methods
class_typeoperator-- ()
 Pre-decrement operator.
class_type operator-- (int)
 Post-decrement operator.
Random Access Iterator methods
class_typeoperator+= (difference_type index)
 Offset.
class_typeoperator-= (difference_type index)
 Offset.
value_type operator[] (difference_type index) const
 Subscript operator.
difference_type distance (class_type const &rhs) const
 Calculate the distance between this and rhs.
class_type operator- (difference_type n) const
 Pointer subtraction.
class_type operator+ (difference_type n) const
 Pointer addition.
difference_type operator- (class_type const &rhs) const
 Pointer difference.
bool operator< (class_type const &rhs) const
 Indicates whether this is less than rhs.
bool operator> (class_type const &rhs) const
 Indicates whether this is greater than rhs.
bool operator<= (class_type const &rhs) const
 Indicates whether this is less than or equal rhs.
bool operator>= (class_type const &rhs) const
 Indicates whether this is greater than or equal rhs.

Static Public Member Functions

Implementation
static value_type get_value_at_ (HWND hwnd, difference_type index)

Member Typedef Documentation

typedef DWORD value_type

The current parameterisation of the type.

typedef size_t size_type

The size type.

typedef ws_ptrdiff_t difference_type

The difference type.

typedef value_type const const_reference

The non-mutating (const) reference type.

typedef CT control_traits_type

The control traits type.


Constructor & Destructor Documentation

listbox_data_const_iterator ( HWND  hwndListBox,
int  index 
) [inline]

Construct an instance from the list-box hwndListBox at the given index.


Member Function Documentation

const_reference operator* (  )  const [inline]

Dereferences the iterator and returns a reference to the current value.

class_type& operator++ (  )  [inline]

Pre-increment operator.

class_type operator++ ( int   )  [inline]

Post-increment operator.

difference_type compare ( class_type const &  rhs  )  const [inline]

bool operator== ( class_type const &  rhs  )  const [inline]

Indicates whether this and rhs are equivalent.

bool operator!= ( class_type const &  rhs  )  const [inline]

Indicates whether this and rhs are not equivalent.

class_type& operator-- (  )  [inline]

Pre-decrement operator.

class_type operator-- ( int   )  [inline]

Post-decrement operator.

class_type& operator+= ( difference_type  index  )  [inline]

Offset.

class_type& operator-= ( difference_type  index  )  [inline]

Offset.

value_type operator[] ( difference_type  index  )  const [inline]

Subscript operator.

difference_type distance ( class_type const &  rhs  )  const [inline]

Calculate the distance between this and rhs.

References listbox_data_const_iterator::m_index.

class_type operator- ( difference_type  n  )  const [inline]

Pointer subtraction.

class_type operator+ ( difference_type  n  )  const [inline]

Pointer addition.

difference_type operator- ( class_type const &  rhs  )  const [inline]

Pointer difference.

bool operator< ( class_type const &  rhs  )  const [inline]

Indicates whether this is less than rhs.

bool operator> ( class_type const &  rhs  )  const [inline]

Indicates whether this is greater than rhs.

bool operator<= ( class_type const &  rhs  )  const [inline]

Indicates whether this is less than or equal rhs.

bool operator>= ( class_type const &  rhs  )  const [inline]

Indicates whether this is greater than or equal rhs.


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

Generated on Thu Jun 10 08:59:17 2010 for STLSoft by  doxygen 1.5.6