#include <graphcode.h>
Public Member Functions | |
bool | type_registered (const object &x) |
Graph (Graph &g) | |
Graph & | operator= (const Graph &x) |
void | rebuild_local_list () |
void | clear_non_local () |
void | print (unsigned proc) |
void | gather () |
gather all data onto processor 0 | |
void | Prepare_Neighbours (bool cache_requests=false) |
void | Partition_Objects () |
partition | |
void | Distribute_Objects () |
objref & | AddObject (object *o, GraphID_t id, bool managed=false) |
objref & | AddObject (object &p, GraphID_t id) |
template<class T > | |
objref & | AddObject (GraphID_t id) |
template<class T > | |
objref & | AddObject (const T &master_copy, GraphID_t id) |
![]() | |
iterator | begin () const |
iterator | end () const |
objref & | front () |
objref & | back () |
const objref & | front () const |
const objref & | back () const |
objref & | operator[] (unsigned i) const |
void | push_back (objref *x) |
void | push_back (objref &x) |
void | erase (GraphID_t i) |
void | clear () |
size_type | size () const |
Ptrlist & | operator= (const Ptrlist &x) |
void | lpack (pack_t &targ) const |
void | lunpack (pack_t &targ) |
Public Attributes | |
vector< vector< GraphID_t > > | rec_req |
vector< vector< GraphID_t > > | requests |
unsigned | tag |
omap & | objects |
Additional Inherited Members | |
![]() | |
typedef vector< objref * >::size_type | size_type |
Graph is a list of node refs stored on local processor, and has a map of object references (called objects) referring to the nodes.
add the specified object into the Graph
References GRAPHCODE_NS::objref::addref().
|
inline |
add a new object of type T:
|
inline |
add a new object initialised by master_copy
|
inline |
remove from local memory any objects not hosted locally
References ecolab::myid.
|
inline |
distribute objects from proc 0 according to partitioning set in the objref's
proc
field
void GRAPHCODE_NS::Graph::Prepare_Neighbours | ( | bool | cache_requests = false | ) |
Prepare cached copies of objects linked to by locally hosted objects
|
inline |
print IDs of objects hosted on proc 0, for debugging purposes
References ecolab::myid.
|
inline |
Rebuild the list of locally hosted objects
References ecolab::myid.