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

Default implementation of PlotMaskedPointData using default containers. More...

#include <PlotData.h>

Inheritance diagram for casa::PlotMaskedPointDataImpl< T >:
casa::PlotMaskedPointData casa::PlotPointDataImpl< T > casa::PlotPointData casa::PlotPointData casa::PlotData casa::PlotData

List of all members.

Public Member Functions

 PlotMaskedPointDataImpl (vector< T > &x, vector< T > &y, vector< bool > &mask, bool shouldDelete=false)
 X/Y constructors.
 PlotMaskedPointDataImpl (Vector< T > &x, Vector< T > &y, Vector< bool > &mask, bool shouldDelete=false)
 PlotMaskedPointDataImpl (T *&x, T *&y, bool *&mask, unsigned int size, bool shouldDel=false)
 PlotMaskedPointDataImpl (vector< T > &y, vector< bool > &mask, bool shouldDelete=false)
 Y constructors.
 PlotMaskedPointDataImpl (Vector< T > &y, Vector< bool > &mask, bool shouldDelete=false)
 PlotMaskedPointDataImpl (T *&y, bool *&mask, unsigned int size, bool shouldDel=false)
 ~PlotMaskedPointDataImpl ()
 Destructor.
bool willDeleteData () const
 Overrides PlotPointDataImpl::willDeleteData().
void setDeleteData (bool del=true)
 Overrides PlotPointDataImpl::setDeleteData().
unsigned int sizeMasked () const
 Implements PlotMaskedPointData::sizeMasked().
unsigned int sizeUnmasked () const
 Implements PlotMaskedPointData::sizeUnmasked().
bool maskedAt (unsigned int index) const
 Implements PlotMaskedPointData::maskedAt().
bool maskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax)
 Implements PlotMaskedPointData::maskedMinsMaxes().
bool unmaskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax)
 Implements PlotMaskedPointData::unmaskedMinsMaxes().

Private Member Functions

unsigned int sizeMaskedOrUnmasked (bool masked) const
 Helper for size.
bool getMaskedOrUnmaskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax, bool masked)
 Helper for mins/maxes.

Private Attributes

vector< bool > * m_maskVector
Vector< bool > * m_maskCVector
bool * m_maskArray
unsigned int m_maskArraySize
bool m_shouldDeleteMask

Detailed Description

template<class T>
class casa::PlotMaskedPointDataImpl< T >

Default implementation of PlotMaskedPointData using default containers.

Definition at line 559 of file PlotData.h.


Constructor & Destructor Documentation

template<class T >
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl ( vector< T > &  x,
vector< T > &  y,
vector< bool > &  mask,
bool  shouldDelete = false 
) [inline]

X/Y constructors.

Definition at line 564 of file PlotData.h.

template<class T >
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl ( Vector< T > &  x,
Vector< T > &  y,
Vector< bool > &  mask,
bool  shouldDelete = false 
) [inline]

Definition at line 569 of file PlotData.h.

template<class T >
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl ( T *&  x,
T *&  y,
bool *&  mask,
unsigned int  size,
bool  shouldDel = false 
) [inline]

Definition at line 574 of file PlotData.h.

template<class T >
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl ( vector< T > &  y,
vector< bool > &  mask,
bool  shouldDelete = false 
) [inline]

Y constructors.

Definition at line 583 of file PlotData.h.

template<class T >
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl ( Vector< T > &  y,
Vector< bool > &  mask,
bool  shouldDelete = false 
) [inline]

Definition at line 588 of file PlotData.h.

template<class T >
casa::PlotMaskedPointDataImpl< T >::PlotMaskedPointDataImpl ( T *&  y,
bool *&  mask,
unsigned int  size,
bool  shouldDel = false 
) [inline]

Definition at line 593 of file PlotData.h.

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

Destructor.

Definition at line 601 of file PlotData.h.


Member Function Documentation

template<class T >
bool casa::PlotMaskedPointDataImpl< T >::getMaskedOrUnmaskedMinsMaxes ( double &  xMin,
double &  xMax,
double &  yMin,
double &  yMax,
bool  masked 
) [inline, private]

Helper for mins/maxes.

Definition at line 669 of file PlotData.h.

template<class T >
bool casa::PlotMaskedPointDataImpl< T >::maskedAt ( unsigned int  index) const [inline, virtual]

Implements PlotMaskedPointData::maskedAt().

Implements casa::PlotMaskedPointData.

Definition at line 626 of file PlotData.h.

template<class T >
bool casa::PlotMaskedPointDataImpl< T >::maskedMinsMaxes ( double &  xMin,
double &  xMax,
double &  yMin,
double &  yMax 
) [inline, virtual]

Implements PlotMaskedPointData::maskedMinsMaxes().

Implements casa::PlotMaskedPointData.

Definition at line 634 of file PlotData.h.

template<class T >
void casa::PlotMaskedPointDataImpl< T >::setDeleteData ( bool  del = true) [inline, virtual]

Overrides PlotPointDataImpl::setDeleteData().

Reimplemented from casa::PlotPointDataImpl< T >.

Definition at line 614 of file PlotData.h.

template<class T >
unsigned int casa::PlotMaskedPointDataImpl< T >::sizeMasked ( ) const [inline, virtual]

Implements PlotMaskedPointData::sizeMasked().

Implements casa::PlotMaskedPointData.

Definition at line 620 of file PlotData.h.

template<class T >
unsigned int casa::PlotMaskedPointDataImpl< T >::sizeMaskedOrUnmasked ( bool  masked) const [inline, private]

Helper for size.

Definition at line 651 of file PlotData.h.

References casa::min().

template<class T >
unsigned int casa::PlotMaskedPointDataImpl< T >::sizeUnmasked ( ) const [inline, virtual]

Implements PlotMaskedPointData::sizeUnmasked().

Implements casa::PlotMaskedPointData.

Definition at line 623 of file PlotData.h.

template<class T >
bool casa::PlotMaskedPointDataImpl< T >::unmaskedMinsMaxes ( double &  xMin,
double &  xMax,
double &  yMin,
double &  yMax 
) [inline, virtual]

Implements PlotMaskedPointData::unmaskedMinsMaxes().

Implements casa::PlotMaskedPointData.

Definition at line 639 of file PlotData.h.

template<class T >
bool casa::PlotMaskedPointDataImpl< T >::willDeleteData ( ) const [inline, virtual]

Overrides PlotPointDataImpl::willDeleteData().

Reimplemented from casa::PlotPointDataImpl< T >.

Definition at line 610 of file PlotData.h.


Member Data Documentation

template<class T >
bool* casa::PlotMaskedPointDataImpl< T >::m_maskArray [private]

Definition at line 646 of file PlotData.h.

template<class T >
unsigned int casa::PlotMaskedPointDataImpl< T >::m_maskArraySize [private]

Definition at line 647 of file PlotData.h.

template<class T >
Vector<bool>* casa::PlotMaskedPointDataImpl< T >::m_maskCVector [private]

Definition at line 645 of file PlotData.h.

template<class T >
vector<bool>* casa::PlotMaskedPointDataImpl< T >::m_maskVector [private]

Definition at line 644 of file PlotData.h.

template<class T >
bool casa::PlotMaskedPointDataImpl< T >::m_shouldDeleteMask [private]

Definition at line 648 of file PlotData.h.


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