hwsd
1.4.0
Local and remote ZeroConf service discovery for hardware resources
|
Filters for a specific GPU regex. More...
#include <filter.h>
Public Member Functions | |
GPUFilter (const std::string ®ex) | |
Matches the GPU agaings the given regex. More... | |
virtual bool | operator() (const hwsd::GPUInfos ¤t, const hwsd::GPUInfo &candidate) |
Public Member Functions inherited from hwsd::Filter | |
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 NetInfos ¤t, const NetInfo &candidate) |
|
explicit |
Matches the GPU agaings the given regex.
An empty regex matches all GPUs.
|
virtual |