hwsd  1.1.1
 All Classes Files Functions Variables Enumerations Enumerator Pages
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

HWSD_API Filter ()
 Create a new filter. More...
 
virtual HWSD_API ~Filter ()
 Destruct this filter. More...
 
HWSD_API FilterPtr operator| (FilterPtr rhs)
 Chain another filter to this one. More...
 
HWSD_API FilterPtr operator|= (FilterPtr rhs)
 Chain another filter to this one. More...
 
virtual HWSD_API bool operator() (const GPUInfos &current, const GPUInfo &candidate)
 Call all chained operators. More...
 
virtual HWSD_API 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_API hwsd::Filter::Filter ( )

Create a new filter.

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

Destruct this filter.

Version
1.0

Member Function Documentation

virtual HWSD_API 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.

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

Chain another filter to this one.

Invoking the operator() will call chained filters.

Version
1.0
HWSD_API 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: