GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
|
#include <dependency_degree_filter.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 GraphFilter< GraphType > | |
typedef GraphType::node_value_type | V_type |
typedef GraphType::edge_value_type | E_type |
Public Member Functions | |
DependencyDegreeFilter (std::string filter_name, int min_degree, int max_degree, bool dependents=true, bool dependencies=true) | |
DependencyDegreeFilter (int min_degree, int max_degree, bool dependents=true, bool dependencies=true) | |
virtual GraphFilter< GraphType > * | clone () |
virtual bool | operator() (E_type edge) |
virtual bool | operator() (V_type m) |
void | set_dependents (bool dependents) |
void | set_dependencies (bool dependencies) |
template<typename P1 , typename P2 > | |
bool | operator() (std::pair< P1, P2 > &m) |
int | min_degree () |
int | max_degree () |
bool | dependents () |
bool | dependencies () |
Public Member Functions inherited from GraphFilter< GraphType > | |
GraphFilter (std::string filter_name="", std::string filter_type="", bool inverted=false, bool enabled=true, bool nodes=true, bool edges=true) | |
void | set_inverted (bool status) |
Sets the inverted status. | |
void | set_enabled (bool enabled) |
Sets enabled. | |
std::string | name () const |
std::string | type () const |
bool | inverted () const |
virtual bool | enabled () const |
virtual bool | nodes () const |
The nodes property tells us whether this filter operates on nodes. | |
virtual bool | edges () const |
The edgesproperty tells us whether this filter operates on nodes. | |
template<typename P1 , typename P2 > | |
bool | operator() (std::pair< P1, P2 > &m) |
Additional Inherited Members | |
Protected Attributes inherited from GraphFilter< GraphType > | |
bool | inverted_ |
bool | enabled_ |
bool | nodes_ |
bool | edges_ |
Filter used for filtering SWUs or modules dependending on the sum of the number of dependencies (outging dependencies) and the number of dependents (incoming dependencies). The sum is called degree in this context since the filter is applied to nodes in a graph where the nodes represents SWUs or modules. Inherits the GraphFilter class.
|
inline |
Constructor for the DependencyDegreeFilter class.
filter_name | The name of the filter. |
min_degree | The lowest degree to match. |
max_degree | The maximum degree to match. |
dependents | Set to true if the filter should take dependents into account. |
dependencies | Set to true if the filter should take dependencies into account. |
|
inline |
Constructor for the DependencyDegreeFilter class.
min_degree | The lowest degree to match. |
max_degree | The maximum degree to match. |
dependents | Set to true if the filter should take dependents into account. |
dependencies | Set to true if the filter should take dependencies into account. |
|
inlinevirtual |
Clone the filter
Implements GraphFilter< GraphType >.
|
inline |
Returns true if the number of dependencies are taken into account.
|
inline |
Returns true if the number of dependents are taken into account.
|
inline |
Returns the maximum degree to match.
|
inline |
Returns the lowest degree to match.
|
inlinevirtual |
Default implementation for edges since we don't use them
Implements GraphFilter< GraphType >.
|
inlinevirtual |
Operator used to filter nodes.
edge | The pointer to the edge that the filter is being applied to. |
Implements GraphFilter< GraphType >.
|
inline |
Operator used for STL algorithms.
|
inline |
Set whether to include dependencies in the degree calculation
dependencies | Set to true if the filter should take dependencies into account. |
|
inline |
Set whether to include dependents in the degree calculation.
dependents | Set to true if the filter should take dependents into account. |