39 .AddConstructor<HeapScheduler> ()
95 return (
id ==
Root ()) ?
true :
false;
102 return m_heap.size () - 1;
110 return (
id >=
m_heap.size ()) ?
true :
false;
142 return (
m_heap.size () == 1) ?
true :
false;
149 uint32_t index =
Last ();
162 uint32_t index =
start;
167 uint32_t tmp =
Smallest (left, right);
224 uint32_t uid = ev.key.m_uid;
225 for (uint32_t i = 1; i <
m_heap.size (); i++)
227 if (uid ==
m_heap[i].key.m_uid)
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
uint32_t Sibling(uint32_t id) const
ns3::EventImpl declarations.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
virtual void Insert(const Event &ev)
void TopDown(uint32_t start)
virtual Event RemoveNext(void)
This method cannot be invoked if the list is empty.
bool IsLessStrictly(uint32_t a, uint32_t b) const
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual Event PeekNext(void) const
static TypeId GetTypeId(void)
bool IsRoot(uint32_t id) const
virtual void Remove(const Event &ev)
void Exch(uint32_t a, uint32_t b)
uint32_t RightChild(uint32_t id) const
make Callback use a separate empty type
uint32_t Smallest(uint32_t a, uint32_t b) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool IsBottom(uint32_t id) const
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
uint32_t Last(void) const
virtual bool IsEmpty(void) const
uint32_t Parent(uint32_t id) const
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
uint32_t Root(void) const
uint32_t LeftChild(uint32_t id) const