void seek(uint64_t ofs);
void operator++();
- bool operator==(const obj_iterator& rhs) {
+ bool operator==(const obj_iterator& rhs) const {
return (ofs == rhs.ofs);
}
- bool operator!=(const obj_iterator& rhs) {
+ bool operator!=(const obj_iterator& rhs) const {
return (ofs != rhs.ofs);
}
const rgw_obj_select& get_location() {
friend class RGWObjManifest;
void dump(Formatter *f) const;
- };
+ }; // class obj_iterator
const obj_iterator& obj_begin();
const obj_iterator& obj_end();
};
};
WRITE_CLASS_ENCODER(RGWObjManifest)
-
s.append(buf);
return s;
}
- string get_part(string& part) const {
+ string get_part(const string& part) const {
string s = prefix;
s.append(".");
s.append(part);
const string& get_key() const {
return oid;
}
- bool from_meta(string& meta) {
+ bool from_meta(const string& meta) {
int end_pos = meta.rfind('.'); // search for ".meta"
if (end_pos < 0)
return false;