object_t oid;
snapid_t snap;
uint32_t hash;
+private:
bool max;
+public:
int64_t pool;
string nspace;
void decode(json_spirit::Value& v);
void dump(Formatter *f) const;
static void generate_test_instances(list<hobject_t*>& o);
+ friend bool operator<(const hobject_t&, const hobject_t&);
+ friend bool operator>(const hobject_t&, const hobject_t&);
+ friend bool operator<=(const hobject_t&, const hobject_t&);
+ friend bool operator>=(const hobject_t&, const hobject_t&);
+ friend bool operator==(const hobject_t&, const hobject_t&);
+ friend bool operator!=(const hobject_t&, const hobject_t&);
};
WRITE_CLASS_ENCODER(hobject_t)
ASSERT_EQ(r, 0);
listed.insert(objects.begin(), objects.end());
if (objects.size() < 50) {
- ASSERT_TRUE(next.max);
+ ASSERT_TRUE(next.is_max());
break;
}
objects.clear();
ASSERT_TRUE(sorted(objects));
objects_set.insert(objects.begin(), objects.end());
objects.clear();
- if (next.max) break;
+ if (next.is_max()) break;
current = next;
}
ASSERT_EQ(objects_set.size(), available_objects.size());
listed.insert(*i);
}
if (objects.size() < 50) {
- ASSERT_TRUE(next.max);
+ ASSERT_TRUE(next.is_max());
break;
}
objects.clear();