casa
$Rev:20696$
|
#include <VLAFilterSet.h>
Public Member Functions | |
VLAFilterSet () | |
The default constructor creates a filter set that does not contan any filters. | |
VLAFilterSet (const VLAFilterSet &other) | |
The copy constructor uses copy semantics. | |
virtual | ~VLAFilterSet () |
The destructor is trivial. | |
VLAFilterSet & | operator= (const VLAFilterSet &other) |
The assignment operator uses copy semantics. | |
void | addFilter (const VLAFilter &filter) |
Adds the specified filter to the set. | |
void | removeFilter (const uInt which) |
Adds the specified filter from the set. | |
uInt | nelements () const |
Returns the number of filters in the set. | |
const VLAFilter & | filter (const uInt which) const |
Returns a reference to the specified filter. | |
virtual Bool | passThru (const VLALogicalRecord &record) const |
returns True if the supplied record meets the filter criteria for all the filters that are contained within in this filter set. | |
virtual Bool | ok () const |
Function which checks the internal data of this class for correct dimensionality and consistant values. | |
Private Member Functions | |
void | deleteAllFilters () |
void | copyFilters (const VLAFilterSet &other) |
Private Attributes | |
PtrBlock< VLAFilter * > | itsFilters |
Public interface
<h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl>
Definition at line 80 of file VLAFilterSet.h.
The default constructor creates a filter set that does not contan any filters.
Using the passThru function without any filters always returns True;
VLAFilterSet::VLAFilterSet | ( | const VLAFilterSet & | other | ) |
The copy constructor uses copy semantics.
virtual VLAFilterSet::~VLAFilterSet | ( | ) | [virtual] |
The destructor is trivial.
void VLAFilterSet::addFilter | ( | const VLAFilter & | filter | ) |
Adds the specified filter to the set.
void VLAFilterSet::copyFilters | ( | const VLAFilterSet & | other | ) | [private] |
void VLAFilterSet::deleteAllFilters | ( | ) | [private] |
const VLAFilter& VLAFilterSet::filter | ( | const uInt | which | ) | const |
Returns a reference to the specified filter.
uInt VLAFilterSet::nelements | ( | ) | const [inline] |
Returns the number of filters in the set.
Definition at line 129 of file VLAFilterSet.h.
References itsFilters.
virtual Bool VLAFilterSet::ok | ( | ) | const [virtual] |
Function which checks the internal data of this class for correct dimensionality and consistant values.
Returns True if everything is fine otherwise returns False.
VLAFilterSet& VLAFilterSet::operator= | ( | const VLAFilterSet & | other | ) |
The assignment operator uses copy semantics.
virtual Bool VLAFilterSet::passThru | ( | const VLALogicalRecord & | record | ) | const [virtual] |
returns True if the supplied record meets the filter criteria for all the filters that are contained within in this filter set.
Also returns True if there are no filters in the set.
void VLAFilterSet::removeFilter | ( | const uInt | which | ) |
Adds the specified filter from the set.
Throws an exception if which is not less than the value returned by nelements().
PtrBlock<VLAFilter*> VLAFilterSet::itsFilters [private] |
Definition at line 126 of file VLAFilterSet.h.
Referenced by nelements().