#include "common/assert.h"
#include "cpp-common/bt2/clock-snapshot.hpp"
#include "cpp-common/bt2/trace-ir.hpp"
-#include "cpp-common/optional.hpp"
+#include "cpp-common/bt2s/optional.hpp"
#include "borrowed-object.hpp"
#include "internal/utils.hpp"
}
template <typename OtherLibObjT>
- _ThisCommonMessage& operator=(const CommonMessage<OtherLibObjT> val) noexcept
+ _ThisCommonMessage operator=(const CommonMessage<OtherLibObjT> val) noexcept
{
_ThisBorrowedObject::operator=(val);
return *this;
}
template <typename OtherLibObjT>
- CommonStreamBeginningMessage<LibObjT>&
+ CommonStreamBeginningMessage<LibObjT>
operator=(const CommonStreamBeginningMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);
bt_message_stream_beginning_set_default_clock_snapshot(this->libObjPtr(), val);
}
- nonstd::optional<ConstClockSnapshot> defaultClockSnapshot() const noexcept
+ bt2s::optional<ConstClockSnapshot> defaultClockSnapshot() const noexcept
{
const bt_clock_snapshot *libObjPtr;
const auto state = bt_message_stream_beginning_borrow_default_clock_snapshot_const(
return ConstClockSnapshot {libObjPtr};
}
- return nonstd::nullopt;
+ return bt2s::nullopt;
}
Shared shared() const noexcept
}
template <typename OtherLibObjT>
- CommonStreamEndMessage<LibObjT>&
+ CommonStreamEndMessage<LibObjT>
operator=(const CommonStreamEndMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);
bt_message_stream_end_set_default_clock_snapshot(this->libObjPtr(), val);
}
- nonstd::optional<ConstClockSnapshot> defaultClockSnapshot() const noexcept
+ bt2s::optional<ConstClockSnapshot> defaultClockSnapshot() const noexcept
{
const bt_clock_snapshot *libObjPtr;
const auto state = bt_message_stream_end_borrow_default_clock_snapshot_const(
return ConstClockSnapshot {libObjPtr};
}
- return nonstd::nullopt;
+ return bt2s::nullopt;
}
Shared shared() const noexcept
}
template <typename OtherLibObjT>
- CommonPacketBeginningMessage<LibObjT>&
+ CommonPacketBeginningMessage<LibObjT>
operator=(const CommonPacketBeginningMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);
}
template <typename OtherLibObjT>
- CommonPacketEndMessage<LibObjT>&
+ CommonPacketEndMessage<LibObjT>
operator=(const CommonPacketEndMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);
}
template <typename OtherLibObjT>
- CommonEventMessage<LibObjT>& operator=(const CommonEventMessage<OtherLibObjT> val) noexcept
+ CommonEventMessage<LibObjT> operator=(const CommonEventMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);
return *this;
}
template <typename OtherLibObjT>
- CommonDiscardedEventsMessage<LibObjT>&
+ CommonDiscardedEventsMessage<LibObjT>
operator=(const CommonDiscardedEventsMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);
bt_message_discarded_events_set_count(this->libObjPtr(), count);
}
- nonstd::optional<std::uint64_t> count() const noexcept
+ bt2s::optional<std::uint64_t> count() const noexcept
{
std::uint64_t count;
const auto avail = bt_message_discarded_events_get_count(this->libObjPtr(), &count);
return count;
}
- return nonstd::nullopt;
+ return bt2s::nullopt;
}
Shared shared() const noexcept
}
template <typename OtherLibObjT>
- CommonDiscardedPacketsMessage<LibObjT>&
+ CommonDiscardedPacketsMessage<LibObjT>
operator=(const CommonDiscardedPacketsMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);
bt_message_discarded_packets_set_count(this->libObjPtr(), count);
}
- nonstd::optional<std::uint64_t> count() const noexcept
+ bt2s::optional<std::uint64_t> count() const noexcept
{
std::uint64_t count;
const auto avail = bt_message_discarded_packets_get_count(this->libObjPtr(), &count);
return count;
}
- return nonstd::nullopt;
+ return bt2s::nullopt;
}
Shared shared() const noexcept
}
template <typename OtherLibObjT>
- CommonMessageIteratorInactivityMessage<LibObjT>&
+ CommonMessageIteratorInactivityMessage<LibObjT>
operator=(const CommonMessageIteratorInactivityMessage<OtherLibObjT> val) noexcept
{
_ThisCommonMessage::operator=(val);