process_module_sequence Class Reference
[System Library]

#include <winstl/system/process_module_sequence.hpp>

Inheritance diagram for process_module_sequence:

stl_collection_tag collection_tag

List of all members.


Detailed Description

Process module (constituent DLLs) sequence.

Public Types

Member Types
typedef HMODULE value_type
 The value type.
typedef processheap_allocator
< value_type
allocator_type
 The allocator type.
typedef process_module_sequence class_type
 The class type.
typedef value_type const * const_pointer
 The non-mutating (const) pointer type.
typedef value_type const & const_reference
 The non-mutating (const) reference type.
typedef
stlsoft::pointer_iterator
< value_type, const_pointer,
const_reference >::type 
const_iterator
 The non-mutating (const) iterator type.
typedef size_t size_type
 The size type.
typedef ws_ptrdiff_t difference_type
 The difference type.

Public Member Functions

Construction
 process_module_sequence (HANDLE hProcess)
 Constructs a sequence from the current modules in the given process.
 process_module_sequence (class_type const &rhs)
 Copies the contents of the sequence.
 ~process_module_sequence () throw ()
 Releases the storage associated with the process id list.
Iteration
const_iterator begin () const
 Begins the iteration.
const_iterator end () const
 Ends the iteration.
Element Access
const_reference operator[] (size_type index) const
 Returns a reference to the element at the given index.
Attributes
bool empty () const
 Indicates whether the sequence is empty.
size_type size () const
 Returns the number of identifiers in the sequence.

Member Typedef Documentation

typedef HMODULE value_type

The value type.

The allocator type.

The class type.

typedef value_type const* const_pointer

The non-mutating (const) pointer type.

typedef value_type const& const_reference

The non-mutating (const) reference type.

typedef stlsoft:: pointer_iterator< value_type , const_pointer , const_reference >::type const_iterator

The non-mutating (const) iterator type.

typedef size_t size_type

The size type.

typedef ws_ptrdiff_t difference_type

The difference type.


Constructor & Destructor Documentation

process_module_sequence ( HANDLE  hProcess  )  [explicit]

Constructs a sequence from the current modules in the given process.

process_module_sequence ( class_type const &  rhs  ) 

Copies the contents of the sequence.

~process_module_sequence (  )  throw ()

Releases the storage associated with the process id list.


Member Function Documentation

const_iterator begin (  )  const

Begins the iteration.

Returns:
An iterator representing the start of the sequence

const_iterator end (  )  const

Ends the iteration.

Returns:
An iterator representing the end of the sequence

const_reference operator[] ( size_type  index  )  const

Returns a reference to the element at the given index.

Parameters:
index The required index. Behaviour is undefined, if not within the range [0, size())

bool empty (  )  const

Indicates whether the sequence is empty.

size_type size (  )  const

Returns the number of identifiers in the sequence.


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

Generated on Thu Jun 10 08:59:38 2010 for STLSoft by  doxygen 1.5.6