casacore
Public Member Functions | Private Attributes | List of all members
casacore::LELArray< T > Class Template Reference

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

#include <LatticeExpr.h>

Public Member Functions

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

Private Attributes

Array< T > itsValue
 

Detailed Description

template<class T>
class casacore::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 43 of file LatticeExpr.h.

Constructor & Destructor Documentation

◆ LELArray() [1/4]

template<class T >
casacore::LELArray< T >::LELArray ( const Array< T > &  value)
inline

Constructor takes value.

Its mask is set to all True.

Definition at line 67 of file LELArray.h.

◆ LELArray() [2/4]

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

Constructor takes value and mask.

Definition at line 71 of file LELArray.h.

◆ LELArray() [3/4]

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

Constructor takes shape.

Its mask is set to all True.

◆ LELArray() [4/4]

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

Copy constructor (reference semantics).

◆ ~LELArray()

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

Member Function Documentation

◆ operator=()

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

Assignment (reference semantics).

◆ shape()

template<class T >
const IPosition& casacore::LELArray< T >::shape ( ) const
inline

Get shape (of the value).

Definition at line 87 of file LELArray.h.

◆ value() [1/2]

template<class T >
Array<T>& casacore::LELArray< T >::value ( )
inline

Definition at line 94 of file LELArray.h.

◆ value() [2/2]

template<class T >
const Array<T>& casacore::LELArray< T >::value ( ) const
inline

Get value.

Definition at line 92 of file LELArray.h.

Referenced by casacore::LELArrayRef< T >::value().

Member Data Documentation

◆ itsValue

template<class T >
Array<T> casacore::LELArray< T >::itsValue
private

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