|
pflib v3.9.5-27-gb09aabf
Pretty Fine HGCROC Interaction Library
|
temporarily apply parameters to a chip and then unset them More...
#include <TempParameters.h>
Classes | |
| class | Builder |
| Build a TempParameters class parameter by parameters. More... | |
Public Member Functions | |
| TempParameters (Chip &chip, const std::map< std::string, std::map< std::string, uint64_t > > ¶meters) | |
| applies the new parameters and holds the previous registers | |
| ~TempParameters () | |
| applies the previous registers back onto the chip | |
| TempParameters (const TempParameters &)=delete | |
| cannot copy or assign this lock | |
| TempParameters & | operator= (const TempParameters &)=delete |
Private Attributes | |
| Chip & | chip_ |
| handle to a Chip that has setRegisters | |
| std::map< int, std::map< int, uint8_t > > | previous_registers_ |
| values for previous registers that were touched upon construction | |
temporarily apply parameters to a chip and then unset them
We apply the parameters to the chip in the constructor and then unset them in the destructor. For example
This class also has a Builder sub-class which can be helpful for constructing a set of parameters.