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  

array_veneer Class Template Reference
[Container Library (MFCSTL)]

Adapts MFC Array classes to the STL container concept. More...

#include <mfcstl_array_veneer.h>

List of all members.

Public Types

typedef array_veneer< C, T > class_type
 The type of the instantiated template.

typedef C container_type
 The type of the adapted container.

typedef ms_size_t size_type
 The size type.

typedef ms_ptrdiff_t difference_type
 The difference type.

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


Public Methods

 array_veneer ()
 Constructs an instance of the array adaptor.

size_type size () const
 Returns the number of elements in the sequence.

ms_bool_t empty () const
 Indicates whether the search sequence is empty.

const_iterator begin () const
 Begins the iteration.

const_iterator end () const
 Ends the iteration.

iterator begin ()
 Begins the iteration.

iterator end ()
 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)
 Returns a mutable reference to the element at the given index.

value_type operator[] (difference_type index) const
 Returns a copy of the element at the given index.


Static Public Methods

size_type max_size ()
 Returns the maximum number of elements in the sequence.


Detailed Description

template<class C, class T = array_veneer_traits<C>>
class mfcstl::array_veneer< C, T >

Adapts MFC Array classes to the STL container concept.

This class takes a container type, e.g. CStringArray, as its primary (and only non-default) template argument, C. The second template parameter, T, defaults to array_veneer_traits<C>, for which specialisations are provided for the following types

and for compilers that support partial specialisation

Parameters:
C  The container type
T  The traits type. With translators that support default template arguments, this is defaulted to array_veneer_traits<C>


Member Typedef Documentation

typedef array_veneer<C, T> class_type
 

The type of the instantiated template.

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

The reverse non-mutating (const) iterator type.

typedef C container_type
 

The type of the adapted container.

typedef ms_ptrdiff_t difference_type
 

The difference type.

typedef ms_size_t size_type
 

The size type.


Constructor & Destructor Documentation

array_veneer   [inline, explicit]
 

Constructs an instance of the array adaptor.


Member Function Documentation

iterator begin   [inline]
 

Begins the iteration.

Returns:
An iterator representing the start of the sequence

const_iterator begin   const [inline]
 

Begins the iteration.

Returns:
An iterator representing the start of the sequence

ms_bool_t empty   const [inline]
 

Indicates whether the search sequence is empty.

iterator end   [inline]
 

Ends the iteration.

Returns:
An iterator representing the end of the sequence

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 elements in the sequence.

value_type operator[] difference_type    index const [inline]
 

Returns a copy of the element at the given index.

value_type& operator[] difference_type    index [inline]
 

Returns a mutable reference to the element 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 sequence.


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

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