cpp-common/bt2: rename `bt2::SharedObj` -> `bt2::SharedObject`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 13 Nov 2023 19:49:26 +0000 (14:49 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 Dec 2023 15:57:04 +0000 (10:57 -0500)
This is public now, so use the full name without abbreviation like
everything else does.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I1328a9c195061558ca442aed6e177ca43836b99c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11368
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/Makefile.am
src/cpp-common/bt2/clock-class.hpp
src/cpp-common/bt2/field-class.hpp
src/cpp-common/bt2/field-path.hpp
src/cpp-common/bt2/integer-range-set.hpp
src/cpp-common/bt2/message.hpp
src/cpp-common/bt2/shared-obj.hpp [deleted file]
src/cpp-common/bt2/shared-object.hpp [new file with mode: 0644]
src/cpp-common/bt2/trace-ir.hpp
src/cpp-common/bt2/value.hpp

index 2154e5ac6c2d13ea83ef4956e20a225034cfdff0..1f90d14bcaf4f4f0e01b7825358d8790f7930299 100644 (file)
@@ -25,7 +25,7 @@ noinst_HEADERS = \
        cpp-common/bt2/internal/utils.hpp \
        cpp-common/bt2/logging.hpp \
        cpp-common/bt2/message.hpp \
-       cpp-common/bt2/shared-obj.hpp \
+       cpp-common/bt2/shared-object.hpp \
        cpp-common/bt2/trace-ir.hpp \
        cpp-common/bt2/type-traits.hpp \
        cpp-common/bt2/value.hpp \
index 1aac1459b94c5d4b47f3e19bc48d96bca3bdea9c..82691b39ce4455162f7fb70c14d22319f415b09d 100644 (file)
@@ -20,7 +20,7 @@
 #include "borrowed-object.hpp"
 #include "exc.hpp"
 #include "internal/utils.hpp"
-#include "shared-obj.hpp"
+#include "shared-object.hpp"
 #include "value.hpp"
 
 namespace bt2 {
@@ -100,7 +100,7 @@ private:
     using _ThisCommonClockClass = CommonClockClass<LibObjT>;
 
 public:
-    using Shared = SharedObj<_ThisCommonClockClass, LibObjT, internal::ClockClassRefFuncs>;
+    using Shared = SharedObject<_ThisCommonClockClass, LibObjT, internal::ClockClassRefFuncs>;
 
     using UserAttributes =
         typename std::conditional<std::is_const<LibObjT>::value, ConstMapValue, MapValue>::type;
index f8f3d850a0276242e85c977fa057386e27df1999..168af69c6f4601e0b79774986936b53535e857ae 100644 (file)
@@ -22,7 +22,7 @@
 #include "field-path.hpp"
 #include "integer-range-set.hpp"
 #include "internal/utils.hpp"
-#include "shared-obj.hpp"
+#include "shared-object.hpp"
 #include "value.hpp"
 
 namespace bt2 {
@@ -67,7 +67,7 @@ struct CommonFieldClassSpec<const bt_field_class> final
 } /* namespace internal */
 
 template <typename ObjT, typename LibObjT>
-using SharedFieldClass = SharedObj<ObjT, LibObjT, internal::FieldClassRefFuncs>;
+using SharedFieldClass = SharedObject<ObjT, LibObjT, internal::FieldClassRefFuncs>;
 
 template <typename LibObjT>
 class CommonBitArrayFieldClass;
index caf1de001da9865985ffc7ef740a854e4140b4a5..97c1addd97e2a2a95d30169a5353a81afffec621 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "borrowed-object.hpp"
 #include "common-iter.hpp"
-#include "shared-obj.hpp"
+#include "shared-object.hpp"
 
 namespace bt2 {
 
@@ -127,7 +127,7 @@ struct FieldPathRefFuncs final
 class ConstFieldPath final : public BorrowedObject<const bt_field_path>
 {
 public:
-    using Shared = SharedObj<ConstFieldPath, const bt_field_path, internal::FieldPathRefFuncs>;
+    using Shared = SharedObject<ConstFieldPath, const bt_field_path, internal::FieldPathRefFuncs>;
 
     using Iterator = CommonIterator<ConstFieldPath, ConstFieldPathItem>;
 
index 3a05e1d3b8bc29df0dd58463481619ea4b986086..6a6a4b4d30316be25e4bf858064770f4f8106ff3 100644 (file)
@@ -17,7 +17,7 @@
 #include "exc.hpp"
 #include "integer-range.hpp"
 #include "internal/utils.hpp"
-#include "shared-obj.hpp"
+#include "shared-object.hpp"
 
 namespace bt2 {
 
@@ -173,7 +173,7 @@ private:
     using _ThisCommonIntegerRangeSet = CommonIntegerRangeSet<LibObjT>;
 
 public:
-    using Shared = SharedObj<_ThisCommonIntegerRangeSet, LibObjT, _RefFuncs>;
+    using Shared = SharedObject<_ThisCommonIntegerRangeSet, LibObjT, _RefFuncs>;
 
     using Range = typename std::conditional<
         std::is_same<_ConstLibObjT, const bt_integer_range_set_unsigned>::value,
index aee0e7c98a59d9e90988d99ca14e683f17ed27f0..1b49bed5470e56df8b79f4fec44faa4f7cf53532 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "borrowed-object.hpp"
 #include "internal/utils.hpp"
-#include "shared-obj.hpp"
+#include "shared-object.hpp"
 
 namespace bt2 {
 namespace internal {
@@ -40,7 +40,7 @@ struct MessageRefFuncs final
 } /* namespace internal */
 
 template <typename ObjT, typename LibObjT>
-using SharedMessage = SharedObj<ObjT, LibObjT, internal::MessageRefFuncs>;
+using SharedMessage = SharedObject<ObjT, LibObjT, internal::MessageRefFuncs>;
 
 template <typename LibObjT>
 class CommonStreamBeginningMessage;
diff --git a/src/cpp-common/bt2/shared-obj.hpp b/src/cpp-common/bt2/shared-obj.hpp
deleted file mode 100644 (file)
index d0a2d7f..0000000
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- * Copyright (c) 2019-2020 Philippe Proulx <pproulx@efficios.com>
- *
- * SPDX-License-Identifier: MIT
- */
-
-#ifndef BABELTRACE_CPP_COMMON_BT2_SHARED_OBJ_HPP
-#define BABELTRACE_CPP_COMMON_BT2_SHARED_OBJ_HPP
-
-#include "common/assert.h"
-#include "cpp-common/optional.hpp"
-
-namespace bt2 {
-
-/*
- * An instance of this class wraps an optional instance of `ObjT` and
- * manages the reference counting of the underlying libbabeltrace2
- * object.
- *
- * When you move a shared object, it becomes invalid, in that
- * operator*() and operator->() will either fail to assert in debug mode
- * or trigger a segmentation fault.
- *
- * `LibObjT` is the direct libbabeltrace2 object type, for example
- * `bt_stream_class` or `const bt_value`.
- *
- * RefFuncsT::get() must accept a `const LibObjT *` value and increment
- * its reference count.
- *
- * RefFuncsT::put() must accept a `const LibObjT *` value and decrement
- * its reference count.
- */
-template <typename ObjT, typename LibObjT, typename RefFuncsT>
-class SharedObj final
-{
-    /*
-     * This makes it possible for a
-     * `SharedObj<Something, bt_something, ...>` instance to get
-     * assigned an instance of
-     * `SharedObj<SpecificSomething, bt_something, ...>` (copy/move
-     * constructors and assignment operators), given that
-     * `SpecificSomething` inherits `Something`.
-     */
-    template <typename, typename, typename>
-    friend class SharedObj;
-
-private:
-    /*
-     * Builds a shared object from `obj` without getting a reference.
-     */
-    explicit SharedObj(const ObjT& obj) noexcept : _mObj {obj}
-    {
-    }
-
-    /*
-     * Common generic "copy" constructor.
-     *
-     * This constructor is meant to be delegated to by the copy
-     * constructor and the generic "copy" constructor.
-     *
-     * The second parameter, of type `int`, makes it possible to
-     * delegate by deduction as you can't explicit the template
-     * parameters when delegating to a constructor template.
-     */
-    template <typename OtherObjT, typename OtherLibObjT>
-    SharedObj(const SharedObj<OtherObjT, OtherLibObjT, RefFuncsT>& other, int) noexcept :
-        _mObj {other._mObj}
-    {
-        this->_getRef();
-    }
-
-    /*
-     * Common generic "move" constructor.
-     *
-     * See the comment of the common generic "copy" constructor above.
-     */
-    template <typename OtherObjT, typename OtherLibObjT>
-    SharedObj(SharedObj<OtherObjT, OtherLibObjT, RefFuncsT>&& other, int) noexcept :
-        _mObj {other._mObj}
-    {
-        /* Reset moved-from object */
-        other._reset();
-    }
-
-public:
-    /*
-     * Builds a shared object from `obj` without getting a reference.
-     */
-    static SharedObj createWithoutRef(const ObjT& obj) noexcept
-    {
-        return SharedObj {obj};
-    }
-
-    /*
-     * Builds a shared object from `libObjPtr` without getting a
-     * reference.
-     */
-    static SharedObj createWithoutRef(LibObjT * const libObjPtr) noexcept
-    {
-        return SharedObj::createWithoutRef(ObjT {libObjPtr});
-    }
-
-    /*
-     * Builds a shared object from `obj`, immediately getting a new
-     * reference.
-     */
-    static SharedObj createWithRef(const ObjT& obj) noexcept
-    {
-        SharedObj sharedObj {obj};
-
-        sharedObj._getRef();
-        return sharedObj;
-    }
-
-    /*
-     * Builds a shared object from `libObjPtr`, immediately getting a new
-     * reference.
-     */
-    static SharedObj createWithRef(LibObjT * const libObjPtr) noexcept
-    {
-        return SharedObj::createWithRef(ObjT {libObjPtr});
-    }
-
-    /*
-     * Copy constructor.
-     */
-    SharedObj(const SharedObj& other) noexcept : SharedObj {other, 0}
-    {
-    }
-
-    /*
-     * Move constructor.
-     */
-    SharedObj(SharedObj&& other) noexcept : SharedObj {std::move(other), 0}
-    {
-    }
-
-    /*
-     * Copy assignment operator.
-     */
-    SharedObj& operator=(const SharedObj& other) noexcept
-    {
-        /* Use generic "copy" assignment operator */
-        return this->operator=<ObjT, LibObjT>(other);
-    }
-
-    /*
-     * Move assignment operator.
-     */
-    SharedObj& operator=(SharedObj&& other) noexcept
-    {
-        /* Use generic "move" assignment operator */
-        return this->operator=<ObjT, LibObjT>(std::move(other));
-    }
-
-    /*
-     * Generic "copy" constructor.
-     *
-     * See the `friend class SharedObj` comment above.
-     */
-    template <typename OtherObjT, typename OtherLibObjT>
-    SharedObj(const SharedObj<OtherObjT, OtherLibObjT, RefFuncsT>& other) noexcept :
-        SharedObj {other, 0}
-    {
-    }
-
-    /*
-     * Generic "move" constructor.
-     *
-     * See the `friend class SharedObj` comment above.
-     */
-    template <typename OtherObjT, typename OtherLibObjT>
-    SharedObj(SharedObj<OtherObjT, OtherLibObjT, RefFuncsT>&& other) noexcept :
-        SharedObj {std::move(other), 0}
-    {
-    }
-
-    /*
-     * Generic "copy" assignment operator.
-     *
-     * See the `friend class SharedObj` comment above.
-     */
-    template <typename OtherObjT, typename OtherLibObjT>
-    SharedObj& operator=(const SharedObj<OtherObjT, OtherLibObjT, RefFuncsT>& other) noexcept
-    {
-        /* Put current object's reference */
-        this->_putRef();
-
-        /* Set new current object and get a reference */
-        _mObj = other._mObj;
-        this->_getRef();
-
-        return *this;
-    }
-
-    /*
-     * Generic "move" assignment operator.
-     *
-     * See the `friend class SharedObj` comment above.
-     */
-    template <typename OtherObjT, typename OtherLibObjT>
-    SharedObj& operator=(SharedObj<OtherObjT, OtherLibObjT, RefFuncsT>&& other) noexcept
-    {
-        /* Put current object's reference */
-        this->_putRef();
-
-        /* Set new current object */
-        _mObj = other._mObj;
-
-        /* Reset moved-from object */
-        other._reset();
-
-        return *this;
-    }
-
-    ~SharedObj()
-    {
-        this->_putRef();
-    }
-
-    ObjT& operator*() noexcept
-    {
-        BT_ASSERT_DBG(_mObj);
-        return *_mObj;
-    }
-
-    const ObjT& operator*() const noexcept
-    {
-        BT_ASSERT_DBG(_mObj);
-        return *_mObj;
-    }
-
-    ObjT *operator->() noexcept
-    {
-        BT_ASSERT_DBG(_mObj);
-        return &*_mObj;
-    }
-
-    const ObjT *operator->() const noexcept
-    {
-        BT_ASSERT_DBG(_mObj);
-        return &*_mObj;
-    }
-
-    /*
-     * Transfers the reference of the object which this shared object
-     * wrapper manages and returns it, making the caller become an active
-     * owner.
-     *
-     * This method makes this object invalid.
-     */
-    ObjT release() noexcept
-    {
-        BT_ASSERT_DBG(_mObj);
-        const auto obj = *_mObj;
-        this->_reset();
-        return obj;
-    }
-
-private:
-    /*
-     * Resets this shared object.
-     *
-     * To be used when moving it.
-     */
-    void _reset() noexcept
-    {
-        _mObj.reset();
-    }
-
-    /*
-     * Gets a new reference using the configured libbabeltrace2
-     * reference incrementation function.
-     */
-    void _getRef() const noexcept
-    {
-        if (_mObj) {
-            RefFuncsT::get(_mObj->libObjPtr());
-        }
-    }
-
-    /*
-     * Puts a reference using the configured libbabeltrace2 reference
-     * decrementation function.
-     */
-    void _putRef() const noexcept
-    {
-        if (_mObj) {
-            RefFuncsT::put(_mObj->libObjPtr());
-        }
-    }
-
-    nonstd::optional<ObjT> _mObj;
-};
-
-} /* namespace bt2 */
-
-#endif /* BABELTRACE_CPP_COMMON_BT2_SHARED_OBJ_HPP */
diff --git a/src/cpp-common/bt2/shared-object.hpp b/src/cpp-common/bt2/shared-object.hpp
new file mode 100644 (file)
index 0000000..1ffbe8b
--- /dev/null
@@ -0,0 +1,298 @@
+/*
+ * Copyright (c) 2019-2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef BABELTRACE_CPP_COMMON_BT2_SHARED_OBJECT_HPP
+#define BABELTRACE_CPP_COMMON_BT2_SHARED_OBJECT_HPP
+
+#include "common/assert.h"
+#include "cpp-common/optional.hpp"
+
+namespace bt2 {
+
+/*
+ * An instance of this class wraps an optional instance of `ObjT` and
+ * manages the reference counting of the underlying libbabeltrace2
+ * object.
+ *
+ * When you move a shared object, it becomes invalid, in that
+ * operator*() and operator->() will either fail to assert in debug mode
+ * or trigger a segmentation fault.
+ *
+ * `LibObjT` is the direct libbabeltrace2 object type, for example
+ * `bt_stream_class` or `const bt_value`.
+ *
+ * RefFuncsT::get() must accept a `const LibObjT *` value and increment
+ * its reference count.
+ *
+ * RefFuncsT::put() must accept a `const LibObjT *` value and decrement
+ * its reference count.
+ */
+template <typename ObjT, typename LibObjT, typename RefFuncsT>
+class SharedObject final
+{
+    /*
+     * This makes it possible for a
+     * `SharedObject<Something, bt_something, ...>` instance to get
+     * assigned an instance of
+     * `SharedObject<SpecificSomething, bt_something, ...>` (copy/move
+     * constructors and assignment operators), given that
+     * `SpecificSomething` inherits `Something`.
+     */
+    template <typename, typename, typename>
+    friend class SharedObject;
+
+private:
+    /*
+     * Builds a shared object from `obj` without getting a reference.
+     */
+    explicit SharedObject(const ObjT& obj) noexcept : _mObj {obj}
+    {
+    }
+
+    /*
+     * Common generic "copy" constructor.
+     *
+     * This constructor is meant to be delegated to by the copy
+     * constructor and the generic "copy" constructor.
+     *
+     * The second parameter, of type `int`, makes it possible to
+     * delegate by deduction as you can't explicit the template
+     * parameters when delegating to a constructor template.
+     */
+    template <typename OtherObjT, typename OtherLibObjT>
+    SharedObject(const SharedObject<OtherObjT, OtherLibObjT, RefFuncsT>& other, int) noexcept :
+        _mObj {other._mObj}
+    {
+        this->_getRef();
+    }
+
+    /*
+     * Common generic "move" constructor.
+     *
+     * See the comment of the common generic "copy" constructor above.
+     */
+    template <typename OtherObjT, typename OtherLibObjT>
+    SharedObject(SharedObject<OtherObjT, OtherLibObjT, RefFuncsT>&& other, int) noexcept :
+        _mObj {other._mObj}
+    {
+        /* Reset moved-from object */
+        other._reset();
+    }
+
+public:
+    /*
+     * Builds a shared object from `obj` without getting a reference.
+     */
+    static SharedObject createWithoutRef(const ObjT& obj) noexcept
+    {
+        return SharedObject {obj};
+    }
+
+    /*
+     * Builds a shared object from `libObjPtr` without getting a
+     * reference.
+     */
+    static SharedObject createWithoutRef(LibObjT * const libObjPtr) noexcept
+    {
+        return SharedObject::createWithoutRef(ObjT {libObjPtr});
+    }
+
+    /*
+     * Builds a shared object from `obj`, immediately getting a new
+     * reference.
+     */
+    static SharedObject createWithRef(const ObjT& obj) noexcept
+    {
+        SharedObject sharedObj {obj};
+
+        sharedObj._getRef();
+        return sharedObj;
+    }
+
+    /*
+     * Builds a shared object from `libObjPtr`, immediately getting a
+     * new reference.
+     */
+    static SharedObject createWithRef(LibObjT * const libObjPtr) noexcept
+    {
+        return SharedObject::createWithRef(ObjT {libObjPtr});
+    }
+
+    /*
+     * Copy constructor.
+     */
+    SharedObject(const SharedObject& other) noexcept : SharedObject {other, 0}
+    {
+    }
+
+    /*
+     * Move constructor.
+     */
+    SharedObject(SharedObject&& other) noexcept : SharedObject {std::move(other), 0}
+    {
+    }
+
+    /*
+     * Copy assignment operator.
+     */
+    SharedObject& operator=(const SharedObject& other) noexcept
+    {
+        /* Use generic "copy" assignment operator */
+        return this->operator=<ObjT, LibObjT>(other);
+    }
+
+    /*
+     * Move assignment operator.
+     */
+    SharedObject& operator=(SharedObject&& other) noexcept
+    {
+        /* Use generic "move" assignment operator */
+        return this->operator=<ObjT, LibObjT>(std::move(other));
+    }
+
+    /*
+     * Generic "copy" constructor.
+     *
+     * See the `friend class SharedObject` comment above.
+     */
+    template <typename OtherObjT, typename OtherLibObjT>
+    SharedObject(const SharedObject<OtherObjT, OtherLibObjT, RefFuncsT>& other) noexcept :
+        SharedObject {other, 0}
+    {
+    }
+
+    /*
+     * Generic "move" constructor.
+     *
+     * See the `friend class SharedObject` comment above.
+     */
+    template <typename OtherObjT, typename OtherLibObjT>
+    SharedObject(SharedObject<OtherObjT, OtherLibObjT, RefFuncsT>&& other) noexcept :
+        SharedObject {std::move(other), 0}
+    {
+    }
+
+    /*
+     * Generic "copy" assignment operator.
+     *
+     * See the `friend class SharedObject` comment above.
+     */
+    template <typename OtherObjT, typename OtherLibObjT>
+    SharedObject& operator=(const SharedObject<OtherObjT, OtherLibObjT, RefFuncsT>& other) noexcept
+    {
+        /* Put current object's reference */
+        this->_putRef();
+
+        /* Set new current object and get a reference */
+        _mObj = other._mObj;
+        this->_getRef();
+
+        return *this;
+    }
+
+    /*
+     * Generic "move" assignment operator.
+     *
+     * See the `friend class SharedObject` comment above.
+     */
+    template <typename OtherObjT, typename OtherLibObjT>
+    SharedObject& operator=(SharedObject<OtherObjT, OtherLibObjT, RefFuncsT>&& other) noexcept
+    {
+        /* Put current object's reference */
+        this->_putRef();
+
+        /* Set new current object */
+        _mObj = other._mObj;
+
+        /* Reset moved-from object */
+        other._reset();
+
+        return *this;
+    }
+
+    ~SharedObject()
+    {
+        this->_putRef();
+    }
+
+    ObjT& operator*() noexcept
+    {
+        BT_ASSERT_DBG(_mObj);
+        return *_mObj;
+    }
+
+    const ObjT& operator*() const noexcept
+    {
+        BT_ASSERT_DBG(_mObj);
+        return *_mObj;
+    }
+
+    ObjT *operator->() noexcept
+    {
+        BT_ASSERT_DBG(_mObj);
+        return &*_mObj;
+    }
+
+    const ObjT *operator->() const noexcept
+    {
+        BT_ASSERT_DBG(_mObj);
+        return &*_mObj;
+    }
+
+    /*
+     * Transfers the reference of the object which this shared object
+     * wrapper manages and returns it, making the caller become an
+     * active owner.
+     *
+     * This method makes this object invalid.
+     */
+    ObjT release() noexcept
+    {
+        BT_ASSERT_DBG(_mObj);
+        const auto obj = *_mObj;
+        this->_reset();
+        return obj;
+    }
+
+private:
+    /*
+     * Resets this shared object.
+     *
+     * To be used when moving it.
+     */
+    void _reset() noexcept
+    {
+        _mObj.reset();
+    }
+
+    /*
+     * Gets a new reference using the configured libbabeltrace2
+     * reference incrementation function.
+     */
+    void _getRef() const noexcept
+    {
+        if (_mObj) {
+            RefFuncsT::get(_mObj->libObjPtr());
+        }
+    }
+
+    /*
+     * Puts a reference using the configured libbabeltrace2 reference
+     * decrementation function.
+     */
+    void _putRef() const noexcept
+    {
+        if (_mObj) {
+            RefFuncsT::put(_mObj->libObjPtr());
+        }
+    }
+
+    nonstd::optional<ObjT> _mObj;
+};
+
+} /* namespace bt2 */
+
+#endif /* BABELTRACE_CPP_COMMON_BT2_SHARED_OBJECT_HPP */
index 293e99546afa2098b837d1a3d3ae30cedd1f14fd..790735aa63c304ceb5e0db000da0e240d53a439e 100644 (file)
@@ -20,7 +20,7 @@
 #include "field-class.hpp"
 #include "field.hpp"
 #include "internal/utils.hpp"
-#include "shared-obj.hpp"
+#include "shared-object.hpp"
 #include "value.hpp"
 
 namespace bt2 {
@@ -325,7 +325,7 @@ private:
                                                       ConstStructureField, StructureField>::type;
 
 public:
-    using Shared = SharedObj<_ThisCommonPacket, LibObjT, internal::PacketRefFuncs>;
+    using Shared = SharedObject<_ThisCommonPacket, LibObjT, internal::PacketRefFuncs>;
 
     explicit CommonPacket(const _LibObjPtr libObjPtr) noexcept : _ThisBorrowedObject {libObjPtr}
     {
@@ -496,7 +496,7 @@ private:
                                   CommonTrace<bt_trace>>::type;
 
 public:
-    using Shared = SharedObj<_ThisCommonStream, LibObjT, internal::StreamRefFuncs>;
+    using Shared = SharedObject<_ThisCommonStream, LibObjT, internal::StreamRefFuncs>;
 
     using Class = typename std::conditional<std::is_const<LibObjT>::value,
                                             CommonStreamClass<const bt_stream_class>,
@@ -729,7 +729,7 @@ private:
                                   CommonStream<bt_stream>>::type;
 
 public:
-    using Shared = SharedObj<_ThisCommonTrace, LibObjT, internal::TraceRefFuncs>;
+    using Shared = SharedObject<_ThisCommonTrace, LibObjT, internal::TraceRefFuncs>;
 
     using Class = typename std::conditional<std::is_const<LibObjT>::value,
                                             CommonTraceClass<const bt_trace_class>,
@@ -1066,7 +1066,7 @@ private:
                                   StructureFieldClass>::type;
 
 public:
-    using Shared = SharedObj<_ThisCommonEventClass, LibObjT, internal::EventClassRefFuncs>;
+    using Shared = SharedObject<_ThisCommonEventClass, LibObjT, internal::EventClassRefFuncs>;
 
     using UserAttributes =
         typename std::conditional<std::is_const<LibObjT>::value, ConstMapValue, MapValue>::type;
@@ -1448,7 +1448,7 @@ private:
         typename std::conditional<std::is_const<LibObjT>::value, ConstClockClass, ClockClass>::type;
 
 public:
-    using Shared = SharedObj<_ThisCommonStreamClass, LibObjT, internal::StreamClassRefFuncs>;
+    using Shared = SharedObject<_ThisCommonStreamClass, LibObjT, internal::StreamClassRefFuncs>;
 
     using UserAttributes =
         typename std::conditional<std::is_const<LibObjT>::value, ConstMapValue, MapValue>::type;
@@ -1930,7 +1930,7 @@ private:
                                                    CommonStreamClass<bt_stream_class>>::type;
 
 public:
-    using Shared = SharedObj<_ThisCommonTraceClass, LibObjT, internal::TraceClassRefFuncs>;
+    using Shared = SharedObject<_ThisCommonTraceClass, LibObjT, internal::TraceClassRefFuncs>;
 
     using UserAttributes =
         typename std::conditional<std::is_const<LibObjT>::value, ConstMapValue, MapValue>::type;
index 19bc357df5656576b0a8dfc3e6382a913a9af7b3..7596694c9630de1d84e13e7e8112270ba095374a 100644 (file)
@@ -22,7 +22,7 @@
 #include "common-iter.hpp"
 #include "exc.hpp"
 #include "internal/utils.hpp"
-#include "shared-obj.hpp"
+#include "shared-object.hpp"
 
 namespace bt2 {
 namespace internal {
@@ -43,7 +43,7 @@ struct ValueRefFuncs final
 } /* namespace internal */
 
 template <typename ObjT, typename LibObjT>
-using SharedValue = SharedObj<ObjT, LibObjT, internal::ValueRefFuncs>;
+using SharedValue = SharedObject<ObjT, LibObjT, internal::ValueRefFuncs>;
 
 template <typename LibObjT>
 class CommonNullValue;
This page took 0.036815 seconds and 4 git commands to generate.