GPU-SD  1.0.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

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 36 of file filter.h.


Constructor & Destructor Documentation

gpusd::Filter::Filter ( )

Create a new filter.

Version:
1.0

Definition at line 39 of file filter.cpp.

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

Destruct this filter.

Version:
1.0

Definition at line 40 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 42 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 54 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 60 of file filter.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 2011 10:47:45 for GPU-SD 1.0.0 by  doxygen 1.7.5.1