#include <babeltrace2/babeltrace.h>
+#include "borrowed-object-iterator.hpp"
#include "borrowed-object.hpp"
-#include "common-iterator.hpp"
#include "exc.hpp"
#include "integer-range.hpp"
#include "internal/utils.hpp"
{
private:
using typename BorrowedObject<LibObjT>::_ThisBorrowedObject;
- using typename BorrowedObject<LibObjT>::_LibObjPtr;
using _ConstLibObjT = typename std::add_const<LibObjT>::type;
- using _RefFuncs = internal::IntegerRangeSetRefFuncs<_ConstLibObjT>;
using _Spec = internal::CommonIntegerRangeSetSpec<_ConstLibObjT>;
- using _ThisCommonIntegerRangeSet = CommonIntegerRangeSet<LibObjT>;
public:
- using Shared = SharedObject<_ThisCommonIntegerRangeSet, LibObjT, _RefFuncs>;
+ using typename BorrowedObject<LibObjT>::LibObjPtr;
+
+ using Shared = SharedObject<CommonIntegerRangeSet, LibObjT,
+ internal::IntegerRangeSetRefFuncs<_ConstLibObjT>>;
using Range = typename std::conditional<
std::is_same<_ConstLibObjT, const bt_integer_range_set_unsigned>::value,
ConstUnsignedIntegerRange, ConstSignedIntegerRange>::type;
using Value = typename Range::Value;
- using Iterator = CommonIterator<CommonIntegerRangeSet, Range>;
+ using Iterator = BorrowedObjectIterator<CommonIntegerRangeSet>;
- explicit CommonIntegerRangeSet(const _LibObjPtr libObjPtr) noexcept :
+ explicit CommonIntegerRangeSet(const LibObjPtr libObjPtr) noexcept :
_ThisBorrowedObject {libObjPtr}
{
}
}
template <typename OtherLibObjT>
- _ThisCommonIntegerRangeSet&
- operator=(const CommonIntegerRangeSet<OtherLibObjT> rangeSet) noexcept
+ CommonIntegerRangeSet operator=(const CommonIntegerRangeSet<OtherLibObjT> rangeSet) noexcept
{
_ThisBorrowedObject::operator=(rangeSet);
return *this;