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

This LEL class holds an array with a mask. More...

#include <LELArray.h>

Inheritance diagram for casa::LELArray< T >:
casa::LELArrayBase casa::LELArrayRef< T >

List of all members.

Public Member Functions

 LELArray (const Array< T > &value)
 Constructor takes value.
 LELArray (const Array< T > &value, const Array< Bool > &mask)
 Constructor takes value and mask.
 LELArray (const IPosition &shape)
 Constructor takes shape.
 LELArray (const LELArray< T > &other)
 Copy constructor (reference semantics).
 ~LELArray ()
LELArray< T > & operator= (const LELArray< T > &other)
 Assignment (reference semantics).
const IPositionshape () const
 Get shape (of the value).
const Array< T > & value () const
 Get value.
Array< T > & value ()

Private Attributes

Array< T > itsValue
 
 


Detailed Description

template<class T>
class casa::LELArray< T >

This LEL class holds an array with a mask.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Synopsis

This LEL class holds an array with a mask. The mask can be a single Bool valid for all elements of the array. Otherwise it is a full mask with the same shape as the array.

Motivation

It makes it possible to handle an array with its mask as a single object.

Definition at line 61 of file LELArray.h.


Constructor & Destructor Documentation

template<class T>
casa::LELArray< T >::LELArray ( const Array< T > &  value) [inline]

Constructor takes value.

Its mask is set to all True.

Definition at line 66 of file LELArray.h.

template<class T>
casa::LELArray< T >::LELArray ( const Array< T > &  value,
const Array< Bool > &  mask 
) [inline]

Constructor takes value and mask.

Definition at line 70 of file LELArray.h.

template<class T>
casa::LELArray< T >::LELArray ( const IPosition shape)

Constructor takes shape.

Its mask is set to all True.

template<class T>
casa::LELArray< T >::LELArray ( const LELArray< T > &  other)

Copy constructor (reference semantics).

template<class T>
casa::LELArray< T >::~LELArray ( )

Member Function Documentation

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

Assignment (reference semantics).

template<class T>
const IPosition& casa::LELArray< T >::shape ( ) const [inline]

Get shape (of the value).

Definition at line 86 of file LELArray.h.

template<class T>
const Array<T>& casa::LELArray< T >::value ( ) const [inline]

Get value.

Reimplemented in casa::LELArrayRef< T >.

Definition at line 91 of file LELArray.h.

template<class T>
Array<T>& casa::LELArray< T >::value ( ) [inline]

Definition at line 93 of file LELArray.h.


Member Data Documentation

template<class T>
Array<T> casa::LELArray< T >::itsValue [private]

 

Definition at line 98 of file LELArray.h.

Referenced by casa::LELArray< Bool >::shape(), and casa::LELArray< Bool >::value().


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