ndn::util::scheduler::EventId Class Reference

Identifies a scheduled event. More...

#include <scheduler.hpp>

Public Member Functions

 EventId (std::nullptr_t=nullptr)
 Constructs an empty EventId. More...
 
 operator bool () const
 
bool operator!= (const EventId &other) const
 
bool operator== (const EventId &other) const
 
void reset ()
 clear this EventId More...
 

Friends

std::ostream & operator<< (std::ostream &os, const EventId &eventId)
 
class Scheduler
 

Detailed Description

Identifies a scheduled event.

Definition at line 52 of file scheduler.hpp.

Constructor & Destructor Documentation

ndn::util::scheduler::EventId::EventId ( std::nullptr_t  = nullptr)
inline

Constructs an empty EventId.

Note
EventId is implicitly convertible from nullptr.

Definition at line 59 of file scheduler.hpp.

Member Function Documentation

ndn::util::scheduler::EventId::operator bool ( ) const
explicit
Return values
trueThe event is valid.
falseThis EventId is empty, or the event is expired or cancelled.

Definition at line 54 of file scheduler.cpp.

bool ndn::util::scheduler::EventId::operator!= ( const EventId other) const
inline

Definition at line 77 of file scheduler.hpp.

bool ndn::util::scheduler::EventId::operator== ( const EventId other) const
Returns
whether this and other refer to the same event, or are both empty/expired/cancelled

Definition at line 60 of file scheduler.cpp.

void ndn::util::scheduler::EventId::reset ( )
inline

clear this EventId

Note
This does not cancel the event.
Postcondition
!(*this)

Definition at line 88 of file scheduler.hpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const EventId eventId 
)
friend

Definition at line 67 of file scheduler.cpp.

friend class Scheduler
friend

Definition at line 103 of file scheduler.hpp.