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

#include <VLASubarrayFilter.h>

Inheritance diagram for VLASubarrayFilter:
VLAFilter

List of all members.

Public Member Functions

 VLASubarrayFilter ()
 The default constructor creats a filter that does not filter anything.
 VLASubarrayFilter (const uInt subArray)
 Creates a filter that filters all records except those with a subarray number that matches the specified value.
 VLASubarrayFilter (const VLASubarrayFilter &other)
 The copy constructor uses copy semantics.
virtual ~VLASubarrayFilter ()
 The destructor is trivial.
VLASubarrayFilteroperator= (const VLASubarrayFilter &other)
 The assignment operator uses copy semantics.
virtual Bool passThru (const VLALogicalRecord &record) const
 returns True if the supplied record has an subarray id that matches the subarray id specified in the constructor.
virtual VLAFilterclone () const
 Return a pointer to a copy of the VLASubarrayFilter object upcast to a VLAFilter object.
virtual Bool ok () const
 Function which checks the internal data of this class for correct dimensionality and consistant values.

Private Attributes

uInt itsArray

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 VLASubarrayFilter.h.


Constructor & Destructor Documentation

The default constructor creats a filter that does not filter anything.

ie., the passThru() function always returns True;

VLASubarrayFilter::VLASubarrayFilter ( const uInt  subArray)

Creates a filter that filters all records except those with a subarray number that matches the specified value.

The specified value must be less than 28 otherwise an exception is thrown (in Debug Mode)

The copy constructor uses copy semantics.

The destructor is trivial.


Member Function Documentation

virtual VLAFilter* VLASubarrayFilter::clone ( ) const [virtual]

Return a pointer to a copy of the VLASubarrayFilter object upcast to a VLAFilter object.

The class that uses this function is responsible for deleting the pointer. This is used to implement a virtual copy constructor.

Implements VLAFilter.

virtual Bool VLASubarrayFilter::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.

Reimplemented from VLAFilter.

VLASubarrayFilter& VLASubarrayFilter::operator= ( const VLASubarrayFilter other)

The assignment operator uses copy semantics.

virtual Bool VLASubarrayFilter::passThru ( const VLALogicalRecord record) const [virtual]

returns True if the supplied record has an subarray id that matches the subarray id specified in the constructor.

Implements VLAFilter.


Member Data Documentation

Definition at line 117 of file VLASubarrayFilter.h.


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