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::CachedColumn< T > Class Template Reference

#include <Vbi2MsRow.h>

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

Public Types

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

Public Member Functions

 CachedColumn (Accessor accessor)
 
casacore::Vector< T > & getCachedColumn (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 referenceVector (casacore::Vector< T > &cache, const casacore::Matrix< T > &src, casacore::Int row)
 

Private Attributes

Accessor accessor_p
 
casacore::Vector< 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::CachedColumn< T >

Definition at line 92 of file Vbi2MsRow.h.

Member Typedef Documentation

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

Definition at line 96 of file Vbi2MsRow.h.

Constructor & Destructor Documentation

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

Definition at line 98 of file Vbi2MsRow.h.

Member Function Documentation

template<typename T>
casacore::Vector<T>& casa::ms::CachedColumn< T >::getCachedColumn ( casa::vi::VisBufferImpl2 vb,
casacore::Int  row 
)
inline

Definition at line 101 of file Vbi2MsRow.h.

template<typename T>
static void casa::ms::CachedColumn< T >::referenceVector ( casacore::Vector< T > &  cache,
const casacore::Matrix< 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 115 of file Vbi2MsRow.h.

Referenced by casa::ms::CachedColumn< casacore::Float >::getCachedColumn().

Member Data Documentation

template<typename T>
Accessor casa::ms::CachedColumn< T >::accessor_p
private
template<typename T>
casacore::Vector<T> casa::ms::CachedColumn< T >::cache_p
private

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