casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
WeightBlockEncoder Class Reference

#include <weightblockencoder.h>

Public Member Functions

 WeightBlockEncoder (size_t nPolarizations, size_t nChannels, size_t quantCount)
 
size_t MetaDataFloatCount () const
 
size_t SymbolCount (size_t nRowsInBlock) const
 
void InitializeDecode (const float *metaBuffer)
 
void Decode (TimeBlockBuffer< float > &buffer, const unsigned int *symbolBuffer, size_t blockRow) const
 
void Encode (TimeBlockBuffer< float > &buffer, float *metaBuffer, unsigned int *symbolBuffer) const
 

Private Attributes

const size_t _nPolarizations
 
const size_t _nChannels
 
const size_t _quantCount
 
float _decodeMaxValue
 

Detailed Description

Definition at line 9 of file weightblockencoder.h.

Constructor & Destructor Documentation

WeightBlockEncoder::WeightBlockEncoder ( size_t  nPolarizations,
size_t  nChannels,
size_t  quantCount 
)
inline

Definition at line 11 of file weightblockencoder.h.

Member Function Documentation

void WeightBlockEncoder::Decode ( TimeBlockBuffer< float > &  buffer,
const unsigned int *  symbolBuffer,
size_t  blockRow 
) const
inline
void WeightBlockEncoder::Encode ( TimeBlockBuffer< float > &  buffer,
float *  metaBuffer,
unsigned int *  symbolBuffer 
) const
inline
void WeightBlockEncoder::InitializeDecode ( const float *  metaBuffer)
inline

Definition at line 22 of file weightblockencoder.h.

References _decodeMaxValue.

size_t WeightBlockEncoder::MetaDataFloatCount ( ) const
inline

Definition at line 16 of file weightblockencoder.h.

size_t WeightBlockEncoder::SymbolCount ( size_t  nRowsInBlock) const
inline

Definition at line 18 of file weightblockencoder.h.

References _nChannels.

Member Data Documentation

float WeightBlockEncoder::_decodeMaxValue
private

Definition at line 74 of file weightblockencoder.h.

Referenced by Decode(), and InitializeDecode().

const size_t WeightBlockEncoder::_nChannels
private

Definition at line 72 of file weightblockencoder.h.

Referenced by Decode(), Encode(), and SymbolCount().

const size_t WeightBlockEncoder::_nPolarizations
private

Definition at line 71 of file weightblockencoder.h.

Referenced by Decode(), and Encode().

const size_t WeightBlockEncoder::_quantCount
private

Definition at line 73 of file weightblockencoder.h.

Referenced by Decode(), and Encode().


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