12 #ifndef __UN_Handle_h__
13 #define __UN_Handle_h__
34 : myGraphData( graph_data )
35 , myDataIndex( data_index )
55 return myGraphData == other.myGraphData
56 && myDataIndex == other.myDataIndex
57 && myDataID == other.myDataID;
62 return !( *
this == other );
71 {
return myDataIndex; }
82 {
return myGraphData; }
86 UN_GraphData * myGraphData;
UN_DataID dataID() const
The unique ID of a data object during the lifespan of the owner graph.
UN_Handle(UN_GraphData *graph_data, UN_DataIndex data_index, UN_DataID data_id)
Convenience constructor.
bool operator==(const UN_Handle &other) const
Comparison operators.
UN_DataIndex dataIndex() const
bool operator!=(const UN_Handle &other) const
Comparison operators.
UN_Handle & operator=(const UN_Handle &)=default
Default destructor, constructors and assignment operators.
~UN_Handle()=default
Default destructor, constructors and assignment operators.
UN_GraphData * graphData() const
UN_Handle()
Default constructor.