23 #include "ns3/pointer.h"    25 #include "ns3/uinteger.h"    38     .SetGroupName(
"Wimax")
    40     .AddAttribute (
"Type",
    59     .AddAttribute (
"TxQueue",
    63                    MakePointerChecker<WimaxMacQueue> ());
   126   return m_queue->Enqueue (packet, hdrType, hdr);
   132   return m_queue->Dequeue (packetType);
   138   return m_queue->Dequeue (packetType, availableByte);
   150   return !
m_queue->IsEmpty (packetType);
   162       return "Initial Ranging";
 
Smart pointer class similar to boost::intrusive_ptr. 
 
const FragmentsQueue GetFragmentsQueue(void) const
get a queue of received fragments 
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
 
void FragmentEnqueue(Ptr< const Packet > fragment)
enqueue a received packet (that is a fragment) into the fragments queue 
 
ServiceFlow * m_serviceFlow
service flow 
 
enum Cid::Type m_cidType
CID type. 
 
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate. 
 
uint8_t GetSchedulingType(void) const
 
Class implementing the device packet queue. 
 
ServiceFlow * GetServiceFlow(void) const
 
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
 Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
 
Hold variables of type enum. 
 
Cid GetCid(void) const
Get CID function. 
 
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
 Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
 
WimaxConnection(Cid cid, enum Cid::Type type)
Constructor. 
 
Ptr< WimaxMacQueue > GetQueue(void) const
 
virtual void DoDispose(void)
Destructor implementation. 
 
void ClearFragmentsQueue(void)
delete all enqueued fragments 
 
bool Enqueue(Ptr< Packet > packet, const MacHeaderType &hdrType, const GenericMacHeader &hdr)
enqueue a packet in the queue of the connection 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
Hold objects of type Ptr<T>. 
 
std::string GetTypeStr(void) const
Get type string. 
 
This class implements service flows as described by the IEEE-802.16 standard. 
 
std::list< Ptr< const Packet > > FragmentsQueue
Definition of Fragments Queue data type. 
 
Ptr< Packet > Dequeue(MacHeaderType::HeaderType packetType=MacHeaderType::HEADER_TYPE_GENERIC)
dequeue a packet from the queue of the connection 
 
enum ServiceFlow::SchedulingType GetSchedulingType(void) const
Get scheduling type. 
 
void SetServiceFlow(ServiceFlow *serviceFlow)
set the service flow associated to this connection 
 
FragmentsQueue m_fragmentsQueue
fragments queue 
 
static TypeId GetTypeId(void)
Get the type ID. 
 
Ptr< const AttributeChecker > MakeEnumChecker(int v, std::string n, Ts... args)
Make an EnumChecker pre-configured with a set of allowed values by name. 
 
A base class which provides memory management and object aggregation. 
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
Set the parent TypeId. 
 
enum Cid::Type GetType(void) const
Get type function. 
 
bool HasPackets(void) const
 
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters. 
 
Ptr< WimaxMacQueue > m_queue
queue