Audio Effects Framework
CVector Class Reference

class with static functions for buffer operations with type T More...

#include <Vector.h>

Static Public Member Functions

template<typename T >
static void setZero (T *pfSrcDest, int iLength)
 
template<typename T >
static void setZeroBelowThresh (T *pfSrcDest, int iLength, T Thresh)
 
template<typename T >
static void copy (T *pDest, const T *pSource, int iLength)
 
template<typename T >
static void flip_I (T *pfSrcDest, int iLength)
 
template<typename T >
static void moveInMem (T *pfSrcDest, int iDestIdx, int iSrcIdx, int iLength)
 

Detailed Description

class with static functions for buffer operations with type T

Member Function Documentation

◆ copy()

template<typename T >
static void CVector::copy ( T *  pDest,
const T *  pSource,
int  iLength 
)
inlinestatic

copies buffer of type T

Parameters
pDestpointer to destination memory
pSourcepointer to source memory
iLengthlength of buffer
Returns
void

◆ flip_I()

template<typename T >
static void CVector::flip_I ( T *  pfSrcDest,
int  iLength 
)
inlinestatic

reverses buffer (last to first element)

Parameters
pfSrcDestpointer to memory to be flipped
iLengthnumber of elements
Returns
void

◆ moveInMem()

template<typename T >
static void CVector::moveInMem ( T *  pfSrcDest,
int  iDestIdx,
int  iSrcIdx,
int  iLength 
)
inlinestatic

moves a subset of the current buffer

Parameters
pfSrcDestsource and destination
iDestIdxdestination index
iSrcIdxsource index
iLengthnumber of elements to be moved
Returns
void

◆ setZero()

template<typename T >
static void CVector::setZero ( T *  pfSrcDest,
int  iLength 
)
inlinestatic

sets a buffer to zero

Parameters
pfSrcDestpointer to memory to be modified
iLengthbuffer length
Returns
void

◆ setZeroBelowThresh()

template<typename T >
static void CVector::setZeroBelowThresh ( T *  pfSrcDest,
int  iLength,
Thresh 
)
inlinestatic

sets all values smaller than a threshold to 0

Parameters
pfSrcDestpointer to memory to be modified
iLengthbuffer length
Threshthreshold value
Returns
void

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