Autopysta
Loading...
Searching...
No Matches
params_cust Class Reference

Custom parameters class for storing key-value pairs. More...

#include <params.h>

Inheritance diagram for params_cust:
params

Public Member Functions

 params_cust ()
 Default constructor.
 
void add (const char *new_name, double new_value)
 Adds a new parameter to the dictionary.
 
double get (const char *name)
 Retrieves the value of a parameter by its key.
 
- Public Member Functions inherited from params
 params ()
 Default constructor for the params class.
 

Public Attributes

DiccionarioD
 Dictionary storing custom parameters.
 

Detailed Description

Custom parameters class for storing key-value pairs.

This class inherits from the params class and stores custom parameters in a dictionary-like structure. The params_cust class allows for flexible key-value pair storage of parameters.

Constructor & Destructor Documentation

◆ params_cust()

params_cust::params_cust ( )

Default constructor.

Initializes the dictionary for custom parameters.

Member Function Documentation

◆ add()

void params_cust::add ( const char * new_name,
double new_value )

Adds a new parameter to the dictionary.

Parameters
new_nameKey or name of the parameter.
new_valueValue associated with the parameter.

◆ get()

double params_cust::get ( const char * name)

Retrieves the value of a parameter by its key.

Parameters
nameKey or name of the parameter to retrieve.
Returns
The value associated with the given key.

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