hwsd  1.1.1
 All Classes Files Functions Variables Enumerations Enumerator Pages
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

HWSD_API GPUFilter (const std::string &regex)
 Matches the GPU agaings the given regex. More...
 
virtual HWSD_API bool operator() (const hwsd::GPUInfos &current, const hwsd::GPUInfo &candidate)
 
- Public Member Functions inherited from hwsd::Filter
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 NetInfos &current, const NetInfo &candidate)
 

Detailed Description

Filters for a specific GPU regex.

Definition at line 141 of file filter.h.

Constructor & Destructor Documentation

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

Matches the GPU agaings the given regex.

An empty regex matches all GPUs.

Member Function Documentation

virtual HWSD_API 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: