User Manual, Developers Guide and API Documentation

rise::IdVectorCache Class Reference

Interface of class IdVectorCache. More...

#include <transceiver/cache/idvectorcache.hpp>

Inheritance diagram for rise::IdVectorCache:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

wns::Ratio getLoss (Transmitter *t, double frequency)
 Returns the loss towards antenna 'txA' at a specific frequency.
 IdVectorCache (receiver::ReceiverInterface *r)
 Default Constructor.
void invalidatePropagationEntries ()
 Invalidates the propagation entries for Transmitters.
void invalidatePropagationEntries (Transmitter *t)
 Invalidates the propagation entries for Transmitter "t" towards all Receivers.
virtual ~IdVectorCache ()
 Destructor.

Private Types

typedef std::vector
< PropCacheEntry
CacheVector
 Struct that stores a list of PropCacheEntry objects.
typedef
wns::container::FastList
< Transmitter * > 
TransmitterContainer
typedef
TransmitterContainer::iterator 
TransmitterIterator

Private Member Functions

void attach (Transmitter *t, unsigned long int tId)
 Attaches transmitter to cache using its id.

Private Attributes

CacheVector pathlossShadowGain
 Cache that stores the total loss towards all active Transmitters.
TransmitterContainer transmitters
 List of all active transmitters.


Detailed Description

The IdVectorCache stores the loss between its receiver and all active transmitters in a vector sorted by the ids of each transmitter.

Definition at line 45 of file idvectorcache.hpp.


Member Typedef Documentation

typedef std::vector<PropCacheEntry> rise::IdVectorCache::CacheVector [private]

Definition at line 73 of file idvectorcache.hpp.

Definition at line 69 of file idvectorcache.hpp.

Definition at line 70 of file idvectorcache.hpp.


Constructor & Destructor Documentation

IdVectorCache::IdVectorCache ( receiver::ReceiverInterface r  ) 

Definition at line 43 of file idvectorcache.cpp.

IdVectorCache::~IdVectorCache (  )  [virtual]

Definition at line 48 of file idvectorcache.cpp.


Member Function Documentation

void IdVectorCache::attach ( Transmitter t,
unsigned long int  tId 
) [private]

Definition at line 63 of file idvectorcache.cpp.

wns::Ratio IdVectorCache::getLoss ( Transmitter t,
double  frequency 
) [virtual]

Implements rise::PropagationCache.

Definition at line 51 of file idvectorcache.cpp.

void IdVectorCache::invalidatePropagationEntries (  )  [virtual]

Implements rise::PropagationCache.

Definition at line 83 of file idvectorcache.cpp.

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

Implements rise::PropagationCache.

Definition at line 74 of file idvectorcache.cpp.


Member Data Documentation

Cache stores PropCacheEntry objects, which contains pathloss, shadowing, antennaGain and computes the total loss.

Definition at line 80 of file idvectorcache.hpp.

Definition at line 82 of file idvectorcache.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