StuBS
PerCore< T > Class Template Reference

Handy interface for core local variables Example usage: More...

#include <object/percore.h>

Public Member Functions

 PerCore (const T &val)
 
T & get ()
 
const T & get () const
 
const T & set (const T &value)
 
T * operator-> ()
 
const T * operator-> () const
 
T & operator* ()
 
const T & operator* () const
 
T * operator& ()
 
T & operator* () volatile
 
T & operator= (T &val)
 
operator++ (int)
 
T & operator++ ()
 
operator-- (int)
 
T & operator-- ()
 
bool operator== (const T &val) const
 
bool operator!= (const T &val) const
 
T & operator[] (unsigned index)
 Access the variable of another CPU.
 
T & operator[] (unsigned index) volatile
 
const T & operator[] (unsigned index) const
 

Detailed Description

template<typename T>
class PerCore< T >

Handy interface for core local variables Example usage:

PerCore<int> value(1); // initialized to 1
value++; // value for X is now 2
value.set(42);
Handy interface for core local variables Example usage:
Definition: percore.h:21

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