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

AC variable space implementation. More...

Inheritance diagram for MHA_AC::algo_comm_class_t:
Inheritance graph

Public Member Functions

void insert_var (const std::string &name, comm_var_t cv) override
 
void insert_var_int (const std::string &name, int *ptr) override
 
void insert_var_vfloat (const std::string &name, std::vector< float > &vec) override
 
void insert_var_float (const std::string &name, float *ptr) override
 
void insert_var_double (const std::string &name, double *ptr) override
 
void remove_var (const std::string &name) override
 
void remove_ref (void *addr) override
 
bool is_var (const std::string &name) const override
 
comm_var_t get_var (const std::string &name) const override
 
int get_var_int (const std::string &name) const override
 
float get_var_float (const std::string &name) const override
 
double get_var_double (const std::string &name) const override
 
const std::vector< std::string > & get_entries () const override
 
size_t size () const override
 
virtual void set_prepared (bool prepared)
 The provider of this AC space must set the AC space to prepared at the end of its own prepare() operation and to not prepared at the beginning of its own release() operation. More...
 
- Public Member Functions inherited from MHA_AC::algo_comm_t
virtual ~algo_comm_t ()=default
 

Private Attributes

comm_var_map_t vars
 Storage. More...
 

Detailed Description

AC variable space implementation.

Member Function Documentation

◆ insert_var()

void MHA_AC::algo_comm_class_t::insert_var ( const std::string &  name,
comm_var_t  cv 
)
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ insert_var_int()

void MHA_AC::algo_comm_class_t::insert_var_int ( const std::string &  name,
int *  ptr 
)
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ insert_var_vfloat()

void MHA_AC::algo_comm_class_t::insert_var_vfloat ( const std::string &  name,
std::vector< float > &  vec 
)
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ insert_var_float()

void MHA_AC::algo_comm_class_t::insert_var_float ( const std::string &  name,
float *  ptr 
)
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ insert_var_double()

void MHA_AC::algo_comm_class_t::insert_var_double ( const std::string &  name,
double *  ptr 
)
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ remove_var()

void MHA_AC::algo_comm_class_t::remove_var ( const std::string &  name)
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ remove_ref()

void MHA_AC::algo_comm_class_t::remove_ref ( void *  addr)
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ is_var()

bool MHA_AC::algo_comm_class_t::is_var ( const std::string &  name) const
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ get_var()

MHA_AC::comm_var_t MHA_AC::algo_comm_class_t::get_var ( const std::string &  name) const
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ get_var_int()

int MHA_AC::algo_comm_class_t::get_var_int ( const std::string &  name) const
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ get_var_float()

float MHA_AC::algo_comm_class_t::get_var_float ( const std::string &  name) const
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ get_var_double()

double MHA_AC::algo_comm_class_t::get_var_double ( const std::string &  name) const
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ get_entries()

const std::vector< std::string > & MHA_AC::algo_comm_class_t::get_entries ( ) const
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ size()

size_t MHA_AC::algo_comm_class_t::size ( ) const
overridevirtual

Implements MHA_AC::algo_comm_t.

◆ set_prepared()

void MHA_AC::algo_comm_class_t::set_prepared ( bool  prepared)
virtual

The provider of this AC space must set the AC space to prepared at the end of its own prepare() operation and to not prepared at the beginning of its own release() operation.

Member Data Documentation

◆ vars

comm_var_map_t MHA_AC::algo_comm_class_t::vars
private

Storage.


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