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

This LEL class holds a possible referenced array with a mask. More...

#include <LELArray.h>

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

List of all members.

Public Member Functions

 LELArrayRef (const IPosition &shape)
 Constructor takes shape.
 ~LELArrayRef ()
const Array< T > & value () const
 Get value.

Private Member Functions

 LELArrayRef (const LELArrayRef< T > &other)
 Copy constructor is not needed.
LELArrayRef< T > & operator= (const LELArrayRef< T > &other)
 Assignment is not needed.

Detailed Description

template<class T>
class casa::LELArrayRef< T >

This LEL class holds a possible referenced array with a mask.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Synopsis

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.

Motivation

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 131 of file LELArray.h.


Constructor & Destructor Documentation

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

Constructor takes shape.

Its mask is set to all True.

Definition at line 136 of file LELArray.h.

template<class T>
casa::LELArrayRef< T >::~LELArrayRef ( ) [inline]

Definition at line 139 of file LELArray.h.

template<class T>
casa::LELArrayRef< T >::LELArrayRef ( const LELArrayRef< T > &  other) [private]

Copy constructor is not needed.


Member Function Documentation

template<class T>
LELArrayRef<T>& casa::LELArrayRef< T >::operator= ( const LELArrayRef< T > &  other) [private]

Assignment is not needed.

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

Get value.

Reimplemented from casa::LELArray< T >.

Definition at line 143 of file LELArray.h.


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