ape  0.5.0
Audio Programming Environment
Public Member Functions | Public Attributes | List of all members
ape::DynamicSampleMatrix< T > Struct Template Reference

An owned 2d rectangular matrix that supports a T** representation and being aliased as a umatrix. More...

#include <misc.h>

Public Member Functions

void resize (std::size_t channelCount, std::size_t samples)
 Retranslate the buffers and contents to adhere to the dimensionality given by the arguments. No memory reallocation done if there's capacity enough. More...
 
 operator umatrix< T > () noexcept
 Implicitly alias as a mutable umatrix.

See also
asMatrix
More...
 
 operator umatrix< const T > () const noexcept
 Alias as a read-only umatrix. More...
 
umatrix< T > asMatrix () noexcept
 Explicitly alias as a mutable umatrix. More...
 

Public Attributes

std::vector< T * > channels
 
std::vector< T > buffer
 

Detailed Description

template<typename T>
struct ape::DynamicSampleMatrix< T >

An owned 2d rectangular matrix that supports a T** representation and being aliased as a umatrix.

Member Function Documentation

◆ asMatrix()

template<typename T>
umatrix<T> ape::DynamicSampleMatrix< T >::asMatrix ( )
inlinenoexcept

Explicitly alias as a mutable umatrix.

◆ operator umatrix< const T >()

template<typename T>
ape::DynamicSampleMatrix< T >::operator umatrix< const T > ( ) const
inlinenoexcept

Alias as a read-only umatrix.

◆ operator umatrix< T >()

template<typename T>
ape::DynamicSampleMatrix< T >::operator umatrix< T > ( )
inlinenoexcept

Implicitly alias as a mutable umatrix.

See also
asMatrix

◆ resize()

template<typename T>
void ape::DynamicSampleMatrix< T >::resize ( std::size_t  channelCount,
std::size_t  samples 
)
inline

Retranslate the buffers and contents to adhere to the dimensionality given by the arguments. No memory reallocation done if there's capacity enough.

Member Data Documentation

◆ buffer

template<typename T>
std::vector<T> ape::DynamicSampleMatrix< T >::buffer

◆ channels

template<typename T>
std::vector<T*> ape::DynamicSampleMatrix< T >::channels

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