casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Attributes | Static Private Attributes
casa::MarshButterworthBandpass< T > Class Template Reference

A Butterworth function class that supports serialization. More...

#include <MarshButterworthBandpass.h>

Inheritance diagram for casa::MarshButterworthBandpass< T >:
casa::SimButterworthBandpass< T > casa::FunctionMarshallable casa::Function1D< T > casa::Function< T, T > casa::Functional< FunctionTraits< T >::ArgType, T > casa::Functional< Vector< FunctionTraits< T >::ArgType >, T >

List of all members.

Public Types

enum  FieldNames {
  BPASS,
  ORDER,
  PEAK,
  NFieldNames
}
 definitions of the fields stored in a serialized Record. More...

Public Member Functions

 MarshButterworthBandpass ()
 create a zero-th order (all-pass) Butterworth bandpass.
 MarshButterworthBandpass (uInt minord, uInt maxord, T mincut=T(-1), T maxcut=T(1), T center=T(0), T peak=T(1))
 create a Butterworth bandpass function.
 MarshButterworthBandpass (const Record &gr) throw (InvalidSerializationError)
 create a fully specified Butterworth polynomial from parameters stored in a Record.
 MarshButterworthBandpass (const SimButterworthBandpass< T > &other)
 create a deep copy of another Butterworth polynomial
 MarshButterworthBandpass (const MarshButterworthBandpass< T > &other)
MarshButterworthBandpass< T > & operator= (const MarshButterworthBandpass< T > &other)
 make a (deep) copy of another Butterworth polynomial
MarshButterworthBandpass< T > & operator= (const SimButterworthBandpass< T > &other)
 copy(deep) another Butterworth function
virtual ~MarshButterworthBandpass ()
 Destructor.
virtual void store (Record &gr) const
 store the state of this Function into a Record
virtual Function< T > * clone () const
 Create a copy of this object.

Static Public Attributes

static const String FUNCTYPE
static const String FUNCFIELDS []

Static Private Attributes

static const String modenames []

Detailed Description

template<class T>
class casa::MarshButterworthBandpass< T >

A Butterworth function class that supports serialization.

Intended use:

Public interface

Prerequisite

Etymology

"Marsh" is short for "Marshallable" which means that the class can be serialized into a form that can be transmitted to another execution context. "ButterBandpass" refers to its parent class: SimButterworthBandpass.

Synopsis

This class is a specialization of SimButterworthBandpass class that supports serialization. That is, it allows one to write the state of the SimButterworthBandpass function object into a Record. This record can then be transmitted to another execution context (e.g. or another AIPS++ DO) where it can be "reconstituted" as a new object with identical state as this one. This documentation focusses on this serialization functionality (also known as "marshalling"); for details about the general features of this Butterworth function, see the SimButterworthBandpass class.

Example

Motivation

Making SimButterworthBandpass Marshallable provides a convenient way of configuring the simulator tool from .

Thrown Exceptions

Definition at line 87 of file MarshButterworthBandpass.h.


Member Enumeration Documentation

definitions of the fields stored in a serialized Record.

The actual string names are stored in FUNCFIELDS

Enumerator:
BPASS 

the minimum cutoff, center, and maximum cutoff values

ORDER 

the orders of the transitions between pass and no-pass

PEAK 

the peak value

NFieldNames 

the number of supported fields

Definition at line 99 of file MarshButterworthBandpass.h.


Constructor & Destructor Documentation

template<class T>
casa::MarshButterworthBandpass< T >::MarshButterworthBandpass ( ) [inline]

create a zero-th order (all-pass) Butterworth bandpass.

Definition at line 112 of file MarshButterworthBandpass.h.

template<class T>
casa::MarshButterworthBandpass< T >::MarshButterworthBandpass ( uInt  minord,
uInt  maxord,
mincut = T(-1),
maxcut = T(1),
center = T(0),
peak = T(1) 
) [inline]

create a Butterworth bandpass function.

Definition at line 116 of file MarshButterworthBandpass.h.

template<class T>
casa::MarshButterworthBandpass< T >::MarshButterworthBandpass ( const Record gr) throw (InvalidSerializationError) [explicit]

create a fully specified Butterworth polynomial from parameters stored in a Record.

template<class T>
casa::MarshButterworthBandpass< T >::MarshButterworthBandpass ( const SimButterworthBandpass< T > &  other) [inline]

create a deep copy of another Butterworth polynomial

Definition at line 131 of file MarshButterworthBandpass.h.

template<class T>
casa::MarshButterworthBandpass< T >::MarshButterworthBandpass ( const MarshButterworthBandpass< T > &  other) [inline]

Definition at line 133 of file MarshButterworthBandpass.h.

template<class T>
virtual casa::MarshButterworthBandpass< T >::~MarshButterworthBandpass ( ) [inline, virtual]

Destructor.

Definition at line 155 of file MarshButterworthBandpass.h.


Member Function Documentation

template<class T>
virtual Function<T>* casa::MarshButterworthBandpass< T >::clone ( ) const [inline, virtual]

Create a copy of this object.

The caller is responsible for deleting the pointer.

Reimplemented from casa::SimButterworthBandpass< T >.

Definition at line 162 of file MarshButterworthBandpass.h.

template<class T>
MarshButterworthBandpass<T>& casa::MarshButterworthBandpass< T >::operator= ( const MarshButterworthBandpass< T > &  other) [inline]

make a (deep) copy of another Butterworth polynomial

Definition at line 139 of file MarshButterworthBandpass.h.

Referenced by casa::MarshButterworthBandpass< T >::operator=().

template<class T>
MarshButterworthBandpass<T>& casa::MarshButterworthBandpass< T >::operator= ( const SimButterworthBandpass< T > &  other) [inline]

copy(deep) another Butterworth function

Reimplemented from casa::SimButterworthBandpass< T >.

Definition at line 146 of file MarshButterworthBandpass.h.

References casa::MarshButterworthBandpass< T >::operator=().

template<class T>
virtual void casa::MarshButterworthBandpass< T >::store ( Record gr) const [virtual]

store the state of this Function into a Record

Implements casa::FunctionMarshallable.


Member Data Documentation

template<class T>
const String casa::MarshButterworthBandpass< T >::FUNCFIELDS[] [static]

Definition at line 95 of file MarshButterworthBandpass.h.

template<class T>
const String casa::MarshButterworthBandpass< T >::FUNCTYPE [static]

Definition at line 94 of file MarshButterworthBandpass.h.

template<class T>
const String casa::MarshButterworthBandpass< T >::modenames[] [static, private]

Definition at line 91 of file MarshButterworthBandpass.h.


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