HW-SD  1.0.0
Public Member Functions | List of all members
hwsd::Filter Class Reference

Base class for all discovery filters. More...

#include <filter.h>

+ Inheritance diagram for hwsd::Filter:
+ Collaboration diagram for hwsd::Filter:

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.
virtual bool operator() (const NetInfos &current, const NetInfo &candidate)

Detailed Description

Base class for all discovery filters.

Definition at line 37 of file filter.h.

Constructor & Destructor Documentation

hwsd::Filter::Filter ( )

Create a new filter.

Version
1.0
virtual hwsd::Filter::~Filter ( )
virtual

Destruct this filter.

Version
1.0

Member Function Documentation

virtual bool hwsd::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 hwsd::GPUFilter, hwsd::SessionFilter, hwsd::MirrorFilter, and hwsd::DuplicateFilter.

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

Chain another filter to this one.

Invoking the operator() will call chained filters.

Version
1.0
FilterPtr hwsd::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: