mace::ScopedFingerprint Class Reference
[Scoped]

#include <ScopedFingerprint.h>

List of all members.


Detailed Description

Used to compute a fingerprint of the call path of an event.

Used in the simulator to tell what event fired for time-based estimation. May have other uses, such as getting a stack trace.

Todo:
Consider disabling ScopedFingerprint for deployment executions.

Definition at line 28 of file ScopedFingerprint.h.


Public Member Functions

 ScopedFingerprint (const std::string &selectorId)
 Place a scoped fingerprint object after the lock or ScopedLock object, and before each ScopedStackExecution object.

Static Public Member Functions

static string getFingerprint ()
 returns the current fingerprint

Constructor & Destructor Documentation

mace::ScopedFingerprint::ScopedFingerprint ( const std::string &  selectorId  )  [inline]

Place a scoped fingerprint object after the lock or ScopedLock object, and before each ScopedStackExecution object.

Must be placed before every ScopedStackExecution object or it might miss events or being cleared.

Definition at line 37 of file ScopedFingerprint.h.

References mace::ScopedStackExecution::getStackDepth().


Member Function Documentation

static string mace::ScopedFingerprint::getFingerprint (  )  [inline, static]

returns the current fingerprint

Warning:
may safely call from thread executing event, or in simulator. Not inherently thread-safe

Definition at line 51 of file ScopedFingerprint.h.


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

Generated on Sat Oct 4 21:30:42 2008 for Mace Library by  doxygen 1.5.5