9#include <util/misc/FlagSet.h>
37 int n = allowed_.size();
38 for (
int i=0; i < n; ++i) {
40 map_.insert(std::pair<char, bool>(c,
false));
51 int n = allowed_.size();
55 MapType::iterator iter = map_.begin();
56 for ( ; iter != map_.end(); ++iter) {
64 for (
unsigned int i = 0; i <
actual.size(); ++i) {
69 std::string msg =
"Unknown character ";
74 assert(map_.count(m));
77 assert(iter != map_.end());
void setActualOrdered(std::string actual)
Set the string of actual flag characters.
const std::string & allowed() const
Return the string of allowed characters.
const std::string & actual() const
Return the string of character for which flags are set.
void setAllowed(std::string allowed)
Set or reset the string of allowed flags.
FlagSet()
Default constructor.
File containing preprocessor macros for error handling.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
Utility classes for scientific computation.