Grappa  r3821, hash 22cd626d567a91ead5b23302066d1e9469f45c66
Grappa::GlobalCounter Class Reference

#include <GlobalCounter.hpp>


struct  Master
struct  Proxy

Public Member Functions

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

Static Public Member Functions

static GlobalAddress< GlobalCountercreate (long initial_count=0)

Public Attributes

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

Detailed Description

Definition at line 45 of file GlobalCounter.hpp.

Constructor & Destructor Documentation

Grappa::GlobalCounter::GlobalCounter ( GlobalAddress< GlobalCounter self,
long  initial_count = 0,
Core  master_core = 0 

Definition at line 73 of file GlobalCounter.hpp.

Member Function Documentation

long Grappa::GlobalCounter::count ( )

Definition at line 85 of file GlobalCounter.hpp.

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

Definition at line 90 of file GlobalCounter.hpp.

void Grappa::GlobalCounter::destroy ( )

Definition at line 97 of file GlobalCounter.hpp.

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

Definition at line 78 of file GlobalCounter.hpp.

Member Data Documentation

FlatCombiner<Proxy> Grappa::GlobalCounter::comb

Definition at line 71 of file GlobalCounter.hpp.

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

Definition at line 53 of file GlobalCounter.hpp.

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