A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Cid Class Reference

#include <cid.h>

Public Types

enum  Type {
  BROADCAST = 1, INITIAL_RANGING, BASIC, PRIMARY,
  TRANSPORT, MULTICAST, PADDING
}
 

Public Member Functions

 Cid (void)
 
 Cid (uint16_t cid)
 
 ~Cid (void)
 
uint16_t GetIdentifier (void) const
 
bool IsBroadcast (void) const
 
bool IsInitialRanging (void) const
 
bool IsMulticast (void) const
 
bool IsPadding (void) const
 

Static Public Member Functions

static Cid Broadcast (void)
 
static Cid InitialRanging (void)
 
static Cid Padding (void)
 

Private Attributes

uint16_t m_identifier
 

Friends

class CidFactory
 
bool operator== (const Cid &lhs, const Cid &rhs)
 

Detailed Description

Definition at line 35 of file cid.h.

Member Enumeration Documentation

Enumerator
BROADCAST 
INITIAL_RANGING 
BASIC 
PRIMARY 
TRANSPORT 
MULTICAST 
PADDING 

Definition at line 38 of file cid.h.

Constructor & Destructor Documentation

ns3::Cid::Cid ( void  )

Definition at line 30 of file cid.cc.

References CID_UNINITIALIZED, and m_identifier.

ns3::Cid::Cid ( uint16_t  cid)

Definition at line 35 of file cid.cc.

References m_identifier.

ns3::Cid::~Cid ( void  )

Definition at line 40 of file cid.cc.

Member Function Documentation

Cid ns3::Cid::Broadcast ( void  )
static
Returns
the broadcast cid

Definition at line 72 of file cid.cc.

Referenced by ns3::CidFactory::Allocate(), ns3::WimaxNetDevice::CreateDefaultConnections(), and IsBroadcast().

+ Here is the caller graph for this function:

Cid ns3::Cid::InitialRanging ( void  )
static
bool ns3::Cid::IsBroadcast ( void  ) const
Returns
true if the cid is a broadcast cid, false otherwise

Definition at line 56 of file cid.cc.

References Broadcast().

Referenced by ns3::BaseStationNetDevice::DoReceive(), and ns3::BaseStationNetDevice::GetConnection().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ns3::Cid::IsInitialRanging ( void  ) const
Returns
true if the cid is an initial ranging cid, false otherwise

Definition at line 66 of file cid.cc.

References InitialRanging().

Referenced by ns3::BaseStationNetDevice::DoReceive(), ns3::BaseStationNetDevice::GetConnection(), and ns3::BSLinkManager::PerformRanging().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ns3::Cid::IsMulticast ( void  ) const
Returns
true if the cid is a multicast cid, false otherwise

Definition at line 51 of file cid.cc.

References m_identifier.

Referenced by ns3::SubscriberStationNetDevice::DoReceive().

+ Here is the caller graph for this function:

bool ns3::Cid::IsPadding ( void  ) const
Returns
true if the cid is a padding cid, false otherwise

Definition at line 61 of file cid.cc.

References Padding().

+ Here is the call graph for this function:

Cid ns3::Cid::Padding ( void  )
static
Returns
the padding cid

Definition at line 77 of file cid.cc.

Referenced by ns3::CidFactory::Allocate(), and IsPadding().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class CidFactory
friend

Definition at line 87 of file cid.h.

bool operator== ( const Cid lhs,
const Cid rhs 
)
friend

Definition at line 87 of file cid.cc.

Member Data Documentation

uint16_t ns3::Cid::m_identifier
private

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