|
Click
|
Cast-based filter predicate for elements. More...
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. | |
Cast-based filter predicate for elements.
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.
| CastElementFilter::CastElementFilter | ( | const String & | name | ) |
Construct a CastElementFilter.
| name | cast name of matching elements |
|
virtual |
Determine whether an element matches this filter.
| e | element |
| isoutput | ignored |
| port | ignored |
Reimplemented from ElementFilter.