#include <ReBuffer.hh>
Collaboration diagram for clReBuffer:
Public Member Functions | |
clReBuffer () | |
clReBuffer (const clReBuffer &CopySrc) | |
~clReBuffer () | |
void | Put (const float *, long) |
Put data into FIFO. | |
void | Put (const double *, long) |
bool | Get (float *, long) |
Get data from FIFO. | |
bool | Get (double *, long) |
long | GetCount () const |
Get number of samples in FIFO. | |
void | Clear () |
Clear FIFO contents and reset buffer size. | |
clReBuffer & | operator= (const clReBuffer &) |
Protected Member Functions | |
void * | Index (const std::type_info &, long) |
void * | GetPtr (const std::type_info &) |
Private Member Functions | |
void | CheckSize (long, long) |
Private Attributes | |
long | lSize |
long | lPutIndex |
long | lGetIndex |
long | lCount |
clAlloc | Buffer |
It's implemented using dynamically growing circular FIFO buffer.
Definition at line 36 of file ReBuffer.hh.
|
Definition at line 116 of file ReBuffer.cc. |
|
Definition at line 49 of file ReBuffer.hh. |
|
Definition at line 125 of file ReBuffer.cc. |
|
Definition at line 37 of file ReBuffer.cc. References Buffer, clAlloc::GetSize(), lCount, lGetIndex, lPutIndex, and clAlloc::Resize(). Referenced by Put(). |
|
Definition at line 69 of file ReBuffer.cc. |
|
Definition at line 90 of file ReBuffer.cc. References Buffer, Clear(), Get(), lCount, lGetIndex, Put(), and clAlloc::Size(). |
|
Put data into FIFO.
Definition at line 130 of file ReBuffer.cc. References Buffer, CheckSize(), lCount, and lPutIndex. Referenced by GetPtr(), clIIRInterpolator::Put(), clIIRDecimator::Put(), clFlipBand::Put(), clFIRInterpolator::Put(), clFIRDecimator::Put(), and clFilter::Put(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Definition at line 152 of file ReBuffer.cc. References Buffer, CheckSize(), lCount, and lPutIndex. |
|
Get data from FIFO. Returns false if there's not enough samples in FIFO to fill requested buffer.
Definition at line 174 of file ReBuffer.cc. References Buffer, lCount, and lGetIndex. Referenced by clIIRInterpolator::Get(), clIIRDecimator::Get(), clFlipBand::Get(), clFIRInterpolator::Get(), clFIRDecimator::Get(), clFilter::Get(), GetPtr(), clFlipBand::Put(), and clFilter::Put(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Definition at line 197 of file ReBuffer.cc. |
|
Get number of samples in FIFO.
Definition at line 80 of file ReBuffer.hh. References lCount. |
|
Clear FIFO contents and reset buffer size.
Definition at line 87 of file ReBuffer.hh. References Buffer, clAlloc::Free(), lCount, lGetIndex, and lPutIndex. Referenced by clFlipBand::Clear(), GetPtr(), and clFilter::Uninitialize(). |
|
Definition at line 220 of file ReBuffer.cc. References Buffer, clAlloc::Copy(), lCount, lGetIndex, lPutIndex, and lSize. |
|
Definition at line 38 of file ReBuffer.hh. Referenced by operator=(). |
|
Definition at line 39 of file ReBuffer.hh. Referenced by CheckSize(), Clear(), clReBuffer(), operator=(), and Put(). |
|
Definition at line 40 of file ReBuffer.hh. Referenced by CheckSize(), Clear(), clReBuffer(), Get(), GetPtr(), Index(), and operator=(). |
|
Definition at line 41 of file ReBuffer.hh. Referenced by CheckSize(), Clear(), clReBuffer(), Get(), GetCount(), GetPtr(), operator=(), and Put(). |
|
Definition at line 42 of file ReBuffer.hh. Referenced by CheckSize(), Clear(), Get(), GetPtr(), Index(), operator=(), and Put(). |