GPU-SD  1.4.0
Public Member Functions
gpusd::Filter Class Reference

Base class for all discovery filters. More...

#include <filter.h>

+ Inheritance diagram for gpusd::Filter:

List of all members.

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 &current, const GPUInfo &candidate)
 Call all chained operators.

Detailed Description

Base class for all discovery filters.

Definition at line 34 of file filter.h.


Constructor & Destructor Documentation

Create a new filter.

Version:
1.0
virtual gpusd::Filter::~Filter ( ) [virtual]

Destruct this filter.

Version:
1.0

Member Function Documentation

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.

Parameters:
currentthe list of passed GPU informations.
candidatethe new GPU information to test.
Returns:
true if all chained operators returned true, false otherwise.
Version:
1.0

Reimplemented in gpusd::SessionFilter, gpusd::MirrorFilter, and gpusd::DuplicateFilter.

FilterPtr gpusd::Filter::operator| ( FilterPtr  rhs)

Chain another filter to this one.

Invoking the operator() will call chained filters.

Version:
1.0
FilterPtr gpusd::Filter::operator|= ( FilterPtr  rhs)

Chain another filter to this one.

Invoking the operator() will call chained filters.

Version:
1.0

The documentation for this class was generated from the following file:
Generated on Mon Jul 16 2012 11:27:39 for GPU-SD 1.4.0 by  doxygen 1.7.6.1