Click
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CastElementFilter Class Reference

Cast-based filter predicate for elements. More...

Inheritance diagram for CastElementFilter:
ElementFilter

Public Member Functions

 CastElementFilter (const String &name)
 Construct a CastElementFilter.
 
bool check_match (Element *e, bool isoutput, int port)
 Determine whether an element matches this filter.
 
- Public Member Functions inherited from ElementFilter
 ElementFilter ()
 Construct an ElementFilter.
 
virtual ~ElementFilter ()
 Destroy an ElementFilter.
 
void filter (Vector< Element * > &es)
 Remove all non-matching elements from es.
 

Detailed Description

Cast-based filter predicate for elements.

Deprecated:
This class is deprecated. Use ElementCastTracker instead.

This ElementFilter type matches elements that match a given cast type. The constructor's string is passed to Element::cast(); the filter matches an element iff the result is non-null.

Constructor & Destructor Documentation

◆ CastElementFilter()

CastElementFilter::CastElementFilter ( const String &  name)

Construct a CastElementFilter.

Parameters
namecast name of matching elements

Member Function Documentation

◆ check_match()

bool CastElementFilter::check_match ( Element *  e,
bool  isoutput,
int  port 
)
virtual

Determine whether an element matches this filter.

Parameters
eelement
isoutputignored
portignored
Returns
True iff e->cast(name) != NULL, where name is the cast name passed to the constructor.

Reimplemented from ElementFilter.


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