SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::Buf< BaseT > Class Template Reference

The Buffer Class. More...

#include <SoDaBase.hxx>

Public Member Functions

unsigned int size ()
bool copy (const std::shared_ptr< Buf< BaseT > > &src)
bool setSize (size_t size)
 set the length of the buffer (in number of complex floats.)
std::vector< BaseT > & getBuf ()
BaseT & operator[] (size_t index)

Protected Member Functions

 Buf (unsigned int size)
 constructor: Allocate a complex/real buffer of complex data values

Protected Attributes

std::vector< BaseT > buf

Detailed Description

template<typename BaseT>
class SoDa::Buf< BaseT >

The Buffer Class.

This is used to carry blocks of complex or real single precision floating point samples on the message ring. This is a baseclass and should never appear on its own.

Definition at line 248 of file SoDaBase.hxx.

Constructor & Destructor Documentation

◆ Buf()

template<typename BaseT>
SoDa::Buf< BaseT >::Buf ( unsigned int size)
inlineprotected

constructor: Allocate a complex/real buffer of complex data values

Parameters
sizethe maximum number of single presion complex values the buffer can hold.

Definition at line 255 of file SoDaBase.hxx.

References buf, and size().

Referenced by copy().

Member Function Documentation

◆ copy()

template<typename BaseT>
bool SoDa::Buf< BaseT >::copy ( const std::shared_ptr< Buf< BaseT > > & src)
inline

Definition at line 263 of file SoDaBase.hxx.

References Buf(), and buf.

◆ getBuf()

template<typename BaseT>
std::vector< BaseT > & SoDa::Buf< BaseT >::getBuf ( )
inline

Definition at line 277 of file SoDaBase.hxx.

References buf.

◆ operator[]()

template<typename BaseT>
BaseT & SoDa::Buf< BaseT >::operator[] ( size_t index)
inline

Definition at line 281 of file SoDaBase.hxx.

References buf.

◆ setSize()

template<typename BaseT>
bool SoDa::Buf< BaseT >::setSize ( size_t size)
inline

set the length of the buffer (in number of complex floats.)

Parameters
sizenew length

Definition at line 272 of file SoDaBase.hxx.

References buf, and size().

◆ size()

template<typename BaseT>
unsigned int SoDa::Buf< BaseT >::size ( )
inline

Definition at line 261 of file SoDaBase.hxx.

References buf.

Referenced by Buf(), and setSize().

Member Data Documentation

◆ buf

template<typename BaseT>
std::vector<BaseT> SoDa::Buf< BaseT >::buf
protected

Definition at line 292 of file SoDaBase.hxx.

Referenced by Buf(), copy(), getBuf(), operator[](), setSize(), and size().


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