casacore
|
This LEL class holds a possible referenced array with a mask. More...
#include <LELArray.h>
Public Member Functions | |
LELArrayRef (const IPosition &shape) | |
Constructor takes shape. More... | |
~LELArrayRef () | |
const Array< T > & | value () const |
Get value. More... | |
![]() | |
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 IPosition & | shape () const |
Get shape (of the value). More... | |
const Array< T > & | value () const |
Get value. More... | |
Array< T > & | value () |
Private Member Functions | |
LELArrayRef (const LELArrayRef< T > &other) | |
Copy constructor is not needed. More... | |
LELArrayRef< T > & | operator= (const LELArrayRef< T > &other) |
Assignment is not needed. More... | |
This LEL class holds a possible referenced array with a mask.
Internal
This LEL class is derived from LELArray. Its purpose is to provide only const access to the array value, so the array can be a reference to another array. It is meant for optimization, so references can safely be used when evaluating a subexpression.
It makes it possible to use the function evalRef in a safe way. It would be unsafe to use a LELArray object, because that gives non-const access to the value.
Definition at line 132 of file LELArray.h.
|
inline |
|
inline |
Definition at line 140 of file LELArray.h.
|
private |
Copy constructor is not needed.
|
private |
Assignment is not needed.
|
inline |