graph_analysis
Public Member Functions | Protected Attributes | List of all members
graph_analysis::filters::RegexFilter< T > Class Template Reference

#include <RegexFilters.hpp>

Inheritance diagram for graph_analysis::filters::RegexFilter< T >:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::filters::RegexFilter< T >:
Collaboration graph
[legend]

Public Member Functions

 RegexFilter (const std::string &regex, Type type, bool invert)
 
virtual std::string getName () const
 
virtual std::string toString () const
 
virtual bool apply (T element) const
 Apply only the main filter(!) to the target object. More...
 
- Public Member Functions inherited from graph_analysis::Filter< T >
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 (T 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...
 

Protected Attributes

std::string mRegexStr
 
std::regex mRegex
 
Type mType
 
bool mInverted
 
- Protected Attributes inherited from graph_analysis::Filter< T >
FilterList mFilters
 

Additional Inherited Members

- Public Types inherited from graph_analysis::Filter< T >
typedef Filter< T > FilterType
 
typedef shared_ptr< FilterType > Ptr
 
typedef std::vector< FilterType::Ptr > FilterList
 
- Static Public Member Functions inherited from graph_analysis::Filter< T >
static Ptr Null ()
 

Detailed Description

template<typename T>
class graph_analysis::filters::RegexFilter< T >

RegexFilter provides the basic functionality to match Vertex or Edge content or class labels using a regular expression

Constructor & Destructor Documentation

◆ RegexFilter()

template<typename T >
graph_analysis::filters::RegexFilter< T >::RegexFilter ( const std::string &  regex,
Type  type,
bool  invert 
)
inline

Member Function Documentation

◆ apply()

template<typename T >
virtual bool graph_analysis::filters::RegexFilter< T >::apply ( T  o) const
inlinevirtual

Apply only the main filter(!) to the target object.

Parameters
oFilter object, i.e. target object to apply the filter on
Returns
True, if the main filter matches the target/filter object, false otherwise

Reimplemented from graph_analysis::Filter< T >.

◆ getName()

template<typename T >
virtual std::string graph_analysis::filters::RegexFilter< T >::getName ( ) const
inlinevirtual

◆ toString()

template<typename T >
virtual std::string graph_analysis::filters::RegexFilter< T >::toString ( ) const
inlinevirtual

Member Data Documentation

◆ mInverted

template<typename T >
bool graph_analysis::filters::RegexFilter< T >::mInverted
protected

◆ mRegex

template<typename T >
std::regex graph_analysis::filters::RegexFilter< T >::mRegex
protected

◆ mRegexStr

template<typename T >
std::string graph_analysis::filters::RegexFilter< T >::mRegexStr
protected

◆ mType

template<typename T >
Type graph_analysis::filters::RegexFilter< T >::mType
protected

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