NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::scheduler::EventInfo Class Reference

Stores internal information about a scheduled event. More...

Inheritance diagram for ndn::scheduler::EventInfo:
Collaboration diagram for ndn::scheduler::EventInfo:

Public Member Functions

 EventInfo (time::nanoseconds after, EventCallback &&cb, uint32_t context)
 
NDN_CXX_NODISCARD time::nanoseconds expiresFromNow () const
 

Public Attributes

EventCallback callback
 
Scheduler::EventQueue::const_iterator queueIt
 
time::steady_clock::TimePoint expireTime
 
bool isExpired = false
 
uint32_t context = 0
 

Detailed Description

Stores internal information about a scheduled event.

Definition at line 31 of file scheduler.cpp.

Constructor & Destructor Documentation

◆ EventInfo()

ndn::scheduler::EventInfo::EventInfo ( time::nanoseconds  after,
EventCallback &&  cb,
uint32_t  context 
)
inline

Definition at line 34 of file scheduler.cpp.

References NDN_CXX_NODISCARD.

Member Function Documentation

◆ expiresFromNow()

NDN_CXX_NODISCARD time::nanoseconds ndn::scheduler::EventInfo::expiresFromNow ( ) const
inline

Definition at line 42 of file scheduler.cpp.

References expireTime, and ndn::time::steady_clock::now().

Referenced by ndn::scheduler::Scheduler::cancelAllEvents().

Member Data Documentation

◆ callback

EventCallback ndn::scheduler::EventInfo::callback

Definition at line 48 of file scheduler.cpp.

◆ queueIt

Scheduler::EventQueue::const_iterator ndn::scheduler::EventInfo::queueIt

Definition at line 49 of file scheduler.cpp.

◆ expireTime

time::steady_clock::TimePoint ndn::scheduler::EventInfo::expireTime

Definition at line 50 of file scheduler.cpp.

Referenced by expiresFromNow().

◆ isExpired

bool ndn::scheduler::EventInfo::isExpired = false

Definition at line 51 of file scheduler.cpp.

◆ context

uint32_t ndn::scheduler::EventInfo::context = 0

Definition at line 52 of file scheduler.cpp.


The documentation for this class was generated from the following file: