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  

listbox_sequence Class Template Reference
[Control Library (WinSTL)]

STL-like sequence for list-box contents. More...

#include <winstl_listbox_sequence.h>

List of all members.

Public Types

typedef listbox_sequence< S > class_type
 The current parameterisation of the type.

typedef listbox_sequence_const_iterator<
S > 
const_iterator
 The non-mutating (const) iterator type.

typedef TCHAR char_type
 The character type.

typedef S value_type
 The value type.

typedef ws_size_t size_type
 The size type.

typedef ws_ptrdiff_t difference_type
 The difference type.

typedef ::stlsoft::const_reverse_iterator_base<
const_iterator, value_type,
value_type, void *, difference_type
const_reverse_iterator
 The non-mutating (const) reverse iterator type.


Public Methods

 listbox_sequence (HWND hwndListBox)
 Constructs from the given list-box.

size_type size () const
 Returns the number of elements in the list-box.

ws_bool_t empty () const
 Indicates whether the list-box is empty.

const_iterator begin () const
 Begins the iteration.

const_iterator end () const
 Ends the iteration.

const_reverse_iterator rbegin () const
 Begins the reverse iteration.

const_reverse_iterator rend () const
 Ends the reverse iteration.

value_type operator[] (difference_type index) const
 Returns the item at the given index.


Static Public Methods

size_type max_size ()
 Returns the maximum number of items that the list-box can contain.


Detailed Description

template<typename S>
class winstl::listbox_sequence< S >

STL-like sequence for list-box contents.

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

Parameters:
S  The string type


Member Typedef Documentation

typedef TCHAR char_type
 

The character type.

typedef listbox_sequence<S> class_type
 

The current parameterisation of the type.

typedef listbox_sequence_const_iterator<S> const_iterator
 

The non-mutating (const) iterator type.

typedef ::stlsoft:: const_reverse_iterator_base< const_iterator , value_type , value_type , void* , difference_type > const_reverse_iterator
 

The non-mutating (const) reverse iterator type.

typedef ws_ptrdiff_t difference_type
 

The difference type.

typedef ws_size_t size_type
 

The size type.

typedef S value_type
 

The value type.


Constructor & Destructor Documentation

listbox_sequence HWND    hwndListBox [inline, explicit]
 

Constructs from the given list-box.


Member Function Documentation

const_iterator begin   const [inline]
 

Begins the iteration.

Returns:
An iterator representing the start of the sequence

ws_bool_t empty   const [inline]
 

Indicates whether the list-box is empty.

const_iterator end   const [inline]
 

Ends the iteration.

Returns:
An iterator representing the end of the sequence

size_type max_size   [inline, static]
 

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

value_type operator[] difference_type    index const [inline]
 

Returns the item at the given index.

const_reverse_iterator rbegin   const [inline]
 

Begins the reverse iteration.

Returns:
An iterator representing the start of the reverse sequence

const_reverse_iterator rend   const [inline]
 

Ends the reverse iteration.

Returns:
An iterator representing the end of the reverse sequence

size_type size   const [inline]
 

Returns the number of elements in the list-box.


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

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