20 #ifndef PROPAGATION_CACHE_H_
21 #define PROPAGATION_CACHE_H_
23 #include "ns3/mobility-model.h"
50 PropagationPathIdentifier key = PropagationPathIdentifier (a, b, modelUid);
51 typename PathCache::iterator it =
m_pathCache.find (key);
68 PropagationPathIdentifier key = PropagationPathIdentifier (a, b, modelUid);
108 typedef std::map<PropagationPathIdentifier, Ptr<T> >
PathCache;
114 #endif // PROPAGATION_CACHE_H_
Smart pointer class similar to boost::intrusive_ptr.
uint32_t m_spectrumModelUid
model UID
Ptr< const MobilityModel > m_dstMobility
2nd node mobility model
PathCache m_pathCache
Path cache.
std::map< PropagationPathIdentifier, Ptr< T > > PathCache
Typedef: PropagationPathIdentifier, Ptr
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
Ptr< T > GetPathData(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b, uint32_t modelUid)
Get the model associated with the path.
bool operator<(const PropagationPathIdentifier &other) const
Each path is identified by.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const MobilityModel > m_srcMobility
1st node mobility model
void AddPathData(Ptr< T > data, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b, uint32_t modelUid)
Add a model to the path.
Constructs a cache of objects, where each object is responsible for a single propagation path loss ca...
PropagationPathIdentifier(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b, uint32_t modelUid)
Constructor.