SSim C++ API documentation (v. 1.3.2)

Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Examples  

ssim::ProcessWithPId Class Reference

utility Process class providing a utility interface with the simulator. More...

#include <ssim.h>

Inheritance diagram for ssim::ProcessWithPId:

ssim::Process List of all members.

Public Methods

ProcessId activate (char mode=0)
 activates this process within the simulator.

ProcessId pid () const
 process id of this process.


Detailed Description

utility Process class providing a utility interface with the simulator.

This is a sligtly more advanced Process class that provides automatic management of the process-id.


Member Function Documentation

ProcessId ssim::ProcessWithPId::activate char    mode = 0 [inline]
 

activates this process within the simulator.

Creates a simulator process with this process object. The same ProcessWithPId can be activated only once.

Returns:
the ProcessId of the created simulator process. Or NULL_PROCESSID if this process object is already associated with a simulation process.
See also:
Sim::create_process(Process*,char)

ProcessId ssim::ProcessWithPId::pid   [inline]
 

process id of this process.

Returns:
the id of the simulation process with this objectk, or NULL_PROCESSID if no process is associated with this object.


The documentation for this class was generated from the following file:
Copyright © 2002 University of Colorado.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". This documentation is authored and maintained by Antonio Carzaniga