GPU-SD  1.1.2
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

GPUSD_API Filter ()
 Create a new filter.
virtual GPUSD_API ~Filter ()
 Destruct this filter.
GPUSD_API FilterPtr operator| (FilterPtr rhs)
 Chain another filter to this one.
GPUSD_API FilterPtr operator|= (FilterPtr rhs)
 Chain another filter to this one.
virtual GPUSD_API 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

Definition at line 41 of file filter.cpp.

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

Destruct this filter.

Version:
1.0

Definition at line 42 of file filter.cpp.


Member Function Documentation

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.

Definition at line 44 of file filter.cpp.

Referenced by gpusd::SessionFilter::operator()().

+ Here is the caller graph for this function:

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

Chain another filter to this one.

Invoking the operator() will call chained filters.

Version:
1.0

Definition at line 55 of file filter.cpp.

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

Chain another filter to this one.

Invoking the operator() will call chained filters.

Version:
1.0

Definition at line 61 of file filter.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Jun 14 2012 07:53:07 for GPU-SD 1.1.2 by  doxygen 1.8.0