listbox_data_sequence Class Reference
[Windows Controls Library]

#include <winstl/controls/listbox_data_sequence.hpp>

Inheritance diagram for listbox_data_sequence:

stl_collection_tag collection_tag

List of all members.


Detailed Description

STL-like sequence for list-box contents.

This class presents an STL-like sequence interface to a list-box

Member Types

typedef listbox_data_sequence class_type
 The current parameterisation of the type.
typedef
listbox_data_const_iterator
< listbox_data_sequence_traits > 
const_iterator
 The non-mutating (const) iterator type.
typedef
const_iterator::const_reference 
const_reference
 The non-mutable (const) reference type.
typedef const_iterator::value_type value_type
 The value type.
typedef const_iterator::size_type size_type
 The size type.
typedef
const_iterator::difference_type 
difference_type
 The difference type.

State

size_type size () const
 Returns the number of elements in the list-box.
bool empty () const
 Indicates whether the list-box is empty.
static size_type max_size ()
 Returns the maximum number of items that the list-box can contain.

Public Member Functions

Construction
 listbox_data_sequence (HWND hwndListBox)
 Constructs from the given list-box.
Iteration
const_iterator begin () const
 Begins the iteration.
const_iterator end () const
 Ends the iteration.
Element Access
value_type operator[] (difference_type index) const
 Returns the item at the given index.


Member Typedef Documentation

The current parameterisation of the type.

typedef listbox_data_const_iterator<listbox_data_sequence_traits> const_iterator

The non-mutating (const) iterator type.

The non-mutable (const) reference type.

The value type.

The size type.

The difference type.


Constructor & Destructor Documentation

listbox_data_sequence ( HWND  hwndListBox  )  [inline, explicit]

Constructs from the given list-box.


Member Function Documentation

size_type size (  )  const [inline]

Returns the number of elements in the list-box.

bool empty (  )  const [inline]

Indicates whether the list-box is empty.

static size_type max_size (  )  [inline, static]

Returns the maximum number of items that the list-box can contain.

const_iterator begin (  )  const [inline]

Begins the iteration.

Returns:
An iterator representing the start of the sequence

const_iterator end (  )  const [inline]

Ends the iteration.

Returns:
An iterator representing the end of the sequence

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

Returns the item at the given index.


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