#include <babeltrace2/babeltrace.h>
-#include "borrowed-obj.hpp"
+#include "borrowed-object.hpp"
namespace bt2 {
-
namespace internal {
template <typename ValueT>
} /* namespace internal */
template <typename LibObjT>
-class ConstIntegerRange final : public BorrowedObj<LibObjT>
+class ConstIntegerRange final : public BorrowedObject<LibObjT>
{
private:
- using typename BorrowedObj<LibObjT>::_ThisBorrowedObj;
- using typename BorrowedObj<LibObjT>::_LibObjPtr;
- using _ThisConstIntegerRange = ConstIntegerRange<LibObjT>;
+ using typename BorrowedObject<LibObjT>::_ThisBorrowedObject;
+ using typename BorrowedObject<LibObjT>::_LibObjPtr;
public:
using Value =
std::uint64_t, std::int64_t>::type;
public:
- explicit ConstIntegerRange(const _LibObjPtr libObjPtr) noexcept : _ThisBorrowedObj {libObjPtr}
- {
- }
-
- ConstIntegerRange(const _ThisConstIntegerRange& range) noexcept : _ThisBorrowedObj {range}
- {
- }
-
- _ThisConstIntegerRange& operator=(const _ThisConstIntegerRange& range) noexcept
+ explicit ConstIntegerRange(const _LibObjPtr libObjPtr) noexcept :
+ _ThisBorrowedObject {libObjPtr}
{
- _ThisBorrowedObj::operator=(range);
- return *this;
}
- bool operator==(const _ThisConstIntegerRange& other) const noexcept
+ bool operator==(const ConstIntegerRange& other) const noexcept
{
return internal::ConstIntegerRangeSpec<LibObjT>::isEqual(this->libObjPtr(),
other.libObjPtr());
}
- bool operator!=(const _ThisConstIntegerRange& other) const noexcept
+ bool operator!=(const ConstIntegerRange& other) const noexcept
{
return !(*this == other);
}