#include <winstl/system/pid_sequence.hpp>
Public Types | |
Member Types | |
enum | { elideIdle = 0x0001, elideSystem = 0x0002, sort = 0x0004 } |
typedef DWORD | value_type |
The value type. | |
typedef processheap_allocator < value_type > | allocator_type |
The allocator type. | |
typedef pid_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 | |
pid_sequence (ws_uint32_t flags=elideIdle|elideSystem) | |
Constructs a sequence from the current processes in the host system. | |
pid_sequence (class_type const &rhs) | |
Copies the contents of the sequence. | |
~pid_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. | |
Static Public Member Functions | |
System Traits | |
static value_type | idleProcessId () |
The process identifier of the Idle process. | |
static value_type | systemProcessId () |
The process identifier of the System process. |
typedef DWORD value_type |
The value type.
The allocator type.
typedef pid_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.
pid_sequence | ( | ws_uint32_t | flags = elideIdle|elideSystem |
) | [explicit] |
Constructs a sequence from the current processes in the host system.
pid_sequence | ( | class_type const & | rhs | ) |
Copies the contents of the sequence.
~pid_sequence | ( | ) | throw () |
Releases the storage associated with the process id list.
const_iterator begin | ( | ) | const |
Begins the iteration.
const_iterator end | ( | ) | const |
Ends the iteration.
const_reference operator[] | ( | size_type | index | ) | const |
Returns a reference to the element at the given index.
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.
static value_type idleProcessId | ( | ) | [inline, static] |
The process identifier of the Idle process.
static value_type systemProcessId | ( | ) | [inline, static] |
The process identifier of the System process.
References system_version::major(), and system_version::minor().