12 #ifndef __UN_Handle_h__
13 #define __UN_Handle_h__
39 : myGraphData( graph_data )
45 {
return myGraphData; }
47 {
return myGraphData; }
62 (myGraphData == other.myGraphData &&
63 myDataID == other.myDataID)
70 return !( *
this == other );
79 {
return myGraphData && myDataID; }
const UN_GraphData * constGraphData() const
Returns the underlying graph data object.
bool isNumericallyValid() const
const UN_GraphData * constGraphData() const
Returns the graph that owns, manages, and operates on the data object.
UN_ConstHandle()
Constructs a reference handle for an invalid entity in the graph.
UN_ConstHandle(const UN_GraphData *graph_data, UN_DataID data_id)
Constructs reference handle to the data for a given entity in the graph.
UN_Handle(UN_GraphData *graph_data, UN_DataID data_id)
Constructs reference handle to the data for a given entity in the graph.
UN_GraphData * graphData() const
Returns the graph that owns, manages, and operates on the data object.
bool operator!=(const UN_ConstHandle &other) const
bool operator==(const UN_ConstHandle &other) const
const UN_GraphData * graphData() const
Returns the underlying graph data object.
UN_Handle()
Constructs a reference handle for an invalid entity in the graph.