rpa::atomic< Iter > Struct Template Reference

Models a couple of simple atomic operations for an arbitrary datatype. More...

#include <atomic.h>

List of all members.

Public Types

typedef Iter atomic_type
typedef Iter data_type
 The associated non-atomic datatype. Generally equivalent to 'atomic_type'.

Static Public Member Functions

static void store (atomic_type &anIt, const data_type &aVal)
static atomic_type load (const atomic_type &anIt)
static const data_typevalue (const atomic_type &anIt)
static void incr (atomic_type &anIt)


Detailed Description

template<class Iter>
struct rpa::atomic< Iter >

Models a couple of simple atomic operations for an arbitrary datatype.

Used, for example, by the 'sequence_step' method, when there is no mutex to protect the access to an input sequence. Goes with 'compare_and_swap'.


Member Typedef Documentation

template<class Iter>
typedef Iter rpa::atomic< Iter >::atomic_type

We do not manipulate the class itself, but instead the datatype designated by this class, as an atomic type. Therefore, it allows to use as atomic type, any architecture-specific type.

template<class Iter>
typedef Iter rpa::atomic< Iter >::data_type

The associated non-atomic datatype. Generally equivalent to 'atomic_type'.


Member Function Documentation

template<class Iter>
static void rpa::atomic< Iter >::incr ( atomic_type anIt  )  [static]

template<class Iter>
static atomic_type rpa::atomic< Iter >::load ( const atomic_type anIt  )  [static]

template<class Iter>
static void rpa::atomic< Iter >::store ( atomic_type anIt,
const data_type aVal 
) [static]

template<class Iter>
static const data_type& rpa::atomic< Iter >::value ( const atomic_type anIt  )  [static]


The documentation for this struct was generated from the following file:
Generated on Tue Sep 25 10:20:34 2007 for rpa by  doxygen 1.4.7