A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | Friends | List of all members
ns3::dot11s::DestinationAddressUnit Class Reference

Describes an address unit in PREQ information element See 7.3.2.96 for more details. More...

#include "ie-dot11s-preq.h"

+ Inheritance diagram for ns3::dot11s::DestinationAddressUnit:

Public Member Functions

 DestinationAddressUnit ()
 
Mac48Address GetDestinationAddress () const
 Get destination address function. More...
 
uint32_t GetDestSeqNumber () const
 Get destination sequence number. More...
 
bool IsDo ()
 Is do function. More...
 
bool IsRf ()
 is RF function More...
 
bool IsUsn ()
 Is USN function. More...
 
void SetDestinationAddress (Mac48Address dest_address)
 Set destination address function. More...
 
void SetDestSeqNumber (uint32_t dest_seq_number)
 Set destination sequence number. More...
 
void SetFlags (bool doFlag, bool rfFlag, bool usnFlag)
 Set flags function. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< DestinationAddressUnit >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Attributes

Mac48Address m_destinationAddress
 destination address More...
 
uint32_t m_destSeqNumber
 destination sequence number More...
 
bool m_do
 DO. More...
 
bool m_rf
 RF. More...
 
bool m_usn
 USN. More...
 

Friends

bool operator== (const DestinationAddressUnit &a, const DestinationAddressUnit &b)
 equality operator More...
 

Detailed Description

Describes an address unit in PREQ information element See 7.3.2.96 for more details.

Definition at line 36 of file ie-dot11s-preq.h.

Constructor & Destructor Documentation

◆ DestinationAddressUnit()

ns3::dot11s::DestinationAddressUnit::DestinationAddressUnit ( )

Definition at line 31 of file ie-dot11s-preq.cc.

Member Function Documentation

◆ GetDestinationAddress()

Mac48Address ns3::dot11s::DestinationAddressUnit::GetDestinationAddress ( void  ) const

Get destination address function.

Returns
the MAC address

Definition at line 79 of file ie-dot11s-preq.cc.

References m_destinationAddress.

◆ GetDestSeqNumber()

uint32_t ns3::dot11s::DestinationAddressUnit::GetDestSeqNumber ( ) const

Get destination sequence number.

Returns
the destination sequence number

Definition at line 74 of file ie-dot11s-preq.cc.

References m_destSeqNumber.

◆ IsDo()

bool ns3::dot11s::DestinationAddressUnit::IsDo ( )

Is do function.

Returns
true if DO flag is set

Definition at line 58 of file ie-dot11s-preq.cc.

References m_do.

◆ IsRf()

bool ns3::dot11s::DestinationAddressUnit::IsRf ( )

is RF function

Returns
true if RF flag is set

Definition at line 64 of file ie-dot11s-preq.cc.

References m_rf.

◆ IsUsn()

bool ns3::dot11s::DestinationAddressUnit::IsUsn ( )

Is USN function.

Returns
true if USN flag set

Definition at line 69 of file ie-dot11s-preq.cc.

References m_usn.

◆ SetDestinationAddress()

void ns3::dot11s::DestinationAddressUnit::SetDestinationAddress ( Mac48Address  dest_address)

Set destination address function.

Parameters
dest_addressthe destination MAC address

Definition at line 53 of file ie-dot11s-preq.cc.

References m_destinationAddress.

◆ SetDestSeqNumber()

void ns3::dot11s::DestinationAddressUnit::SetDestSeqNumber ( uint32_t  dest_seq_number)

Set destination sequence number.

Parameters
dest_seq_numberthe destination sequence number

Definition at line 44 of file ie-dot11s-preq.cc.

References m_destSeqNumber, and m_usn.

◆ SetFlags()

void ns3::dot11s::DestinationAddressUnit::SetFlags ( bool  doFlag,
bool  rfFlag,
bool  usnFlag 
)

Set flags function.

Parameters
doFlagthe DO flag
rfFlagthe RF flag
usnFlagthe USN flag

Definition at line 36 of file ie-dot11s-preq.cc.

References m_do, m_rf, and m_usn.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const DestinationAddressUnit a,
const DestinationAddressUnit b 
)
friend

equality operator

Parameters
alhs
brhs
Returns
true if equal

Definition at line 384 of file ie-dot11s-preq.cc.

Member Data Documentation

◆ m_destinationAddress

Mac48Address ns3::dot11s::DestinationAddressUnit::m_destinationAddress
private

destination address

Definition at line 86 of file ie-dot11s-preq.h.

Referenced by GetDestinationAddress(), ns3::dot11s::operator==(), and SetDestinationAddress().

◆ m_destSeqNumber

uint32_t ns3::dot11s::DestinationAddressUnit::m_destSeqNumber
private

destination sequence number

Definition at line 87 of file ie-dot11s-preq.h.

Referenced by GetDestSeqNumber(), ns3::dot11s::operator==(), and SetDestSeqNumber().

◆ m_do

bool ns3::dot11s::DestinationAddressUnit::m_do
private

DO.

Definition at line 83 of file ie-dot11s-preq.h.

Referenced by IsDo(), ns3::dot11s::operator==(), and SetFlags().

◆ m_rf

bool ns3::dot11s::DestinationAddressUnit::m_rf
private

RF.

Definition at line 84 of file ie-dot11s-preq.h.

Referenced by IsRf(), ns3::dot11s::operator==(), and SetFlags().

◆ m_usn

bool ns3::dot11s::DestinationAddressUnit::m_usn
private

USN.

Definition at line 85 of file ie-dot11s-preq.h.

Referenced by IsUsn(), ns3::dot11s::operator==(), SetDestSeqNumber(), and SetFlags().


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