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

Default implementation of PlotPointData that supports raw arrays, vectors, and CASA Vectors. More...

#include <PlotData.h>

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

List of all members.

Public Member Functions

 PlotPointDataImpl (vector< T > &x, vector< T > &y, bool shouldDelete=false)
 X/Y constructors.
 PlotPointDataImpl (Vector< T > &x, Vector< T > &y, bool shouldDelete=false)
 PlotPointDataImpl (T *&x, T *&y, unsigned int size, bool shouldDel=false)
 PlotPointDataImpl (vector< T > &y, bool shouldDelete=false)
 Y constructors.
 PlotPointDataImpl (Vector< T > &y, bool shouldDelete=false)
 PlotPointDataImpl (T *&y, unsigned int size, bool shouldDel=false)
virtual ~PlotPointDataImpl ()
 
     

bool isValid () const
 Implements PlotData::isValid().
virtual bool willDeleteData () const
 Implements PlotData::willDeleteData().
virtual void setDeleteData (bool del=true)
 Implements PlotData::setDeleteData().
unsigned int size () const
 Implements PlotPointData::size().
double xAt (unsigned int i) const
 Implements PlotPointData::xAt().
double yAt (unsigned int i) const
 Implements PlotPointData::yAt().
bool minsMaxes (double &xMin, double &xMax, double &yMin, double &yMax)
 Implements PlotPointData::minsMaxes().

Private Attributes

PlotSingleDataImpl< T > m_xData
PlotSingleDataImpl< T > m_yData

Detailed Description

template<class T>
class casa::PlotPointDataImpl< T >

Default implementation of PlotPointData that supports raw arrays, vectors, and CASA Vectors.

The class is templated, but since data sources are expected in doubles it should be a numeric type that can be casted to a double. It can either be both x and y data, or just y data (where x is the index).

Definition at line 424 of file PlotData.h.


Constructor & Destructor Documentation

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

X/Y constructors.

Definition at line 428 of file PlotData.h.

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

Definition at line 430 of file PlotData.h.

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

Definition at line 432 of file PlotData.h.

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

Y constructors.

Definition at line 438 of file PlotData.h.

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

Definition at line 440 of file PlotData.h.

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

Definition at line 442 of file PlotData.h.

template<class T >
virtual casa::PlotPointDataImpl< T >::~PlotPointDataImpl ( ) [inline, virtual]

     

Definition at line 446 of file PlotData.h.


Member Function Documentation

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

Implements PlotData::isValid().

Implements casa::PlotData.

Definition at line 450 of file PlotData.h.

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

Implements PlotPointData::minsMaxes().

Implements casa::PlotPointData.

Definition at line 481 of file PlotData.h.

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

Implements PlotData::setDeleteData().

Implements casa::PlotData.

Reimplemented in casa::PlotErrorDataImpl< T >, and casa::PlotMaskedPointDataImpl< T >.

Definition at line 459 of file PlotData.h.

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

Implements PlotPointData::size().

Implements casa::PlotPointData.

Definition at line 465 of file PlotData.h.

References casa::min().

template<class T >
virtual bool casa::PlotPointDataImpl< T >::willDeleteData ( ) const [inline, virtual]
template<class T >
double casa::PlotPointDataImpl< T >::xAt ( unsigned int  i) const [inline, virtual]

Implements PlotPointData::xAt().

If no x data is given, the index is returned.

Implements casa::PlotPointData.

Definition at line 472 of file PlotData.h.

template<class T >
double casa::PlotPointDataImpl< T >::yAt ( unsigned int  i) const [inline, virtual]

Implements PlotPointData::yAt().

Implements casa::PlotPointData.

Definition at line 478 of file PlotData.h.


Member Data Documentation

template<class T >
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_xData [private]

Definition at line 492 of file PlotData.h.

template<class T >
PlotSingleDataImpl<T> casa::PlotPointDataImpl< T >::m_yData [private]

Definition at line 493 of file PlotData.h.


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