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

Helper class to check sizes of configuration variable vectors. More...

Inheritance diagram for dc_simple::dc_vars_validator_t:
Inheritance graph

Public Member Functions

 dc_vars_validator_t (const dc_vars_t &v, unsigned int s)
 Checks that all vectors in v have size s or size 1. More...
 

Detailed Description

Helper class to check sizes of configuration variable vectors.

Constructor & Destructor Documentation

◆ dc_vars_validator_t()

dc_simple::dc_vars_validator_t::dc_vars_validator_t ( const dc_vars_t v,
unsigned int  s 
)

Checks that all vectors in v have size s or size 1.

Parameters
vAggregation of vectors to check the sizes of.
sDesired vector size for all vectors
Exceptions
MHA_Errorif s == 0.
MHA_Errorif the size of any vector in v is neither s nor 1.

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