HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
buffer for storing complex numbers. More...
#include <ComplexBuffer.h>
Additional Inherited Members | |
Protected Member Functions inherited from Heph::BufferBase< ComplexBuffer, Complex > | |
BufferBase () | |
BufferBase (size_t size) | |
BufferBase (size_t size, BufferFlags flags) | |
BufferBase (const std::initializer_list< Complex > &rhs) | |
BufferBase (const BufferBase &rhs) | |
BufferBase (BufferBase &&rhs) noexcept | |
ComplexBuffer & | operator= (const std::initializer_list< Complex > &rhs) |
ComplexBuffer & | operator= (const ComplexBuffer &rhs) |
ComplexBuffer & | operator= (ComplexBuffer &&rhs) noexcept |
Static Protected Member Functions inherited from Heph::BufferBase< ComplexBuffer, Complex > | |
static size_t | SizeAsByte (size_t size) |
static Complex * | SubBuffer (Complex *pThisData, size_t thisSize_byte, size_t index_byte, size_t subBufferSize_byte) |
static Complex * | Prepend (Complex *pThisData, size_t thisSize_byte, Complex *pRhsData, size_t rhsSize_byte) |
static Complex * | Append (Complex *pThisData, size_t thisSize_byte, Complex *pRhsData, size_t rhsSize_byte) |
static Complex * | Insert (Complex *pThisData, size_t thisSize_byte, Complex *pRhsData, size_t rhsSize_byte, size_t index_byte) |
static Complex * | Cut (Complex *pThisData, size_t thisSize_byte, size_t index_byte, size_t &cutSize_byte) |
static void | Replace (Complex *pThisData, size_t thisSize_byte, Complex *pRhsData, size_t rhsSize_byte, size_t index_byte) |
static std::enable_if< std::is_class< U >::value >::type | Initialize (U *pData, U *pDataEnd) |
static std::enable_if<!std::is_class< U >::value >::type | Initialize (U *pData, U *pDataEnd) |
static Complex * | Allocate (size_t size_byte) |
static Complex * | AllocateUninitialized (size_t size_byte) |
Protected Attributes inherited from Heph::BufferBase< ComplexBuffer, Complex > | |
Complex * | pData |
size_t | size |
buffer for storing complex numbers.
Heph::ComplexBuffer::ComplexBuffer | ( | ) |
creates a new instance and initializes it with default values.
|
explicit |
creates a new instance and initializes it with the provided values.
size | number of elements the buffer will store. |
Heph::ComplexBuffer::ComplexBuffer | ( | size_t | size, |
BufferFlags | flags ) |
creates a new instance and initializes it with the provided values.
size | number of elements the buffer will store. |
flags | flags. |
Heph::ComplexBuffer::ComplexBuffer | ( | const std::initializer_list< double > & | rhs | ) |
creates a new instance and initializes it with the provided values.
rhs | a list of elements the buffer will store. |
Heph::ComplexBuffer::ComplexBuffer | ( | const std::initializer_list< Complex > & | rhs | ) |
creates a new instance and initializes it with the provided values.
rhs | a list of elements the buffer will store. |
|
explicit |
creates a new instance and copies the rhs's data to it.
rhs | instance whose data will be copied. |
Heph::ComplexBuffer::ComplexBuffer | ( | const ComplexBuffer & | rhs | ) |
creates a new instance and copies the rhs's data to it.
rhs | instance whose data will be copied. |
|
noexcept |
creates a new instance and moves the rhs's data to it.
rhs | instance whose data will be moved. |
void Heph::ComplexBuffer::Invert | ( | ) |
inverts the elements.