25 const bool alreadyPresent =
hasKey(pass);
27 LOG(
debug) <<
"Changing parametrization corresponding to key " << pass <<
" from size " << mParameters[pass].size() <<
" to " << parName;
29 mParameters[pass] = std::unordered_map<std::string, paramvar_t>{};
30 LOG(
debug) <<
"Adding new parametrization corresponding to key " << pass <<
": " << parName;
32 mParameters[pass][parName] =
value;
41 return mParameters.at(pass).size();
46 for (
const auto& [pass, pars] : mParameters) {
55 LOG(info) <<
"empty pass: " << pass;
58 LOG(info) <<
"Pass \"" << pass <<
"\" with size " <<
size;
59 for (
const auto& [par,
value] : mParameters.at(pass)) {
60 LOG(info) <<
"par name = " << par <<
", value = " <<
value;
Definitions of the containers for the general parameters.
bool hasKey(const std::string &key) const
Checks if the container has a particular key e.g. a pass.
int getSize(const std::string &pass) const
void print() const
printing function for the full content of the container
bool addParameter(const std::string &pass, const std::string &parName, float value)
Function to add a single parameter conatiner based on the asked key, e.g. pass or version.
GLsizei const GLfloat * value
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"