Unique Class Reference

The Overview pretty much sums it up. More...

#include <Unique.h>

Collaboration diagram for Unique:

Collaboration graph
[legend]

List of all members.

Public Types

typedef long Value_t
 The type generated by Unique.

Public Member Functions

 Unique ()
 ~Unique ()

Static Public Member Functions

static Value_t get ()
 The main public static method, which generates the next unique value.
static Value_t lockedGet ()


Detailed Description

The Overview pretty much sums it up.

The actual type for the Value_t parameter is long, so you can generate unique values up until you reach MAX_LONG. Since we just need to access the static get method, there is really no reason to even instantiate a Unique object, just call Unique::get


Member Typedef Documentation

typedef long Unique::Value_t

The type generated by Unique.


Constructor & Destructor Documentation

Unique::Unique (  )  [inline]

Unique::~Unique (  )  [inline]


Member Function Documentation

static Value_t Unique::get (  )  [inline, static]

The main public static method, which generates the next unique value.

This is thread safe either by using a mutex or by ensuring atomic access otherwise.

References Pooma::DummyMutex::lock(), and Pooma::DummyMutex::unlock().

static Value_t Unique::lockedGet (  )  [inline, static]


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

Generated on Wed Mar 16 06:20:42 2011 for FreePOOMA by  doxygen 1.5.9