#include <winstl/controls/listbox_const_iterator.hpp>
This class acts as the iterator for the listbox_sequence class, and implements the Random Access Iterator concept
S | The string type |
Public Types | |
Member Types | |
typedef S | value_type |
The string type. | |
typedef listbox_const_iterator < S, BT > | class_type |
The current parameterisation of the type. | |
typedef stlsoft::string_traits < S >::char_type | char_type |
The character 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 value_type const * | const_pointer |
The non-mutating (const) pointer type. | |
typedef processheap_allocator < char_type > | allocator_type |
The allocator type. | |
typedef stlsoft::auto_buffer_old < char_type, allocator_type, 256 > | buffer_type |
The auto-buffer type. | |
typedef BT | control_traits_type |
The control traits type. | |
Public Member Functions | |
Construction | |
listbox_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. | |
const_pointer | operator-> () const |
Dereferences the iterator and returns a pointer 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 S value_type |
typedef listbox_const_iterator<S, BT> 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 value_type const* const_pointer |
The non-mutating (const) pointer type.
typedef processheap_allocator<char_type> allocator_type |
The allocator type.
typedef stlsoft:: auto_buffer_old< char_type , allocator_type , 256 > buffer_type |
The auto-buffer type.
typedef BT control_traits_type |
The control traits type.
listbox_const_iterator | ( | HWND | hwndListBox, | |
int | index | |||
) | [inline] |
Construct an instance from the list-box hwndListBox
at the given index
.
const_reference operator* | ( | ) | const [inline] |
const_pointer operator-> | ( | ) | const [inline] |
Dereferences the iterator and returns a pointer 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_const_iterator::m_hwnd, listbox_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
.