HW-SD  1.0.0
Public Member Functions | List of all members
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.
virtual bool operator() (const hwsd::GPUInfos &current, const hwsd::GPUInfo &candidate)
- Public Member Functions inherited from hwsd::Filter
 Filter ()
 Create a new filter.
virtual ~Filter ()
 Destruct this filter.
FilterPtr operator| (FilterPtr rhs)
 Chain another filter to this one.
FilterPtr operator|= (FilterPtr rhs)
 Chain another filter to this one.
virtual 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::GPUFilter::GPUFilter ( const std::string &  regex)

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: