blob: de2dc5191912e54fdc700c818ce3996ec25932a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include <bitset>
#include <string>
#include <list>
#include <set>
#include <vector>
#include <forward_list>
#include <iosfwd>
#include <map>
namespace mbgl {
struct ClipID {
ClipID() {}
ClipID(const std::string &mask_, const std::string &reference_) : mask(mask_), reference(reference_) {}
std::bitset<8> mask;
std::bitset<8> reference;
bool operator==(const ClipID &other) const {
return mask == other.mask && reference == other.reference;
}
ClipID& operator|=(const ClipID &other) {
mask |= other.mask;
reference |= other.reference;
return *this;
}
};
::std::ostream& operator<<(::std::ostream& os, const ClipID& rhs);
} // namespace mbgl
|