INET Framework for OMNeT++/OMNEST
inet::physicallayer::CommunicationCacheBase::RadioCacheEntry Class Reference

Caches the intermediate computation results related to a radio. More...

#include <CommunicationCacheBase.h>

Public Member Functions

 RadioCacheEntry ()
 
 RadioCacheEntry (RadioCacheEntry &&other)
 
RadioCacheEntryoperator= (RadioCacheEntry &&other)
 
virtual ~RadioCacheEntry ()
 

Public Attributes

IntervalTreereceptionIntervals
 Caches reception intervals for efficient interference queries. More...
 
bool stale
 True means the cache entry is invalid. More...
 

Private Member Functions

 RadioCacheEntry (const RadioCacheEntry &other)
 
RadioCacheEntryoperator= (const RadioCacheEntry &other)
 

Detailed Description

Caches the intermediate computation results related to a radio.

Constructor & Destructor Documentation

inet::physicallayer::CommunicationCacheBase::RadioCacheEntry::RadioCacheEntry ( const RadioCacheEntry other)
private
inet::physicallayer::CommunicationCacheBase::RadioCacheEntry::RadioCacheEntry ( )
25  :
26  receptionIntervals(nullptr),
27  stale(false)
28 {
29 }
IntervalTree * receptionIntervals
Caches reception intervals for efficient interference queries.
Definition: CommunicationCacheBase.h:38
bool stale
True means the cache entry is invalid.
Definition: CommunicationCacheBase.h:42
inet::physicallayer::CommunicationCacheBase::RadioCacheEntry::RadioCacheEntry ( RadioCacheEntry &&  other)
31  :
32  receptionIntervals(other.receptionIntervals),
33  stale(other.stale)
34 {
35  other.receptionIntervals = nullptr;
36 }
IntervalTree * receptionIntervals
Caches reception intervals for efficient interference queries.
Definition: CommunicationCacheBase.h:38
bool stale
True means the cache entry is invalid.
Definition: CommunicationCacheBase.h:42
inet::physicallayer::CommunicationCacheBase::RadioCacheEntry::~RadioCacheEntry ( )
virtual
50 {
51  delete receptionIntervals;
52 }
IntervalTree * receptionIntervals
Caches reception intervals for efficient interference queries.
Definition: CommunicationCacheBase.h:38

Member Function Documentation

RadioCacheEntry& inet::physicallayer::CommunicationCacheBase::RadioCacheEntry::operator= ( const RadioCacheEntry other)
private
CommunicationCacheBase::RadioCacheEntry & inet::physicallayer::CommunicationCacheBase::RadioCacheEntry::operator= ( RadioCacheEntry &&  other)
39 {
40  if (this != &other) {
41  delete receptionIntervals;
42  receptionIntervals = other.receptionIntervals;
43  other.receptionIntervals = nullptr;
44  stale = other.stale;
45  }
46  return *this;
47 }
IntervalTree * receptionIntervals
Caches reception intervals for efficient interference queries.
Definition: CommunicationCacheBase.h:38
bool stale
True means the cache entry is invalid.
Definition: CommunicationCacheBase.h:42

Member Data Documentation

bool inet::physicallayer::CommunicationCacheBase::RadioCacheEntry::stale

True means the cache entry is invalid.

Referenced by operator=(), and inet::physicallayer::VectorCommunicationCache::removeRadio().


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