INET Framework for OMNeT++/OMNEST
inet::visualizer::InterfaceFilter Class Reference

This class provides a generic filter for interfaces. More...

#include <InterfaceFilter.h>

Public Member Functions

void setPattern (const char *pattern)
 
bool matches (const InterfaceEntry *interfaceEntry) const
 

Protected Attributes

cMatchExpression matchExpression
 

Detailed Description

This class provides a generic filter for interfaces.

The filter is expressed as a pattern using the cMatchExpression format.

Member Function Documentation

bool inet::visualizer::InterfaceFilter::matches ( const InterfaceEntry interfaceEntry) const

Referenced by inet::visualizer::InterfaceTableVisualizerBase::addAllInterfaceVisualizations(), inet::visualizer::MediumVisualizerBase::matchesTransmission(), inet::visualizer::InterfaceTableVisualizerBase::receiveSignal(), and inet::visualizer::LinkVisualizerBase::receiveSignal().

30 {
31  MatchableObject matchableObject(MatchableObject::ATTRIBUTE_FULLNAME, interfaceEntry);
32  // TODO: eliminate const_cast when cMatchExpression::matches becomes const
33  return const_cast<InterfaceFilter *>(this)->matchExpression.matches(&matchableObject);
34 }
cMatchExpression matchExpression
Definition: InterfaceFilter.h:35
Definition: MatchableObject.h:32

Member Data Documentation

cMatchExpression inet::visualizer::InterfaceFilter::matchExpression
protected

Referenced by matches(), and setPattern().


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