graph_analysis
Public Types | Public Member Functions | List of all members
graph_analysis::filters::EdgeContextFilter Class Reference

#include <EdgeContextFilter.hpp>

Inheritance diagram for graph_analysis::filters::EdgeContextFilter:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::filters::EdgeContextFilter:
Collaboration graph
[legend]

Public Types

typedef shared_ptr< EdgeContextFilter > Ptr
 
- Public Types inherited from graph_analysis::Filter< graph_analysis::Edge::Ptr >
typedef Filter< graph_analysis::Edge::Ptr > FilterType
 
typedef shared_ptr< FilterType > Ptr
 
typedef std::vector< FilterType::Ptr > FilterList
 

Public Member Functions

virtual std::string getName () const
 Get Name of the filter. More...
 
virtual std::string toString () const
 Get string representation of filter. More...
 
virtual bool evaluateTarget (graph_analysis::Edge::Ptr e) const
 Evaluated the target of the edge. More...
 
bool matchesTarget (graph_analysis::Edge::Ptr e) const
 Use this and associated subfilters, to check if this target vertex is matched by the filter. More...
 
virtual bool evaluateSource (graph_analysis::Edge::Ptr e) const
 Evaluated the source vertex of the edge. More...
 
bool matchesSource (graph_analysis::Edge::Ptr e) const
 Use this and associated subfilters, to check if this edge's source vertex is matched by the filter. More...
 
- Public Member Functions inherited from graph_analysis::Filter< graph_analysis::Edge::Ptr >
virtual ~Filter ()
 
virtual std::string getName () const
 Get Name of the filter. More...
 
virtual std::string toString () const
 Get string representation of filter. More...
 
int replace (FilterType::Ptr filter, int position=-1)
 
void clear ()
 
int add (FilterType::Ptr filter, int position=-1)
 
void removeAt (int position)
 
bool matches (graph_analysis::Edge::Ptr o, filters::Operator op=filters::OR) const
 Apply all filters, i.e. root filter and children to the filter object, i.e., test whether filter matches the filter object. More...
 
virtual bool apply (graph_analysis::Edge::Ptr o) const
 Apply only the main filter(!) to the target object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from graph_analysis::Filter< graph_analysis::Edge::Ptr >
static Ptr Null ()
 
- Protected Attributes inherited from graph_analysis::Filter< graph_analysis::Edge::Ptr >
FilterList mFilters
 

Detailed Description

Interface definition for an edge context filter which allows to define whether the target / source node of a specific edge should be filtered

Member Typedef Documentation

◆ Ptr

Member Function Documentation

◆ evaluateSource()

virtual bool graph_analysis::filters::EdgeContextFilter::evaluateSource ( graph_analysis::Edge::Ptr  e) const
inlinevirtual

Evaluated the source vertex of the edge.

Returns
True if it should be filtered, false otherwise

Reimplemented in graph_analysis::filters::CombinedEdgeRegexFilter.

◆ evaluateTarget()

virtual bool graph_analysis::filters::EdgeContextFilter::evaluateTarget ( graph_analysis::Edge::Ptr  e) const
inlinevirtual

Evaluated the target of the edge.

Returns
True if it should be permitted, false otherwise

Reimplemented in graph_analysis::filters::CombinedEdgeRegexFilter.

◆ getName()

virtual std::string graph_analysis::filters::EdgeContextFilter::getName ( ) const
inlinevirtual

Get Name of the filter.

Returns
name of the filter

Reimplemented in graph_analysis::filters::CombinedEdgeRegexFilter.

◆ matchesSource()

bool graph_analysis::filters::EdgeContextFilter::matchesSource ( graph_analysis::Edge::Ptr  e) const

Use this and associated subfilters, to check if this edge's source vertex is matched by the filter.

Returns
True, if the source vertex of given edge is matched by the filter, false otherwise

◆ matchesTarget()

bool graph_analysis::filters::EdgeContextFilter::matchesTarget ( graph_analysis::Edge::Ptr  e) const

Use this and associated subfilters, to check if this target vertex is matched by the filter.

Returns
True, if the target vertex of given edge is matched by the filter, false otherwise

◆ toString()

virtual std::string graph_analysis::filters::EdgeContextFilter::toString ( ) const
inlinevirtual

Get string representation of filter.

Returns
name by default

Reimplemented in graph_analysis::filters::CombinedEdgeRegexFilter.


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