GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Public Types | Public Member Functions | List of all members
RunBlockFilter< GraphType > Class Template Reference

#include <run_block_filter.h>

Inheritance diagram for RunBlockFilter< GraphType >:
Inheritance graph
[legend]
Collaboration diagram for RunBlockFilter< GraphType >:
Collaboration graph
[legend]

Public Types

typedef GraphType::node_value_type V_type
 
typedef GraphType::edge_value_type E_type
 
- Public Types inherited from GraphFilter< GraphType >
typedef GraphType::node_value_type V_type
 
typedef GraphType::edge_value_type E_type
 

Public Member Functions

 RunBlockFilter (std::string filter_name, std::string executable_name, Linkler *l)
 
void set_linkler (Linkler *l)
 
virtual GraphFilter< GraphType > * clone ()
 Clone action.
 
virtual bool operator() (E_type edge)
 Ignores edges.
 
virtual bool enabled () const
 Disable the filter if no valid executable was used.
 
virtual bool operator() (V_type swu)
 Returns false for nodes that does not exist in the list of SWUs (meaning they should be filtered out/not included)
 
template<typename P1 , typename P2 >
bool operator() (std::pair< P1, P2 > &m)
 Operator used for STL.
 
std::string executable_name ()
 
std::vector< std::string > & swu_names ()
 
- 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 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_
 

Detailed Description

template<typename GraphType>
class RunBlockFilter< GraphType >

Filter used for filtering swus which checks the degree of the swu and if the degree passes above a specific min_degree or max_degree remove it.

Constructor & Destructor Documentation

template<typename GraphType>
RunBlockFilter< GraphType >::RunBlockFilter ( std::string  filter_name,
std::string  executable_name,
Linkler l 
)
inline

The run block filter takes a linkler as a parameter and uses this linkler to figure out how to filter nodes. Run block filter only operates on SWUs at present.

Member Function Documentation

template<typename GraphType>
void RunBlockFilter< GraphType >::set_linkler ( Linkler l)
inline

Updates the linkler used for this filter. Loads the list of SWUs that should match according to that liknler.


The documentation for this class was generated from the following file: