hwsd  1.3.1
Local and remote ZeroConf service discovery for hardware resources
hwsd::GPUFilter Class Reference

Filters for a specific GPU regex. More...

#include <filter.h>

+ Inheritance diagram for hwsd::GPUFilter:
+ Collaboration diagram for hwsd::GPUFilter:

Public Member Functions

 GPUFilter (const std::string &regex)
 Matches the GPU agaings the given regex. More...
 
virtual bool operator() (const hwsd::GPUInfos &current, 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 &current, const NetInfo &candidate)
 

Detailed Description

Filters for a specific GPU regex.

Definition at line 138 of file filter.h.

Constructor & Destructor Documentation

hwsd::GPUFilter::GPUFilter ( const std::string &  regex)
explicit

Matches the GPU agaings the given regex.

An empty regex matches all GPUs.

Member Function Documentation

virtual bool hwsd::GPUFilter::operator() ( const hwsd::GPUInfos &  current,
const hwsd::GPUInfo candidate 
)
virtual
Returns
true of the regex matches 'nodename:port.device'
Version
1.0

Reimplemented from hwsd::Filter.


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