| gtranslationTable
    | 
Provides a translation table for GElectronic objects indexed by a vector-based identity. More...
#include <gtranslationTable.h>


| Public Member Functions | |
| GTranslationTable (const std::shared_ptr< GOptions > &gopt) | |
| Constructor. | |
| void | addGElectronicWithIdentity (const std::vector< int > &identity, const GElectronic >ron) | 
| Adds a GElectronic configuration with the provided identity. | |
| GElectronic | getElectronics (const std::vector< int > &identity) const | 
| Retrieves the GElectronic configuration for the provided identity. | |
This class maps a vector<int> identity (converted into a string key) to a GElectronic object.
Definition at line 21 of file gtranslationTable.h.
| 
 | inlineexplicit | 
| gopt | Pointer to GOptions | 
Definition at line 28 of file gtranslationTable.h.
| void GTranslationTable::addGElectronicWithIdentity | ( | const std::vector< int > & | identity, | 
| const GElectronic & | gtron ) | 
Adds a GElectronic object to the translation table using the provided identity.
If the identity already exists in the table, a warning is logged.
| identity | A vector of integers representing the unique identity. | 
| gtron | The GElectronic object to be added. | 
If the key already exists, logs a warning instead of overwriting.
| identity | A vector of integers representing the unique identity. | 
| gtron | The GElectronic object to be added. | 
Definition at line 40 of file gtranslationTable.cc.
| GElectronic GTranslationTable::getElectronics | ( | const std::vector< int > & | identity | ) | const | 
Retrieves the GElectronic object corresponding to the provided identity.
If the identity is not found, an error is logged and a default GElectronic is returned.
| identity | A vector of integers representing the unique identity. | 
Logs an error if the key is not found and returns a default constructed GElectronic.
| identity | A vector of integers representing the unique identity. | 
Definition at line 68 of file gtranslationTable.cc.