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

Parameter handling for one dimensional unary function. More...

#include <UnaryParam.h>

Inheritance diagram for casa::UnaryParam< T >:
casa::Function< T > casa::Functional< FunctionTraits< T >::ArgType, T > casa::Functional< Vector< FunctionTraits< T >::ArgType >, T > casa::UnaryFunction< T >

List of all members.

Public Types

enum  {
  HEIGHT,
  CENTER,
  WIDTH
}
 Parameter numbers. More...

Public Member Functions

 UnaryParam ()
 Constructs the Unary, Defaults: height=1, center=0, width=1.
 UnaryParam (const T &height)
 UnaryParam (const T &height, const T &center)
 UnaryParam (const T &height, const T &center, const T &width)
 UnaryParam (const UnaryParam< T > &other)
 Copy constructor (deep copy)
template<class W >
 UnaryParam (const UnaryParam< W > &other)
UnaryParam< T > & operator= (const UnaryParam< T > &other)
 Copy assignment (deep copy)
virtual ~UnaryParam ()
 Destructor.
virtual uInt ndim () const
 Returns the number of dimensions of function.
virtual const Stringname () const
 Give name of function.

Detailed Description

template<class T>
class casa::UnaryParam< T >

Parameter handling for one dimensional unary function.

Intended use:

Internal

Review Status

Test programs:
tFunctionHolder

Prerequisite

Etymology

A 1-dimensional unary hat.

Synopsis

A Unary is described by a height, a center and a width (halfwidth). The value is:

         height          (|x-center| <  width)
      0.5height          (|x-center| == width)
         0               (|x-center| >  width)

The parameters are enumerated by HEIGHT, CENTER and WIDTH. They have default values of (1, 0, 1).

Example

       UnaryFunction<Double> sf(5.0, 25.0, 7);
       sf(25);            // = 5.0

Template Type Argument Requirements (T)

Thrown Exceptions

Definition at line 85 of file UnaryParam.h.


Member Enumeration Documentation

template<class T>
anonymous enum

Parameter numbers.

Enumerator:
HEIGHT 
CENTER 
WIDTH 

Definition at line 90 of file UnaryParam.h.


Constructor & Destructor Documentation

template<class T>
casa::UnaryParam< T >::UnaryParam ( )

Constructs the Unary, Defaults: height=1, center=0, width=1.


Warning: Could not use default arguments that worked both with gcc and IRIX

template<class T>
casa::UnaryParam< T >::UnaryParam ( const T &  height) [explicit]
template<class T>
casa::UnaryParam< T >::UnaryParam ( const T &  height,
const T &  center 
)
template<class T>
casa::UnaryParam< T >::UnaryParam ( const T &  height,
const T &  center,
const T &  width 
)
template<class T>
casa::UnaryParam< T >::UnaryParam ( const UnaryParam< T > &  other)

Copy constructor (deep copy)

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

Definition at line 108 of file UnaryParam.h.

template<class T>
virtual casa::UnaryParam< T >::~UnaryParam ( ) [virtual]

Destructor.


Member Function Documentation

template<class T>
virtual const String& casa::UnaryParam< T >::name ( ) const [inline, virtual]

Give name of function.

Reimplemented from casa::Function< T >.

Definition at line 123 of file UnaryParam.h.

template<class T>
virtual uInt casa::UnaryParam< T >::ndim ( ) const [inline, virtual]

Returns the number of dimensions of function.

Implements casa::Function< T >.

Definition at line 119 of file UnaryParam.h.

template<class T>
UnaryParam<T>& casa::UnaryParam< T >::operator= ( const UnaryParam< T > &  other)

Copy assignment (deep copy)


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