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

Cancels an event automatically upon destruction. More...

#include <scheduler.hpp>

Inheritance diagram for nfd::scheduler::ScopedEventId:
Collaboration diagram for nfd::scheduler::ScopedEventId:

Public Member Functions

 ScopedEventId ()
 
 ScopedEventId (const EventId &event)
 Implicit constructor from EventId. More...
 
 ScopedEventId (ScopedEventId &&other)
 Move constructor. More...
 
ScopedEventIdoperator= (const EventId &event)
 Assigns an event. More...
 
 ~ScopedEventId ()
 Cancels the event. More...
 
void cancel ()
 Cancels the event manually. More...
 
void release ()
 Releases the event so that it won't be cancelled when this ScopedEventId is destructed. More...
 

Detailed Description

Cancels an event automatically upon destruction.

Definition at line 60 of file scheduler.hpp.

Constructor & Destructor Documentation

◆ ScopedEventId() [1/3]

nfd::scheduler::ScopedEventId::ScopedEventId ( )

Definition at line 65 of file scheduler.cpp.

◆ ScopedEventId() [2/3]

nfd::scheduler::ScopedEventId::ScopedEventId ( const EventId event)

Implicit constructor from EventId.

Parameters
eventthe event to be cancelled upon destruction

Definition at line 69 of file scheduler.cpp.

◆ ScopedEventId() [3/3]

nfd::scheduler::ScopedEventId::ScopedEventId ( ScopedEventId &&  other)

Move constructor.

Definition at line 74 of file scheduler.cpp.

◆ ~ScopedEventId()

nfd::scheduler::ScopedEventId::~ScopedEventId ( )

Cancels the event.

Definition at line 90 of file scheduler.cpp.

References nfd::scheduler::cancel().

Member Function Documentation

◆ operator=()

ScopedEventId & nfd::scheduler::ScopedEventId::operator= ( const EventId event)

Assigns an event.

If a different event has been assigned to this instance previously, that event will be cancelled immediately.

Definition at line 81 of file scheduler.cpp.

References nfd::scheduler::cancel().

◆ cancel()

◆ release()

void nfd::scheduler::ScopedEventId::release ( )

Releases the event so that it won't be cancelled when this ScopedEventId is destructed.

Definition at line 102 of file scheduler.cpp.


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