casa
5.7.0-16
|
#include <VLAFilterSet.h>
Public Member Functions | |
VLAFilterSet () | |
The default constructor creates a filter set that does not contan any filters. More... | |
VLAFilterSet (const VLAFilterSet &other) | |
The copy constructor uses copy semantics. More... | |
virtual | ~VLAFilterSet () |
The destructor is trivial. More... | |
VLAFilterSet & | operator= (const VLAFilterSet &other) |
The assignment operator uses copy semantics. More... | |
void | addFilter (const VLAFilter &filter) |
Adds the specified filter to the set. More... | |
void | removeFilter (const casacore::uInt which) |
Adds the specified filter from the set. More... | |
casacore::uInt | nelements () const |
Returns the number of filters in the set. More... | |
const VLAFilter & | filter (const casacore::uInt which) const |
Returns a reference to the specified filter. More... | |
virtual casacore::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. More... | |
virtual casacore::Bool | ok () const |
casacore::Function which checks the internal data of this class for correct dimensionality and consistant values. More... | |
Private Member Functions | |
void | deleteAllFilters () |
void | copyFilters (const VLAFilterSet &other) |
Private Attributes | |
casacore::PtrBlock< VLAFilter * > | itsFilters |
Public interface
Definition at line 80 of file VLAFilterSet.h.
VLAFilterSet::VLAFilterSet | ( | ) |
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 |
The destructor is trivial.
void VLAFilterSet::addFilter | ( | const VLAFilter & | filter | ) |
Adds the specified filter to the set.
|
private |
|
private |
const VLAFilter& VLAFilterSet::filter | ( | const casacore::uInt | which | ) | const |
Returns a reference to the specified filter.
|
inline |
Returns the number of filters in the set.
Definition at line 129 of file VLAFilterSet.h.
References itsFilters, and casacore::PtrBlock< T >::nelements().
|
virtual |
casacore::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 |
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 casacore::uInt | which | ) |
Adds the specified filter from the set.
Throws an exception if which is not less than the value returned by nelements().
|
private |
Definition at line 126 of file VLAFilterSet.h.
Referenced by nelements().