GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
|
#include <set_property_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 |
typedef std::map< std::string, std::string > | PropertyMap |
typedef PropertyMap::iterator | iterator |
typedef PropertyMap::const_iterator | const_iterator |
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 | |
SetPropertyAction (GraphProperties< GraphType > &properties, GraphFilter< GraphType > *property_filter) | |
SetPropertyAction (SetPropertyAction ©) | |
Copy constructor. | |
virtual bool | operator() (E_type edge) |
virtual bool | operator() (V_type m) |
template<typename P1 , typename P2 > | |
bool | operator() (std::pair< P1, P2 > &m) |
Operator used for STL. | |
iterator | begin () |
Returns an iterator to the beginning of a map of property name/values. | |
iterator | end () |
Returns an iterator to the end of a map of property name/values. | |
void | set_property (std::string name, std::string value) |
Sets a specific property to be set when finding nodes matching the filter. | |
std::string | get_property (std::string name) |
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 sets properties based on a given filter.. Takes a GraphProperties reference which it uses to set properties on specific nodes based on them matching the filter or not.
|
inline |
Constructor for the filter. This filter has side-effects in that it sets properties on the supplied GraphProperties set.
properties | A reference to the set of properties |
property_filter | The GraphFilter to use when checking whether to set properties on nodes or not. |
|
inline |
Fetches a property value for a given property. Will return an empty string "" for unset properties.
|
inlinevirtual |
Operator used to filter edges. This always returns true as this filter has no impact on edges (properties are only set on nodes).
Implements GraphAction< GraphType >.
|
inlinevirtual |
Run the property action on the node. If the filter is enabled and returns true then the property will be set.
Implements GraphAction< GraphType >.