A Discrete-Event Network Simulator
API
ns3::PropagationCache< T >::PropagationPathIdentifier Struct Reference

Each path is identified by. More...

+ Collaboration diagram for ns3::PropagationCache< T >::PropagationPathIdentifier:

Public Member Functions

 PropagationPathIdentifier (Ptr< const MobilityModel > a, Ptr< const MobilityModel > b, uint32_t modelUid)
 Constructor. More...
 
bool operator< (const PropagationPathIdentifier &other) const
 Less-than operator. More...
 

Public Attributes

Ptr< const MobilityModelm_dstMobility
 2nd node mobility model More...
 
uint32_t m_spectrumModelUid
 model UID More...
 
Ptr< const MobilityModelm_srcMobility
 1st node mobility model More...
 

Detailed Description

template<class T>
struct ns3::PropagationCache< T >::PropagationPathIdentifier

Each path is identified by.

Definition at line 74 of file propagation-cache.h.

Constructor & Destructor Documentation

◆ PropagationPathIdentifier()

template<class T >
ns3::PropagationCache< T >::PropagationPathIdentifier::PropagationPathIdentifier ( Ptr< const MobilityModel a,
Ptr< const MobilityModel b,
uint32_t  modelUid 
)
inline

Constructor.

Parameters
a1st node mobility model
b2nd node mobility model
modelUidmodel UID

Definition at line 82 of file propagation-cache.h.

Member Function Documentation

◆ operator<()

template<class T >
bool ns3::PropagationCache< T >::PropagationPathIdentifier::operator< ( const PropagationPathIdentifier other) const
inline

Less-than operator.

The goal of this operator is just to provide a stable comparison to be used in containers requiring a order (of any kind).

If the models are different, the comparison is based on their Uid. Otherwise, the comparison is based on the pointers of the Mobility models.

Parameters
otherRight value of the operator.
Returns
True if the Left value is less than the Right value.

Links are supposed to be symmetrical!

Definition at line 101 of file propagation-cache.h.

References ns3::PropagationCache< T >::PropagationPathIdentifier::m_dstMobility, ns3::PropagationCache< T >::PropagationPathIdentifier::m_spectrumModelUid, ns3::PropagationCache< T >::PropagationPathIdentifier::m_srcMobility, max, and min.

Member Data Documentation

◆ m_dstMobility

template<class T >
Ptr<const MobilityModel> ns3::PropagationCache< T >::PropagationPathIdentifier::m_dstMobility

2nd node mobility model

Definition at line 86 of file propagation-cache.h.

Referenced by ns3::PropagationCache< T >::PropagationPathIdentifier::operator<().

◆ m_spectrumModelUid

template<class T >
uint32_t ns3::PropagationCache< T >::PropagationPathIdentifier::m_spectrumModelUid

◆ m_srcMobility

template<class T >
Ptr<const MobilityModel> ns3::PropagationCache< T >::PropagationPathIdentifier::m_srcMobility

1st node mobility model

Definition at line 85 of file propagation-cache.h.

Referenced by ns3::PropagationCache< T >::PropagationPathIdentifier::operator<().


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