hwsd  1.3.1
Local and remote ZeroConf service discovery for hardware resources
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. More...
 
virtual ~Filter ()
 Destruct this filter. More...
 
FilterPtr operator| (FilterPtr rhs)
 Chain another filter to this one. More...
 
FilterPtr operator|= (FilterPtr rhs)
 Chain another filter to this one. More...
 
virtual bool operator() (const GPUInfos &current, const GPUInfo &candidate)
 Call all chained operators. More...
 
virtual bool operator() (const NetInfos &current, const NetInfo &candidate)
 

Detailed Description

Base class for all discovery filters.

Definition at line 38 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: