From efbd9e17cadbcb1aff4f501f31f6403f0d0f4209 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Thu, 28 Mar 2019 20:37:03 -0400 Subject: [PATCH] os: Update ObjectMap.h to work without using namespace Signed-off-by: Adam C. Emerson --- src/os/ObjectMap.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/os/ObjectMap.h b/src/os/ObjectMap.h index f903333ae7d..517d0ca98ef 100644 --- a/src/os/ObjectMap.h +++ b/src/os/ObjectMap.h @@ -32,24 +32,24 @@ class ObjectMap { public: CephContext* cct; boost::scoped_ptr db; - /// Set keys and values from specified map + /// std::Set keys and values from specified map virtual int set_keys( const ghobject_t &oid, ///< [in] object containing map - const map &set, ///< [in] key to value map to set + const std::map &set, ///< [in] key to value map to set const SequencerPosition *spos=0 ///< [in] sequencer position ) = 0; - /// Set header + /// std::Set header virtual int set_header( const ghobject_t &oid, ///< [in] object containing map - const bufferlist &bl, ///< [in] header to set + const ceph::buffer::list &bl, ///< [in] header to set const SequencerPosition *spos=0 ///< [in] sequencer position ) = 0; /// Retrieve header virtual int get_header( const ghobject_t &oid, ///< [in] object containing map - bufferlist *bl ///< [out] header to set + ceph::buffer::list *bl ///< [out] header to set ) = 0; /// Clear all map keys and values from oid @@ -61,7 +61,7 @@ public: /// Clear all map keys and values in to_clear from oid virtual int rm_keys( const ghobject_t &oid, ///< [in] object containing map - const set &to_clear, ///< [in] Keys to clear + const std::set &to_clear, ///< [in] Keys to clear const SequencerPosition *spos=0 ///< [in] sequencer position ) = 0; @@ -74,54 +74,54 @@ public: /// Get all keys and values virtual int get( const ghobject_t &oid, ///< [in] object containing map - bufferlist *header, ///< [out] Returned Header - map *out ///< [out] Returned keys and values + ceph::buffer::list *header, ///< [out] Returned Header + std::map *out ///< [out] Returned keys and values ) = 0; /// Get values for supplied keys virtual int get_keys( const ghobject_t &oid, ///< [in] object containing map - set *keys ///< [out] Keys defined on oid + std::set *keys ///< [out] Keys defined on oid ) = 0; /// Get values for supplied keys virtual int get_values( const ghobject_t &oid, ///< [in] object containing map - const set &keys, ///< [in] Keys to get - map *out ///< [out] Returned keys and values + const std::set &keys, ///< [in] Keys to get + std::map *out ///< [out] Returned keys and values ) = 0; /// Check key existence virtual int check_keys( const ghobject_t &oid, ///< [in] object containing map - const set &keys, ///< [in] Keys to check - set *out ///< [out] Subset of keys defined on oid + const std::set &keys, ///< [in] Keys to check + std::set *out ///< [out] Subset of keys defined on oid ) = 0; /// Get xattrs virtual int get_xattrs( const ghobject_t &oid, ///< [in] object - const set &to_get, ///< [in] keys to get - map *out ///< [out] subset of attrs/vals defined + const std::set &to_get, ///< [in] keys to get + std::map *out ///< [out] subset of attrs/vals defined ) = 0; /// Get all xattrs virtual int get_all_xattrs( const ghobject_t &oid, ///< [in] object - set *out ///< [out] attrs and values + std::set *out ///< [out] attrs and values ) = 0; - /// set xattrs in to_set + /// std::set xattrs in to_set virtual int set_xattrs( const ghobject_t &oid, ///< [in] object - const map &to_set,///< [in] attrs/values to set + const std::map &to_set,///< [in] attrs/values to set const SequencerPosition *spos=0 ///< [in] sequencer position ) = 0; /// remove xattrs in to_remove virtual int remove_xattrs( const ghobject_t &oid, ///< [in] object - const set &to_remove, ///< [in] attrs to remove + const std::set &to_remove, ///< [in] attrs to remove const SequencerPosition *spos=0 ///< [in] sequencer position ) = 0; -- 2.39.5