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
BlueColourFilter< GraphType > Class Template Reference

#include <blue_colour_filter.h>

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

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

 BlueColourFilter (GraphProperties< GraphType > &properties)
 
virtual GraphFilter< GraphType > * clone ()
 
virtual bool operator() (E_type edge)
 Operator used for edges, at present this will colour both source and target of the edge.
 
virtual bool operator() (V_type m)
 
template<typename P1 , typename P2 >
bool operator() (std::pair< P1, P2 > &m)
 Operator used for STL.
 
- 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_
 

Detailed Description

template<typename GraphType>
class BlueColourFilter< GraphType >

A filter which colours everything blue. Used to demonstrate property setting. Side-effect: set the colour blue on every node in the graph.

Deprecated:
Use SetPropertyAction with a TrueFilter instead.

Constructor & Destructor Documentation

template<typename GraphType>
BlueColourFilter< GraphType >::BlueColourFilter ( GraphProperties< GraphType > &  properties)
inline

Constructor for the filter. This filter has side-effects so it takes the Graph as a parameter.

Member Function Documentation

template<typename GraphType>
virtual GraphFilter<GraphType>* BlueColourFilter< GraphType >::clone ( )
inlinevirtual

Clone the filter

Implements GraphFilter< GraphType >.

template<typename GraphType>
virtual bool BlueColourFilter< GraphType >::operator() ( V_type  m)
inlinevirtual

Returns true if the node matches the filter and false otherwise. Grapher intereprets false as " do not include this node ".

Implements GraphFilter< GraphType >.


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