casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::LELScalar< T > Class Template Reference

This LEL class holds a scalar with a mask. More...

#include <LELInterface.h>

Public Member Functions

 LELScalar ()
 Default constructor sets a False mask. More...
 
 LELScalar (const T &value, Bool mask=True)
 Constructor takes value and optional mask. More...
 
const T & value () const
 Get value. More...
 
T & value ()
 
Bool mask () const
 Get mask. More...
 

Private Attributes

itsValue
 
Bool itsMask
 

Detailed Description

template<class T>
class casacore::LELScalar< T >

This LEL class holds a scalar with a mask.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Synopsis

This LEL class holds a scalar with a mask.

Motivation

It maskes it possible to handle a scalar with its mask as a single object.

Definition at line 43 of file LELInterface.h.

Constructor & Destructor Documentation

template<class T>
casacore::LELScalar< T >::LELScalar ( )

Default constructor sets a False mask.

template<class T>
casacore::LELScalar< T >::LELScalar ( const T &  value,
Bool  mask = True 
)
inline

Constructor takes value and optional mask.

Definition at line 66 of file LELScalar.h.

Member Function Documentation

template<class T>
Bool casacore::LELScalar< T >::mask ( ) const
inline

Get mask.

Definition at line 78 of file LELScalar.h.

References casacore::LELScalar< T >::itsMask.

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

Get value.

Definition at line 71 of file LELScalar.h.

References casacore::LELScalar< T >::itsValue.

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

Definition at line 73 of file LELScalar.h.

References casacore::LELScalar< T >::itsValue.

Member Data Documentation

template<class T>
Bool casacore::LELScalar< T >::itsMask
private

Definition at line 83 of file LELScalar.h.

Referenced by casacore::LELScalar< T >::mask().

template<class T>
T casacore::LELScalar< T >::itsValue
private

Definition at line 82 of file LELScalar.h.

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


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