casa
$Rev:20696$
|
This LEL class holds an array with a mask. More...
#include <LELArray.h>
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 IPosition & | shape () const |
Get shape (of the value). | |
const Array< T > & | value () const |
Get value. | |
Array< T > & | value () |
Private Attributes | |
Array< T > | itsValue |
This LEL class holds an array with a mask.
Internal
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.
It makes it possible to handle an array with its mask as a single object.
Definition at line 61 of file LELArray.h.
casa::LELArray< T >::LELArray | ( | const Array< T > & | value | ) | [inline] |
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.
casa::LELArray< T >::LELArray | ( | const IPosition & | shape | ) |
Constructor takes shape.
Its mask is set to all True.
casa::LELArray< T >::LELArray | ( | const LELArray< T > & | other | ) |
Copy constructor (reference semantics).
casa::LELArray< T >::~LELArray | ( | ) |
LELArray<T>& casa::LELArray< T >::operator= | ( | const LELArray< T > & | other | ) |
Assignment (reference semantics).
const IPosition& casa::LELArray< T >::shape | ( | ) | const [inline] |
Get shape (of the value).
Definition at line 86 of file LELArray.h.
const Array<T>& casa::LELArray< T >::value | ( | ) | const [inline] |
Array<T>& casa::LELArray< T >::value | ( | ) | [inline] |
Definition at line 93 of file LELArray.h.
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().