Go to the documentation of this file.
30 Flags::Flags(
const bool &
b) : flags(), outOfRangeFlag(
b) {}
33 : flags(strlen(_flags)), outOfRangeFlag(false) {
34 for (std::size_t
i = 0;
i <
flags.size(); ++
i) {
45 throw std::invalid_argument(
"Could not parse input string " +
46 std::string(_flags) +
". Expected 0 or 1.");
52 : flags(_flags), outOfRangeFlag(false) {}
54 Flags::operator bool(
void)
const {
55 if (outOfRangeFlag)
return true;
56 for (std::size_t
i = 0;
i < flags.size(); ++
i)
57 if (flags[
i])
return true;
106 for (std::size_t
i = 0;
i < f2.
flags.size(); ++
i)
117 for (std::size_t
i = 0;
i < f2.
flags.size(); ++
i)
127 for (
auto f : fl.
flags) os << (
f ?
'1' :
'0');
134 while (is.get(
c).good()) {
137 fl.
flags.push_back(
false);
140 fl.
flags.push_back(
true);
145 throw std::invalid_argument(
"Could not parse input character " +
146 std::string(1,
c) +
". Expected 0 or 1.");
SOT_CORE_EXPORT std::istream & operator>>(std::istream &os, VectorMultiBound &v)
Flags & operator|=(const Flags &f2)
bool operator()(const size_type &i) const
Flags operator|(const Flags &f1, const Flags &f2)
Flags & operator&=(const Flags &f2)
void set(const std::size_t &i)
Flags operator!(void) const
Flags(const bool &b=false)
SOT_CORE_EXPORT std::ostream & operator<<(std::ostream &os, const VectorMultiBound &v)
std::vector< bool > flags
void unset(const std::size_t &i)
Flags operator&(const Flags &f1, const Flags &f2)
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31