src/core/model/map-scheduler.cc
changeset 9134 7a750f032acd
parent 7383 c5e131450339
child 9138 967a214aeb54
equal deleted inserted replaced
9133:bcf7cef191c1 9134:7a750f032acd
    32 NS_OBJECT_ENSURE_REGISTERED (MapScheduler);
    32 NS_OBJECT_ENSURE_REGISTERED (MapScheduler);
    33 
    33 
    34 TypeId
    34 TypeId
    35 MapScheduler::GetTypeId (void)
    35 MapScheduler::GetTypeId (void)
    36 {
    36 {
       
    37   NS_LOG_FUNCTION_NOARGS ();
    37   static TypeId tid = TypeId ("ns3::MapScheduler")
    38   static TypeId tid = TypeId ("ns3::MapScheduler")
    38     .SetParent<Scheduler> ()
    39     .SetParent<Scheduler> ()
    39     .AddConstructor<MapScheduler> ()
    40     .AddConstructor<MapScheduler> ()
    40   ;
    41   ;
    41   return tid;
    42   return tid;
    42 }
    43 }
    43 
    44 
    44 MapScheduler::MapScheduler ()
    45 MapScheduler::MapScheduler ()
    45 {
    46 {
       
    47   NS_LOG_FUNCTION (this);
    46 }
    48 }
    47 MapScheduler::~MapScheduler ()
    49 MapScheduler::~MapScheduler ()
    48 {
    50 {
       
    51   NS_LOG_FUNCTION (this);
    49 }
    52 }
    50 
    53 
    51 void
    54 void
    52 MapScheduler::Insert (const Event &ev)
    55 MapScheduler::Insert (const Event &ev)
    53 {
    56 {
    58 }
    61 }
    59 
    62 
    60 bool
    63 bool
    61 MapScheduler::IsEmpty (void) const
    64 MapScheduler::IsEmpty (void) const
    62 {
    65 {
       
    66   NS_LOG_FUNCTION (this);
    63   return m_list.empty ();
    67   return m_list.empty ();
    64 }
    68 }
    65 
    69 
    66 Scheduler::Event
    70 Scheduler::Event
    67 MapScheduler::PeekNext (void) const
    71 MapScheduler::PeekNext (void) const