casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
VLAFilterSet Class Reference

More...

#include <VLAFilterSet.h>

List of all members.

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.
VLAFilterSetoperator= (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 VLAFilterfilter (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

Detailed Description

Intended use:

Public interface

 <h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl> 

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Definition at line 80 of file VLAFilterSet.h.


Constructor & Destructor Documentation

The default constructor creates a filter set that does not contan any filters.

Using the passThru function without any filters always returns True;

The copy constructor uses copy semantics.

virtual VLAFilterSet::~VLAFilterSet ( ) [virtual]

The destructor is trivial.


Member Function Documentation

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().


Member Data Documentation

PtrBlock<VLAFilter*> VLAFilterSet::itsFilters [private]

Definition at line 126 of file VLAFilterSet.h.

Referenced by nelements().


The documentation for this class was generated from the following file: