Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::runtime::GlobalObject Class Reference

A class to be inherited from so that all child classes will have a tracked unique ID. More...

#include <GlobalObj.h>

Inheritance diagram for galois::runtime::GlobalObject:
galois::graphs::GluonEdgeSubstrate< GraphTy > galois::graphs::GluonSubstrate< GraphTy >

Protected Member Functions

 GlobalObject (const GlobalObject &)=delete
 
 GlobalObject (GlobalObject &&)=delete
 
template<typename T >
 GlobalObject (const T *ptr)
 Constructs a global object given a pointer to the object you want to make a global object. More...
 
uint32_t idForSelf () const
 Returns own global id. More...
 

Static Protected Member Functions

static uintptr_t ptrForObj (unsigned oid)
 Returns the pointer for a global object. More...
 

Detailed Description

A class to be inherited from so that all child classes will have a tracked unique ID.

Warning
Not thread safe: do not concurrently construct GlobalObjects

Constructor & Destructor Documentation

galois::runtime::GlobalObject::GlobalObject ( const GlobalObject )
protecteddelete
galois::runtime::GlobalObject::GlobalObject ( GlobalObject &&  )
protecteddelete
template<typename T >
galois::runtime::GlobalObject::GlobalObject ( const T *  ptr)
inlineprotected

Constructs a global object given a pointer to the object you want to make a global object.

Template Parameters
Ttype of the object to make a GlobalObject
Parameters
ptrpointer to object to make a GlobalObject

Member Function Documentation

uint32_t galois::runtime::GlobalObject::idForSelf ( ) const
inlineprotected

Returns own global id.

Returns
this object's global id
uintptr_t galois::runtime::GlobalObject::ptrForObj ( unsigned  oid)
staticprotected

Returns the pointer for a global object.

Parameters
oidGlobal object id to get
Returns
pointer to requested global object

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