Grappa  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Grappa::GlobalCounter Class Reference

#include <GlobalCounter.hpp>

Classes

struct  Master
 
struct  Proxy
 

Public Member Functions

 GlobalCounter (long initial_count=0, Core master_core=0)
 
void incr (long d=1)
 
long count ()
 
void destroy ()
 

Static Public Member Functions

static GlobalAddress
< GlobalCounter
create (long initial_count=0)
 

Public Attributes

struct
Grappa::GlobalCounter::Master 
master
 
GlobalAddress< GlobalCounterself
 
FlatCombiner< Proxycomb
 

Detailed Description

Definition at line 34 of file GlobalCounter.hpp.

Constructor & Destructor Documentation

Grappa::GlobalCounter::GlobalCounter ( long  initial_count = 0,
Core  master_core = 0 
)
inline

Definition at line 62 of file GlobalCounter.hpp.

Member Function Documentation

long Grappa::GlobalCounter::count ( )
inline

Definition at line 74 of file GlobalCounter.hpp.

static GlobalAddress<GlobalCounter> Grappa::GlobalCounter::create ( long  initial_count = 0)
inlinestatic

Definition at line 79 of file GlobalCounter.hpp.

void Grappa::GlobalCounter::destroy ( )
inline

Definition at line 86 of file GlobalCounter.hpp.

void Grappa::GlobalCounter::incr ( long  d = 1)
inline

Definition at line 67 of file GlobalCounter.hpp.

Member Data Documentation

FlatCombiner<Proxy> Grappa::GlobalCounter::comb

Definition at line 60 of file GlobalCounter.hpp.

struct Grappa::GlobalCounter::Master Grappa::GlobalCounter::master
GlobalAddress<GlobalCounter> Grappa::GlobalCounter::self

Definition at line 42 of file GlobalCounter.hpp.


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