The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Copy all or a subset of all numeric AC variables into an array of matrixes. More...
Public Member Functions | |
acspace2matrix_t (algo_comm_t &ac, const std::vector< std::string > &names) | |
Constructor. More... | |
acspace2matrix_t (const MHA_AC::acspace2matrix_t &src) | |
Constructor with initialization from an instance. More... | |
~acspace2matrix_t () | |
MHA_AC::acspace2matrix_t & | operator= (const MHA_AC::acspace2matrix_t &src) |
Copy all contents (deep copy). More... | |
MHA_AC::ac2matrix_t & | operator[] (unsigned int k) |
Access operator. More... | |
const MHA_AC::ac2matrix_t & | operator[] (unsigned int k) const |
Constant access operator. More... | |
void | update () |
Update function. More... | |
unsigned int | size () const |
Number of matrixes in AC space. More... | |
unsigned int | frame () const |
Actual frame number. More... | |
void | insert (algo_comm_t &ac) |
Insert AC space copy into an AC space (other than source AC space) More... | |
Private Attributes | |
unsigned int | len |
MHA_AC::ac2matrix_t ** | data |
unsigned int | frameno |
Copy all or a subset of all numeric AC variables into an array of matrixes.
MHA_AC::acspace2matrix_t::acspace2matrix_t | ( | algo_comm_t & | ac, |
const std::vector< std::string > & | names | ||
) |
Constructor.
Scan all given AC variables and allocate corresponding matrixes.
ac | AC handle. |
names | Names of AC variables, or empty for all. |
MHA_AC::acspace2matrix_t::acspace2matrix_t | ( | const MHA_AC::acspace2matrix_t & | src | ) |
Constructor with initialization from an instance.
src | Instance to be copied. |
MHA_AC::acspace2matrix_t::~acspace2matrix_t | ( | ) |
MHA_AC::acspace2matrix_t & MHA_AC::acspace2matrix_t::operator= | ( | const MHA_AC::acspace2matrix_t & | src | ) |
Copy all contents (deep copy).
src | Array of matrixes to be copied. |
|
inline |
Access operator.
k | index into array; should not exceed size()-1. |
Reference | to matrix. |
|
inline |
Constant access operator.
k | index into array; should not exceed size()-1. |
Constant | reference to matrix. |
|
inline |
Update function.
This function updates all matrixes from their corresponding AC variables. It can be called from the MHA Framework prepare function or in the processing callback.
|
inline |
Number of matrixes in AC space.
|
inline |
Actual frame number.
void MHA_AC::acspace2matrix_t::insert | ( | algo_comm_t & | ac | ) |
Insert AC space copy into an AC space (other than source AC space)
ac | AC space handle to insert data |
|
private |
|
private |
|
private |