User Manual, Developers Guide and API Documentation

rise::HashCache Class Reference

Interface of class HashCache. More...

#include <transceiver/cache/hashcache.hpp>

Inheritance diagram for rise::HashCache:

Inheritance graph
[legend]
Collaboration diagram for rise::HashCache:

Collaboration graph
[legend]

List of all members.

Public Member Functions

wns::Ratio getLoss (Transmitter *t, double freq)
 HashCache (ReceiverBase *r)
 Default Constructor.
void invalidatePropagationEntries ()
void invalidatePropagationEntries (Transmitter *t)
virtual ~HashCache ()
 Destructor.

Private Types

typedef Level2Hash::iterator FrequencyIterator
typedef PointerHashMap
< Transmitter *, Level2Hash
Level1Hash
typedef FreqHash< PropCacheEntryLevel2Hash
typedef Level1Hash::iterator TransmitterIterator

Private Attributes

Level1Hash propHash


Detailed Description

The HashCache stores the loss between its receiver and all active transmitters for different frequency in a 2-dim hash.

Definition at line 48 of file hashcache.hpp.


Member Typedef Documentation

typedef Level2Hash::iterator rise::HashCache::FrequencyIterator [private]

Definition at line 73 of file hashcache.hpp.

Definition at line 72 of file hashcache.hpp.

Definition at line 71 of file hashcache.hpp.

typedef Level1Hash::iterator rise::HashCache::TransmitterIterator [private]

Definition at line 74 of file hashcache.hpp.


Constructor & Destructor Documentation

HashCache::HashCache ( ReceiverBase r  )  [explicit]

Definition at line 40 of file hashcache.cpp.

HashCache::~HashCache (  )  [virtual]

Definition at line 45 of file hashcache.cpp.


Member Function Documentation

wns::Ratio HashCache::getLoss ( Transmitter t,
double  freq 
) [virtual]

Returns loss dependent on pathloss, shadowing and antennaGain twoards antenna txA. Update propagation condition for this antenna in cache.

Implements rise::PropagationCache.

Definition at line 49 of file hashcache.cpp.

void HashCache::invalidatePropagationEntries (  )  [virtual]

For all Transmitter set propagation conditions in cache invalid.

Implements rise::PropagationCache.

Definition at line 67 of file hashcache.cpp.

void HashCache::invalidatePropagationEntries ( Transmitter t  )  [virtual]

Set propagation conditions in cache for 't' invalid.

Implements rise::PropagationCache.

Definition at line 58 of file hashcache.cpp.


Member Data Documentation

3-dim hash that stores for each triple of Transmitter, Receiver and Frequency the values of their pathloss, shadowing and antennaGain

Definition at line 80 of file hashcache.hpp.


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

Generated on Sat May 26 03:32:36 2012 for openWNS by  doxygen 1.5.5