The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
acmon::ac_monitor_t Class Reference

A class for converting AC variables to Parser monitors of correct type. More...

Public Member Functions

 ac_monitor_t (MHAParser::parser_t &parent, const std::string &name_, MHA_AC::algo_comm_t &ac, bool use_matrix)
 Converts AC variable to parser monitor. More...
 
void getvar (MHA_AC::algo_comm_t &ac)
 Update values of monitor. More...
 

Public Attributes

std::string name
 name of AC variable and parser monitor More...
 
std::string dimstr
 columns x rows More...
 
MHAParser::vfloat_mon_t mon
 Monitor used for real vectors. More...
 
MHAParser::mfloat_mon_t mon_mat
 Monitor used for real matrices. More...
 
MHAParser::vcomplex_mon_t mon_complex
 monitor used for complex vectors More...
 
MHAParser::mcomplex_mon_t mon_mat_complex
 monitor used for complex matrices More...
 
MHAParser::string_mon_t mon_string
 
MHAParser::parser_tp_parser
 parent parser to insert monitor into More...
 

Private Attributes

bool use_mat
 if true, use matrix monitor, else use vector monitor More...
 

Detailed Description

A class for converting AC variables to Parser monitors of correct type.

Constructor & Destructor Documentation

◆ ac_monitor_t()

acmon::ac_monitor_t::ac_monitor_t ( MHAParser::parser_t parent,
const std::string &  name_,
MHA_AC::algo_comm_t ac,
bool  use_matrix 
)

Converts AC variable to parser monitor.

Parameters
parentThe parser to insert a monitor into
name_The name of the AC variable and the monitor variable
acHandle to algorithm communication space
use_matrixIndicates if a matrix monitor type should be used.

Member Function Documentation

◆ getvar()

void acmon::ac_monitor_t::getvar ( MHA_AC::algo_comm_t ac)

Update values of monitor.

Parameters
acHandle to algorithm communication space

Member Data Documentation

◆ name

std::string acmon::ac_monitor_t::name

name of AC variable and parser monitor

◆ dimstr

std::string acmon::ac_monitor_t::dimstr

columns x rows

◆ mon

MHAParser::vfloat_mon_t acmon::ac_monitor_t::mon

Monitor used for real vectors.

◆ mon_mat

MHAParser::mfloat_mon_t acmon::ac_monitor_t::mon_mat

Monitor used for real matrices.

◆ mon_complex

MHAParser::vcomplex_mon_t acmon::ac_monitor_t::mon_complex

monitor used for complex vectors

◆ mon_mat_complex

MHAParser::mcomplex_mon_t acmon::ac_monitor_t::mon_mat_complex

monitor used for complex matrices

◆ mon_string

MHAParser::string_mon_t acmon::ac_monitor_t::mon_string

◆ p_parser

MHAParser::parser_t& acmon::ac_monitor_t::p_parser

parent parser to insert monitor into

◆ use_mat

bool acmon::ac_monitor_t::use_mat
private

if true, use matrix monitor, else use vector monitor


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