A class dealing with caching and handling ParmDB entries.
More...
#include <ParmCache.h>
A class dealing with caching and handling ParmDB entries.
ParmCache caches the parm records for a given work domain.
◆ ParmCache() [1/2]
| dp3::parmdb::ParmCache::ParmCache |
( |
ParmSet & |
| ) |
|
Set up a cache. Attach it to he given ParmSet. No work domain is set yet; this has to be done later using the reset function.
◆ ParmCache() [2/2]
| dp3::parmdb::ParmCache::ParmCache |
( |
ParmSet & |
, |
|
|
const Box & |
workDomain |
|
) |
| |
Set up a cache for the given work domain. Attach it to the given ParmSet. Note that nameIds in the ParmSet might get changed when new values are written.
◆ cacheValues()
| void dp3::parmdb::ParmCache::cacheValues |
( |
| ) |
|
Cache the values of the parameters in the attached ParmSet for the current work domain. It will only do it for the parameters not prefetched yet. It makes it possible to prefetch the values of parameters added to the ParmSet since the last cacheValues.
◆ clear()
| void dp3::parmdb::ParmCache::clear |
( |
| ) |
|
◆ flush()
| void dp3::parmdb::ParmCache::flush |
( |
| ) |
|
Flush the cache which means that all updates are written into the appropriate ParmDB tables.
◆ getAxisMappingCache()
◆ getParmSet() [1/2]
| ParmSet& dp3::parmdb::ParmCache::getParmSet |
( |
| ) |
|
|
inline |
Get access to the underlying ParmSet.
◆ getParmSet() [2/2]
| const ParmSet& dp3::parmdb::ParmCache::getParmSet |
( |
| ) |
const |
|
inline |
◆ getValueSet() [1/2]
Get the value set for the given parm.
◆ getValueSet() [2/2]
◆ reset()
| void dp3::parmdb::ParmCache::reset |
( |
const Box & |
workDomain | ) |
|
Reset the work domain which will clear the cache. A new prefetch should be done the get the values for the new work domain.
◆ setSolveGrid()
| void dp3::parmdb::ParmCache::setSolveGrid |
( |
ParmId |
parmid, |
|
|
const Grid & |
solveGrid |
|
) |
| |
Check for a solvable parm if the domains in the value set match the given solve domains. The solve domains can exceed the work domain. If they exceed, they are limited to the work domain. If the value set has only the default value, it is replaced by a value set with values for each solve domain.
The documentation for this class was generated from the following file: