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

#include <RegexFilters.hpp>

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

Public Member Functions

 CombinedEdgeRegexFilter (VertexRegexFilter sourceNodeFilter, EdgeRegexFilter edgeFilter, VertexRegexFilter targetNodeFilter)
 
virtual ~CombinedEdgeRegexFilter ()
 
virtual std::string getName () const
 Get Name of the filter. More...
 
virtual std::string toString () const
 Get string representation of filter. More...
 
virtual bool evaluateSource (graph_analysis::Edge::Ptr e) const
 Evaluated the source vertex of the edge. More...
 
virtual bool evaluateTarget (graph_analysis::Edge::Ptr e) const
 Evaluated the target of the edge. More...
 
- Public Member Functions inherited from graph_analysis::filters::EdgeContextFilter
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...
 
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

- Public Types inherited from graph_analysis::filters::EdgeContextFilter
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
 
- 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
 

Constructor & Destructor Documentation

◆ CombinedEdgeRegexFilter()

graph_analysis::filters::CombinedEdgeRegexFilter::CombinedEdgeRegexFilter ( VertexRegexFilter  sourceNodeFilter,
EdgeRegexFilter  edgeFilter,
VertexRegexFilter  targetNodeFilter 
)

◆ ~CombinedEdgeRegexFilter()

graph_analysis::filters::CombinedEdgeRegexFilter::~CombinedEdgeRegexFilter ( )
virtual

Member Function Documentation

◆ evaluateSource()

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

Evaluated the source vertex of the edge.

Returns
True if it should be filtered, false otherwise

Reimplemented from graph_analysis::filters::EdgeContextFilter.

◆ evaluateTarget()

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

Evaluated the target of the edge.

Returns
True if it should be permitted, false otherwise

Reimplemented from graph_analysis::filters::EdgeContextFilter.

◆ getName()

std::string graph_analysis::filters::CombinedEdgeRegexFilter::getName ( ) const
virtual

Get Name of the filter.

Returns
name of the filter

Reimplemented from graph_analysis::filters::EdgeContextFilter.

◆ toString()

std::string graph_analysis::filters::CombinedEdgeRegexFilter::toString ( ) const
virtual

Get string representation of filter.

Returns
name by default

Reimplemented from graph_analysis::filters::EdgeContextFilter.


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