#include <Vbi2MsRow.h>
Public Types | |
typedef const Cube< T > &(casa::vi::VisBufferImpl2::* | Accessor )() const |
Public Member Functions | |
CachedPlane (Accessor accessor) | |
Matrix< T > & | getCachedPlane (casa::vi::VisBufferImpl2 *vb, Int row) |
Static Private Member Functions | |
static void | referenceMatrix (Matrix< T > &cache, const Cube< T > &src, Int row) |
Private Attributes | |
Accessor | accessor_p |
Matrix< T > | cache_p |
Definition at line 50 of file Vbi2MsRow.h.
typedef const Cube<T>&(casa::vi::VisBufferImpl2::* casa::ms::CachedPlane< T >::Accessor)() const |
Definition at line 54 of file Vbi2MsRow.h.
casa::ms::CachedPlane< T >::CachedPlane | ( | Accessor | accessor | ) | [inline] |
Definition at line 56 of file Vbi2MsRow.h.
Matrix<T>& casa::ms::CachedPlane< T >::getCachedPlane | ( | casa::vi::VisBufferImpl2 * | vb, | |
Int | row | |||
) | [inline] |
cache_p.reference ((vb ->* accessor_p)().xyPlane (row)); // replace with something more efficient
Definition at line 59 of file Vbi2MsRow.h.
static void casa::ms::CachedPlane< T >::referenceMatrix | ( | Matrix< T > & | cache, | |
const Cube< T > & | src, | |||
Int | row | |||
) | [inline, static, private] |
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< Complex >::getCachedPlane().
Accessor casa::ms::CachedPlane< T >::accessor_p [private] |
Definition at line 87 of file Vbi2MsRow.h.
Referenced by casa::ms::CachedPlane< Complex >::getCachedPlane().
Matrix<T> casa::ms::CachedPlane< T >::cache_p [private] |
Definition at line 88 of file Vbi2MsRow.h.
Referenced by casa::ms::CachedPlane< Complex >::getCachedPlane().