Next Previous Contents

4.7 Abstract class AttrDestroyer

Defined in: argraph.h

Extends: -

Overview: Concrete implementations of this class are used to deallocate node or edge attributes when no longer needed. A destroyer is installed with the SetNodeDestroyer and SetEdgeDestroyer methods of class Graph.

Notice that the attribute destroyers have to be allocated on heap with new; once they are installed they are owned by the graph, which will delete them when they are no longer needed. So it is an error to share a destroyer across graphs, as is to use a static or automatic variable for this purpose.


Next Previous Contents