util: add deprecated attribute to aliases documented as such
Change-Id: I334f0c3e072f773260d96f9cfe8f6029c256c41a
This commit is contained in:
1 parent
9404892918
commit
747cb45c16
8 files changed
+23
-19
No files matched your search
@@ -201,7 +201,7 @@ NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE:
|
||||
|
||||
namespace util {
|
||||
/// \deprecated Use ndn::DummyClientFace
|
||||
using DummyClientFace = ::ndn::DummyClientFace;
|
||||
using DummyClientFace [[deprecated("use ndn::DummyClientFace")]] = ::ndn::DummyClientFace;
|
||||
} // namespace util
|
||||
|
||||
} // namespace ndn
|
||||
|
||||
@@ -117,17 +117,20 @@ private:
|
||||
exponentialBackoff(lp::Nack nack);
|
||||
|
||||
public:
|
||||
/** \brief Fires when a Nack is received.
|
||||
/**
|
||||
* \brief Fires when a Nack is received.
|
||||
*/
|
||||
Signal<NotificationSubscriberBase, lp::Nack> onNack;
|
||||
ndn::signal::Signal<NotificationSubscriberBase, lp::Nack> onNack;
|
||||
|
||||
/** \brief Fires when no Notification is received within getInterestLifetime() period.
|
||||
/**
|
||||
* \brief Fires when no Notification is received within getInterestLifetime() period.
|
||||
*/
|
||||
Signal<NotificationSubscriberBase> onTimeout;
|
||||
ndn::signal::Signal<NotificationSubscriberBase> onTimeout;
|
||||
|
||||
/** \brief Fires when a Data packet in the Notification Stream cannot be decoded as Notification.
|
||||
/**
|
||||
* \brief Fires when a Data packet in the notification stream cannot be decoded as a Notification.
|
||||
*/
|
||||
Signal<NotificationSubscriberBase, Data> onDecodeError;
|
||||
ndn::signal::Signal<NotificationSubscriberBase, Data> onDecodeError;
|
||||
|
||||
private:
|
||||
Face& m_face;
|
||||
@@ -164,10 +167,11 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
/** \brief Fires when a Notification is received.
|
||||
* \note Removing all handlers will cause the subscriber to stop.
|
||||
/**
|
||||
* \brief Fires when a Notification is received.
|
||||
* \note Removing all handlers will cause the subscriber to stop.
|
||||
*/
|
||||
Signal<NotificationSubscriber, Notification> onNotification;
|
||||
ndn::signal::Signal<NotificationSubscriber, Notification> onNotification;
|
||||
|
||||
private:
|
||||
bool
|
||||
|
||||
@@ -321,7 +321,7 @@ NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE:
|
||||
|
||||
namespace util {
|
||||
/// \deprecated Use ndn::SegmentFetcher
|
||||
using SegmentFetcher = ::ndn::SegmentFetcher;
|
||||
using SegmentFetcher [[deprecated("use ndn::SegmentFetcher")]] = ::ndn::SegmentFetcher;
|
||||
} // namespace util
|
||||
|
||||
} // namespace ndn
|
||||
|
||||
@@ -79,7 +79,7 @@ private:
|
||||
|
||||
namespace util {
|
||||
/// \deprecated Use ndn::Segmenter
|
||||
using Segmenter = ::ndn::Segmenter;
|
||||
using Segmenter [[deprecated("use ndn::Segmenter")]] = ::ndn::Segmenter;
|
||||
} // namespace util
|
||||
|
||||
} // namespace ndn
|
||||
|
||||
@@ -102,7 +102,7 @@ private:
|
||||
|
||||
namespace ndn::util::signal {
|
||||
/// \deprecated Use ndn::signal::Connection
|
||||
using Connection = ::ndn::signal::Connection;
|
||||
using Connection [[deprecated("use ndn::signal::Connection")]] = ::ndn::signal::Connection;
|
||||
} // namespace ndn::util::signal
|
||||
|
||||
#endif // NDN_CXX_UTIL_SIGNAL_CONNECTION_HPP
|
||||
@@ -98,7 +98,7 @@ ScopedConnection::operator=(ScopedConnection&&) noexcept = default;
|
||||
|
||||
namespace ndn::util::signal {
|
||||
/// \deprecated Use ndn::signal::ScopedConnection
|
||||
using ScopedConnection = ::ndn::signal::ScopedConnection;
|
||||
using ScopedConnection [[deprecated("use ndn::signal::ScopedConnection")]] = ::ndn::signal::ScopedConnection;
|
||||
} // namespace ndn::util::signal
|
||||
|
||||
#endif // NDN_CXX_UTIL_SIGNAL_SCOPED_CONNECTION_HPP
|
||||
@@ -241,7 +241,7 @@ Signal<Owner, TArgs...>::operator()(const TArgs&... args, const DummyExtraArg&)
|
||||
namespace ndn::util {
|
||||
/// \deprecated Use ndn::signal::Signal
|
||||
template<typename Owner, typename... TArgs>
|
||||
using Signal = ::ndn::signal::Signal<Owner, TArgs...>;
|
||||
using Signal [[deprecated("use ndn::signal::Signal")]] = ::ndn::signal::Signal<Owner, TArgs...>;
|
||||
} // namespace ndn::util
|
||||
|
||||
#endif // NDN_CXX_UTIL_SIGNAL_SIGNAL_HPP
|
||||
@@ -204,9 +204,9 @@ public:
|
||||
static constexpr bool is_steady = ::boost::chrono::system_clock::is_steady;
|
||||
|
||||
/// \deprecated Use time_point
|
||||
using TimePoint = time_point;
|
||||
using TimePoint [[deprecated("use system_clock::time_point")]] = time_point;
|
||||
/// \deprecated Use duration
|
||||
using Duration = duration;
|
||||
using Duration [[deprecated("use system_clock::duration")]] = duration;
|
||||
|
||||
static time_point
|
||||
now() noexcept;
|
||||
@@ -236,9 +236,9 @@ public:
|
||||
static constexpr bool is_steady = true;
|
||||
|
||||
/// \deprecated Use time_point
|
||||
using TimePoint = time_point;
|
||||
using TimePoint [[deprecated("use steady_clock::time_point")]] = time_point;
|
||||
/// \deprecated Use duration
|
||||
using Duration = duration;
|
||||
using Duration [[deprecated("use steady_clock::duration")]] = duration;
|
||||
|
||||
static time_point
|
||||
now() noexcept;
|
||||
|
||||
Reference in new issue
Block a user