|
ape
0.5.0
Audio Programming Environment
|
A container representing a 2d rectangular array (and can be used syntactically like one). As with uarray, the source contents is unowned and the dimensionality is constant. Row-major order, where each "row" is a channel and can be accessed through a uarray. More...
#include <misc.h>
Classes | |
| struct | iterator |
| Iterator for enumerating the rows of a umatrix umatrix<T>::begin() More... | |
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| umatrix (T *const *data, std::size_t channelsOrRows, std::size_t samplesOrColumns) | |
| Construct from a pointer array. More... | |
| uarray< T > | operator[] (std::size_t row) const CPPAPE_NOEXCEPT_IF_RELEASE |
| Access the row in the matrix. More... | |
| iterator | begin () const noexcept |
| Retrieve an iterator that can enumerate channels contained in this matrix. More... | |
| iterator | end () const noexcept |
Retrieve an iterator pointing to one past the last channel in this matrix.
| |
| std::size_t | samples () const noexcept |
| std::size_t | channels () const noexcept |
| std::size_t | rows () const noexcept |
| |
| std::size_t | columns () const noexcept |
| |
| auto | pointers () |
| Returns a possibly cv-qualified T * const* More... | |
| const auto | pointers () const noexcept |
| operator umatrix< const T > () const noexcept | |
| Implicit conversion operator to a constant read-only version of this umatrix More... | |
Protected Attributes | |
| T *const * | data |
| std::size_t | numRows |
| std::size_t | numColumns |
A container representing a 2d rectangular array (and can be used syntactically like one). As with uarray, the source contents is unowned and the dimensionality is constant. Row-major order, where each "row" is a channel and can be accessed through a uarray.
This class is a drop-in safe replacements for expressions like: T** data, int samples, int channels Or aliasing actually mutable 2d audio sources like AudioFile or DynamicSampleMatrix.
| T | The source content type. Append const to the type for perfectly enforced read-only access to the contents. |
| typedef T ape::umatrix< T >::value_type |
|
inline |
Construct from a pointer array.
|
inlinenoexcept |
Retrieve an iterator that can enumerate channels contained in this matrix.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Implicit conversion operator to a constant read-only version of this umatrix
|
inline |
Access the row in the matrix.
|
inline |
Returns a possibly cv-qualified T * const*
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
protected |
|
protected |
|
protected |
1.8.16