22 #ifndef NANDRAD_IDGroupH 23 #define NANDRAD_IDGroupH 66 bool contains(
unsigned int id)
const;
94 #endif // NANDRAD_IDGroupH void setEncodedString(const std::string &encodedString)
Set ID group data from an encoded string.
std::vector< std::pair< unsigned int, unsigned int > > m_idIntervals
Model id intervals.
bool contains(unsigned int id) const
Returns true if either the wildcard flag m_allIDs is set, or the id is in m_ids or enclosed in m_idIn...
bool m_allIDs
If true, the encoded string containted a wildcard character * to indicate all IDs.
An IDGroup references one or more IDs and handles the encoding/decoding of an IDGroup-string.
std::string encodedString() const
Encode ID group data into a string representation.
const IDGroup operator+(const IDGroup &)
Merges two id groups.
bool operator!=(const IDGroup &other) const
Not-equal comparison operator by value.
std::set< unsigned int > m_ids
Set of individually listed IDs.
The namespace NANDRAD contains the data model classes that make up the NANDRAD solver input data...
bool empty() const
Returns true if neither the wildcard flag m_allIDs is set, nor any IDs are specified in m_ids or m_id...
bool operator==(const IDGroup &other) const
Comparison operator by value.