![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <transceiver/cache/vectorcache.hpp>


Public Member Functions | |
| void | attach (Transmitter *t) |
| Attaches given Transmitter to the list of active Transmitters. | |
| virtual wns::Ratio | getLoss (Transmitter *txA, double freq) |
| Computes loss between the receiver and an antenna dependent on pathloss, shadowing and antennaGain. | |
| virtual void | invalidatePropagationEntries () |
| For all transmitters update propagation conditions in cache. | |
| virtual void | invalidatePropagationEntries (Transmitter *t) |
| For the given transmitter update propagation conditions in cache. | |
| VectorCache (receiver::ReceiverInterface *r) | |
| Default Constructor. | |
| virtual | ~VectorCache () |
| Destructor. | |
Private Types | |
| typedef std::vector < PropCacheEntry > | CacheVector |
| Vector that stores a list of PropCacheEntry object. | |
| typedef std::list< double > | FrequencyContainer |
| Struct to store a list of Frequencies. | |
| typedef FreqHash< CacheVector > | FrequencyHash |
| Hash that contains a CacheVector for each used Frequency. | |
| typedef FrequencyContainer::iterator | FrequencyIterator |
| Iterator. | |
| typedef std::list< Transmitter * > | TransmitterContainer |
| Struct to store a list of Transmitters. | |
| typedef TransmitterContainer::iterator | TransmitterIterator |
| Iterator. | |
Private Member Functions | |
| void | attachFrequency (double freq) |
| Expands the cache. | |
| int | getIndex (Transmitter *t) |
| Returns an index for a transmitter. | |
Private Attributes | |
| FrequencyContainer | frequencies |
| List of all used Frequencies. | |
| FrequencyHash | pathlossShadowGain |
| Cache that stores the total loss towards all active Transmitters. | |
| PointerHashMap< Transmitter *, long int > | transmitter2Index |
| Stores an individual index for each active transmitter. | |
| TransmitterContainer | transmitters |
| List of all active TransmissionObjects. | |
Definition at line 45 of file vectorcache.hpp.
typedef std::vector<PropCacheEntry> rise::VectorCache::CacheVector [private] |
Definition at line 73 of file vectorcache.hpp.
typedef std::list<double> rise::VectorCache::FrequencyContainer [private] |
Definition at line 69 of file vectorcache.hpp.
typedef FreqHash<CacheVector> rise::VectorCache::FrequencyHash [private] |
Definition at line 75 of file vectorcache.hpp.
typedef FrequencyContainer::iterator rise::VectorCache::FrequencyIterator [private] |
Definition at line 71 of file vectorcache.hpp.
typedef std::list<Transmitter*> rise::VectorCache::TransmitterContainer [private] |
Definition at line 65 of file vectorcache.hpp.
typedef TransmitterContainer::iterator rise::VectorCache::TransmitterIterator [private] |
Definition at line 67 of file vectorcache.hpp.
| VectorCache::VectorCache | ( | receiver::ReceiverInterface * | r | ) |
Definition at line 41 of file vectorcache.cpp.
| VectorCache::~VectorCache | ( | ) | [virtual] |
Definition at line 47 of file vectorcache.cpp.
| void rise::VectorCache::attach | ( | Transmitter * | t | ) |
| void VectorCache::attachFrequency | ( | double | freq | ) | [private] |
Create a new vector for a new frequency.
Definition at line 120 of file vectorcache.cpp.
| int VectorCache::getIndex | ( | Transmitter * | t | ) | [private] |
If the transmitter is not active, it will be attached to the cache and receive an individual index.
Definition at line 64 of file vectorcache.cpp.
| wns::Ratio VectorCache::getLoss | ( | Transmitter * | txA, | |
| double | freq | |||
| ) | [virtual] |
| void VectorCache::invalidatePropagationEntries | ( | ) | [virtual] |
| void VectorCache::invalidatePropagationEntries | ( | Transmitter * | t | ) | [virtual] |
Definition at line 88 of file vectorcache.hpp.
Cache stores PropCacheEntry objects, which contains pathloss, shadowing, antennaGain and computes the total loss.
Definition at line 83 of file vectorcache.hpp.
PointerHashMap<Transmitter*, long int> rise::VectorCache::transmitter2Index [private] |
Definition at line 77 of file vectorcache.hpp.
Definition at line 86 of file vectorcache.hpp.
1.5.5