VLAFilterSet.h

Classes

VLAFilterSet -- (full description)

class VLAFilterSet

Interface

Public Members
VLAFilterSet()
VLAFilterSet(const VLAFilterSet& other)
virtual ~VLAFilterSet()
VLAFilterSet& operator=(const VLAFilterSet& other)
void addFilter(const VLAFilter& filter)
void removeFilter(const uInt which)
uInt nelements() const
const VLAFilter& filter(const uInt which) const
virtual Bool passThru(const VLALogicalRecord& record) const
virtual Bool ok() const
Private Members
void deleteAllFilters()
void copyFilters(const VLAFilterSet& other)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Member Description

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(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. Throws an exception if which is not less than the value returned by nelements().

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. Also returns True if there are no filters in the set.

virtual Bool ok() const

Function which checks the internal data of this class for correct dimensionality and consistant values. Returns True if everything is fine otherwise returns False.

void deleteAllFilters()

void copyFilters(const VLAFilterSet& other)