hwsd
1.2.1
Local and remote ZeroConf service discovery for hardware resources.
|
Base class for all discovery filters. More...
#include <filter.h>
Public Member Functions | |
HWSD_API | Filter () |
Create a new filter. More... | |
virtual HWSD_API | ~Filter () |
Destruct this filter. More... | |
HWSD_API FilterPtr | operator| (FilterPtr rhs) |
Chain another filter to this one. More... | |
HWSD_API FilterPtr | operator|= (FilterPtr rhs) |
Chain another filter to this one. More... | |
virtual HWSD_API bool | operator() (const GPUInfos ¤t, const GPUInfo &candidate) |
Call all chained operators. More... | |
virtual HWSD_API bool | operator() (const NetInfos ¤t, const NetInfo &candidate) |
HWSD_API 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.
HWSD_API FilterPtr hwsd::Filter::operator| | ( | FilterPtr | rhs | ) |
Chain another filter to this one.
Invoking the operator() will call chained filters.
HWSD_API FilterPtr hwsd::Filter::operator|= | ( | FilterPtr | rhs | ) |
Chain another filter to this one.
Invoking the operator() will call chained filters.