libdballe  7.21
Public Member Functions | Public Attributes | List of all members
dballe::db::v7::State Struct Reference

Cache intermediate results during a database transaction, to avoid hitting the database multiple times when we already know values from previous operations. More...

#include <state.h>

Public Member Functions

stations_t::iterator add_station (const StationDesc &desc, const StationState &state)
 
levtrs_t::iterator add_levtr (const LevTrDesc &desc, const LevTrState &state)
 
stationvalues_t::iterator add_stationvalue (const StationValueDesc &desc, const StationValueState &state)
 
values_t::iterator add_value (const ValueDesc &desc, const ValueState &state)
 
void clear ()
 Clear the state, removing all cached data.
 

Public Attributes

stations_t stations
 
levtrs_t levtrs
 
levtr_id_t levtr_ids
 
stationvalues_t stationvalues
 
values_t values
 
std::unordered_set< int > stationvalues_new
 
std::unordered_set< int > values_new
 

Detailed Description

Cache intermediate results during a database transaction, to avoid hitting the database multiple times when we already know values from previous operations.


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