hwsd
1.3.1
Local and remote ZeroConf service discovery for hardware resources
|
Base class for all discovery filters. More...
#include <filter.h>
Public Member Functions | |
Filter () | |
Create a new filter. More... | |
virtual | ~Filter () |
Destruct this filter. More... | |
FilterPtr | operator| (FilterPtr rhs) |
Chain another filter to this one. More... | |
FilterPtr | operator|= (FilterPtr rhs) |
Chain another filter to this one. More... | |
virtual bool | operator() (const GPUInfos ¤t, const GPUInfo &candidate) |
Call all chained operators. More... | |
virtual bool | operator() (const NetInfos ¤t, const NetInfo &candidate) |
hwsd::Filter::Filter | ( | ) |
Create a new filter.
|
virtual |
Destruct this filter.
|
virtual |
Call all chained operators.
Filter implementations overwrite this method to implement the filtering and call this base class implementation if the candidate passed.
current | the list of passed GPU informations. |
candidate | the new GPU information to test. |
Reimplemented in hwsd::GPUFilter, hwsd::SessionFilter, hwsd::MirrorFilter, and hwsd::DuplicateFilter.
FilterPtr hwsd::Filter::operator| | ( | FilterPtr | rhs | ) |
Chain another filter to this one.
Invoking the operator() will call chained filters.
FilterPtr hwsd::Filter::operator|= | ( | FilterPtr | rhs | ) |
Chain another filter to this one.
Invoking the operator() will call chained filters.