GPU-SD
1.4.0
|
Base class for all discovery filters. More...
#include <filter.h>
Public Member Functions | |
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 GPUInfos ¤t, const GPUInfo &candidate) |
Call all chained operators. |
Create a new filter.
virtual gpusd::Filter::~Filter | ( | ) | [virtual] |
Destruct this filter.
virtual bool gpusd::Filter::operator() | ( | const GPUInfos & | current, |
const GPUInfo & | candidate | ||
) | [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 gpusd::SessionFilter, gpusd::MirrorFilter, and gpusd::DuplicateFilter.
Chain another filter to this one.
Invoking the operator() will call chained filters.
Chain another filter to this one.
Invoking the operator() will call chained filters.