22 #ifndef NDN_DELAYED_CALL_TABLE_HPP
23 #define NDN_DELAYED_CALL_TABLE_HPP
26 #include <ndn-cpp/face.hpp>
65 getCallTime()
const {
return callTime_; }
72 callCallback()
const { callback_(); }
81 (
const ptr_lib::shared_ptr<const Entry>& x,
82 const ptr_lib::shared_ptr<const Entry>& y)
const
84 return x->callTime_ < y->callTime_;
94 std::deque<ptr_lib::shared_ptr<Entry> > table_;
double Milliseconds
A time interval represented as the number of milliseconds.
Definition: common.hpp:111
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
Definition: delayed-call-table.hpp:30
func_lib::function< void()> Callback
Face::Callback is used internally in callLater.
Definition: face.hpp:674
double MillisecondsSince1970
The calendar time represented as the number of milliseconds since 1/1/1970.
Definition: common.hpp:116
void callTimedOut()
Call and remove timed-out callback entries.
Definition: delayed-call-table.cpp:41
void callLater(Milliseconds delayMilliseconds, const Face::Callback &callback)
Call callback() after the given delay.
Definition: delayed-call-table.cpp:32
Compare shared_ptrs to Entry based only on callTime_.
Definition: delayed-call-table.hpp:77