proland::Graph::Changes Struct Reference

A set of changes that occured to a Graph. More...

#include <Graph.h>

List of all members.

Public Member Functions

bool empty ()
 Returns true if this struct is empty (if none of the lists contain data).
void clear ()
 Clears each lists.
void insert (Changes c)
 Inserts a list of changes in the current struct.
bool equals (Changes c) const
 Checks if this Changes equals another.
void print () const
 Print method for debug only.

Public Attributes

set< CurveIdremovedCurves
 List of removed Curves.
set< CurveIdaddedCurves
 List of added Curves.
set< AreaIdremovedAreas
 List of removed areas.
set< AreaIdaddedAreas
 List of added areas.

Detailed Description

A set of changes that occured to a Graph.

The changes are specified with sets of removed and added curves and areas. These structs are created when a Graph is modified, and they are used in clipUpdate to update a clipped graph incrementally, without doing a full clip.


Member Function Documentation

void proland::Graph::Changes::clear (  ) 

Clears each lists.

bool proland::Graph::Changes::empty (  ) 

Returns true if this struct is empty (if none of the lists contain data).

bool proland::Graph::Changes::equals ( Changes  c  )  const

Checks if this Changes equals another.

Parameters:
c another Changes struct.
Returns:
true if the two structs contain the same data.
void proland::Graph::Changes::insert ( Changes  c  ) 

Inserts a list of changes in the current struct.

Parameters:
c a Graph::Changes struct.
void proland::Graph::Changes::print (  )  const

Print method for debug only.


Member Data Documentation

List of added areas.

List of added Curves.

List of removed areas.

List of removed Curves.


Generated on Sat May 12 09:42:47 2012 for proland by  doxygen 1.6.1