25class FieldSliceSet :
public std::set<const PHV::FieldSlice *, PHV::FieldSlice::Less> {
30 if (size() != other.size())
return false;
33 auto it2 = other.begin();
34 while (it1 != end()) {
35 if (!PHV::FieldSlice::equal(*it1, *it2))
return false;
44 if (size() != other.size())
return size() < other.size();
47 auto it2 = other.begin();
48 while (it1 != end()) {
49 if (!PHV::FieldSlice::equal(*it1, *it2))
return PHV::FieldSlice::less(*it1, *it2);
58 if (size() != other.size())
return size() > other.size();
61 auto it2 = other.begin();
62 while (it1 != end()) {
63 if (!PHV::FieldSlice::equal(*it1, *it2))
return PHV::FieldSlice::greater(*it1, *it2);
71 bool operator!=(
const FieldSliceSet &other)
const {
return !operator==(other); }
73 bool operator<=(
const FieldSliceSet &other)
const {
return !operator>(other); }
75 bool operator>=(
const FieldSliceSet &other)
const {
return !operator<(other); }