GRAPHCODE_NS::objref Class Reference

#include <graphcode.h>

Collaboration diagram for GRAPHCODE_NS::objref:
Collaboration graph

Classes

struct  id_eq
 

Public Member Functions

 objref (GraphID_t i=0, int p=myid(), object *o=NULL)
 
 objref (GraphID_t i, int p, object &o)
 
 objref (const objref &x)
 
objrefoperator= (const objref &x)
 
objectoperator* ()
 
objectoperator-> ()
 
const objectoperator* () const
 
const objectoperator-> () const
 
void addref (object *o, bool mflag=false)
 
bool nullref () const
 
void nullify ()
 is reference invalid?
 

Public Attributes

GraphID_t ID
 object's ID
 
unsigned int proc
 location of object
 

Friends

class omap
 

Detailed Description

Reference to an object type

Member Function Documentation

◆ addref()

void GRAPHCODE_NS::objref::addref ( object o,
bool  mflag = false 
)
inline

add a reference to an object. mflag indicates object should be deleted when the objref is

Referenced by GRAPHCODE_NS::Graph::AddObject(), and nullify().


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