A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::WifiAssocManager::ApInfoCompare Struct Reference

Struct providing a function call operator to compare two ApInfo objects. More...

+ Collaboration diagram for ns3::WifiAssocManager::ApInfoCompare:

Public Member Functions

 ApInfoCompare (const WifiAssocManager &manager)
 Constructor.
 
bool operator() (const StaWifiMac::ApInfo &lhs, const StaWifiMac::ApInfo &rhs) const
 Function call operator.
 

Private Attributes

const WifiAssocManagerm_manager
 Association Manager.
 

Detailed Description

Struct providing a function call operator to compare two ApInfo objects.

This struct is used as the Compare template type parameter of the set of ApInfo objects maintained by the Association Manager.

Definition at line 36 of file wifi-assoc-manager.h.

Constructor & Destructor Documentation

◆ ApInfoCompare()

ns3::WifiAssocManager::ApInfoCompare::ApInfoCompare ( const WifiAssocManager & manager)

Constructor.

Parameters
managera pointer to the Association Manager

Definition at line 28 of file wifi-assoc-manager.cc.

Member Function Documentation

◆ operator()()

bool ns3::WifiAssocManager::ApInfoCompare::operator() ( const StaWifiMac::ApInfo & lhs,
const StaWifiMac::ApInfo & rhs ) const

Function call operator.

Calls the Compare method of the Association Manager.

Parameters
lhsleft hand side ApInfo object
rhsright hand side ApInfo object
Returns
true if the left hand side ApInfo object should be placed before the right hand side ApInfo object in the sorted list maintained by the Association Manager, false otherwise

Definition at line 34 of file wifi-assoc-manager.cc.

References ns3::StaWifiMac::ApInfo::m_bssid, and NS_ASSERT_MSG.

Member Data Documentation

◆ m_manager

const WifiAssocManager& ns3::WifiAssocManager::ApInfoCompare::m_manager
private

Association Manager.

Definition at line 56 of file wifi-assoc-manager.h.


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