#include <winstl/controls/listbox_data_const_iterator.hpp>

This class acts as the iterator for enumerating the data elements of a listbox_sequence class, and implements the Random Access Iterator concept
| 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_type & | operator++ () |
| 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_type & | operator-- () |
| Pre-decrement operator. | |
| class_type | operator-- (int) |
| Post-decrement operator. | |
Random Access Iterator methods | |
| class_type & | operator+= (difference_type index) |
| Offset. | |
| class_type & | operator-= (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) |
| typedef DWORD value_type |
The value type.
Reimplemented from iterator_base< winstl_ns_qual_std(random_access_iterator_tag), DWORD, ws_ptrdiff_t, void, DWORD >.
| 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.
| listbox_data_const_iterator | ( | HWND | hwndListBox, | |
| int | index | |||
| ) | [inline] |
Construct an instance from the list-box hwndListBox at the given index.
| 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] |
Compares this and rhs for equivalence.
References listbox_data_const_iterator::m_hwnd, listbox_data_const_iterator::m_index, and WINSTL_MESSAGE_ASSERT.
| 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] |
| 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.
1.5.6