10 #ifndef LOFAR_PARMDB_PARMMAP_H
11 #define LOFAR_PARMDB_PARMMAP_H
37 itsValueSets[name] = pset;
41 bool empty()
const {
return itsValueSets.empty(); }
44 unsigned int size()
const {
return itsValueSets.size(); }
52 typedef std::map<std::string, ParmValueSet>::iterator
iterator;
54 typedef std::map<std::string, ParmValueSet>::value_type
valueType;
59 iterator find(
const std::string& name) {
return itsValueSets.find(name); }
61 return itsValueSets.find(name);
66 void clear() { itsValueSets.clear(); }
75 std::map<std::string, ParmValueSet> itsValueSets;
A class containing the values of a parameter.
A map of parameter name to value set.
Definition: ParmMap.h:30
iterator find(const std::string &name)
Definition: ParmMap.h:59
std::map< std::string, ParmValueSet >::iterator iterator
Definition: ParmMap.h:52
std::map< std::string, ParmValueSet >::const_iterator const_iterator
Definition: ParmMap.h:53
void clear()
Clear the map.
Definition: ParmMap.h:66
ParmMap()
Set up a map for the given domain in the ParmDB.
Definition: ParmMap.h:33
const_iterator begin() const
Definition: ParmMap.h:56
unsigned int size() const
Return the size of the map.
Definition: ParmMap.h:44
const_iterator end() const
Definition: ParmMap.h:58
bool empty() const
Is the map empty?
Definition: ParmMap.h:41
iterator end()
Definition: ParmMap.h:57
const_iterator find(const std::string &name) const
Definition: ParmMap.h:60
std::map< std::string, ParmValueSet >::value_type valueType
Definition: ParmMap.h:54
const ParmValueSet & operator[](const std::string &name) const
iterator begin()
Definition: ParmMap.h:55
void define(const std::string &name, const ParmValueSet &pset)
Add or replace a ParmValueSet.
Definition: ParmMap.h:36
A class holding information of multiple domains of a parameter. ParmValueSet holds the information of...
Definition: ParmValue.h:146
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53