casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
casa::ms::CachedPlane< T > Class Template Reference

#include <Vbi2MsRow.h>

Inheritance diagram for casa::ms::CachedPlane< T >:
casa::ms::CachedArrayBase

Public Types

typedef const casacore::Cube
< T >
&(casa::vi::VisBufferImpl2::* 
Accessor )() const
 

Public Member Functions

 CachedPlane (Accessor accessor)
 
casacore::Matrix< T > & getCachedPlane (casa::vi::VisBufferImpl2 *vb, casacore::Int row)
 
- Public Member Functions inherited from casa::ms::CachedArrayBase
 CachedArrayBase ()
 
virtual ~CachedArrayBase ()
 
void clearCache ()
 

Static Private Member Functions

static void referenceMatrix (casacore::Matrix< T > &cache, const casacore::Cube< T > &src, casacore::Int row)
 

Private Attributes

Accessor accessor_p
 
casacore::Matrix< T > cache_p
 

Additional Inherited Members

- Protected Member Functions inherited from casa::ms::CachedArrayBase
casacore::Bool isCached () const
 
void setCached ()
 

Detailed Description

template<typename T>
class casa::ms::CachedPlane< T >

Definition at line 50 of file Vbi2MsRow.h.

Member Typedef Documentation

template<typename T>
typedef const casacore::Cube<T>&(casa::vi::VisBufferImpl2::* casa::ms::CachedPlane< T >::Accessor)() const

Definition at line 54 of file Vbi2MsRow.h.

Constructor & Destructor Documentation

template<typename T>
casa::ms::CachedPlane< T >::CachedPlane ( Accessor  accessor)
inline

Definition at line 56 of file Vbi2MsRow.h.

Member Function Documentation

template<typename T>
casacore::Matrix<T>& casa::ms::CachedPlane< T >::getCachedPlane ( casa::vi::VisBufferImpl2 vb,
casacore::Int  row 
)
inline

cache_p.reference ((vb ->* accessor_p)().xyPlane (row)); // replace with something more efficient

Definition at line 59 of file Vbi2MsRow.h.

template<typename T>
static void casa::ms::CachedPlane< T >::referenceMatrix ( casacore::Matrix< T > &  cache,
const casacore::Cube< T > &  src,
casacore::Int  row 
)
inlinestaticprivate

This is a bit sleazy but it seems to be helpful to performance. Assumes contiguously stored cube.

Definition at line 74 of file Vbi2MsRow.h.

Referenced by casa::ms::CachedPlane< casacore::Complex >::getCachedPlane().

Member Data Documentation

template<typename T>
Accessor casa::ms::CachedPlane< T >::accessor_p
private
template<typename T>
casacore::Matrix<T> casa::ms::CachedPlane< T >::cache_p
private

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