SRGraph::GetSafeData

SRGraphData * SRGraph::GetSafeData(int index, int group)

Returns an SRGraphData pointer to either the existing data or to a dummy "null" data item depending on whether the data exists in the array
This function is used to read data from the array without making the array grow -- in case of a bad index

Defined in: SRGraph.cpp

Return Value

Pointer to an SRGraphData object containing the correct data or a null data item

Parameters

index

Zero-based index of the SRGraphData item in the list or -2 for the first object (head) or -2 for the last (tail)

group

Zero-based index of the group holding the list