GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
|
#include <hide_action.h>
Public Types | |
typedef GraphType::node_value_type | V_type |
typedef GraphType::edge_value_type | E_type |
typedef GraphType::index_type_t | index_type_t |
Public Types inherited from GraphAction< GraphType > | |
typedef GraphType::node_value_type | V_type |
typedef GraphType::edge_value_type | E_type |
typedef GraphType::index_type_t | index_type_t |
Public Member Functions | |
HideAction (GraphFilter< GraphType > *filter) | |
HideAction (HideAction ©) | |
Copy constructor (required to make sure parent is initialized) | |
virtual bool | operator() (E_type edge) |
Operator used to filter edges. | |
virtual bool | operator() (V_type m) |
Operator used for filtering nodes. | |
template<typename P1 , typename P2 > | |
bool | operator() (std::pair< P1, P2 > &m) |
Operator used for STL. | |
Public Member Functions inherited from GraphAction< GraphType > | |
GraphAction (GraphFilter< GraphType > *filter) | |
GraphAction (GraphAction< GraphType > ©) | |
virtual | ~GraphAction () |
GraphFilter< GraphType > * | filter () |
template<typename P1 , typename P2 > | |
bool | operator() (std::pair< P1, P2 > &m) |
Operator used for STL. | |
template<typename P > | |
bool | run_filter (P arg) |
Additional Inherited Members | |
Protected Attributes inherited from GraphAction< GraphType > | |
GraphFilter< GraphType > * | filter_ |
The filter is used to indicate whether the action should be taken or not. | |
A filter which colours everything blue. Used to demonstrate the property setting mechanism in Grapher. Side-effect: set the colour blue on every node in the graph.
|
inline |
Constructor for the filter. This filter has side-effects so it takes the Graph as a parameter. This takes next filter as a required parameter because it is dependent on there being another filter.