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

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

#include <CommunicationCacheBase.h>

Public Member Functions

 ReceptionCacheEntry ()
 
 ReceptionCacheEntry (ReceptionCacheEntry &&other)
 
ReceptionCacheEntryoperator= (ReceptionCacheEntry &&other)
 
virtual ~ReceptionCacheEntry ()
 

Public Attributes

const IRadioFrameframe
 The radio frame that was sent to the receiver or nullptr if not yet sent. More...
 
const IArrivalarrival
 
const Intervalinterval
 
const IListeninglistening
 
const IReceptionreception
 
const IInterferenceinterference
 
const INoisenoise
 
const ISNIRsnir
 
std::vector< const IReceptionDecision * > receptionDecisions
 
const IReceptionResultreceptionResult
 

Private Member Functions

 ReceptionCacheEntry (const ReceptionCacheEntry &other)
 
ReceptionCacheEntryoperator= (const ReceptionCacheEntry &other)
 

Detailed Description

Caches the intermediate computation results related to a reception.

Constructor & Destructor Documentation

inet::physicallayer::CommunicationCacheBase::ReceptionCacheEntry::ReceptionCacheEntry ( const ReceptionCacheEntry other)
private
inet::physicallayer::CommunicationCacheBase::ReceptionCacheEntry::ReceptionCacheEntry ( )
61  :
62  frame(nullptr),
63  arrival(nullptr),
64  interval(nullptr),
65  listening(nullptr),
66  reception(nullptr),
67  interference(nullptr),
68  noise(nullptr),
69  snir(nullptr),
70  receptionResult(nullptr)
71 {
72 }
const Interval * interval
Definition: CommunicationCacheBase.h:66
const ISNIR * snir
Definition: CommunicationCacheBase.h:71
const IArrival * arrival
Definition: CommunicationCacheBase.h:65
const IReception * reception
Definition: CommunicationCacheBase.h:68
const IRadioFrame * frame
The radio frame that was sent to the receiver or nullptr if not yet sent.
Definition: CommunicationCacheBase.h:64
const IReceptionResult * receptionResult
Definition: CommunicationCacheBase.h:73
const IInterference * interference
Definition: CommunicationCacheBase.h:69
const INoise * noise
Definition: CommunicationCacheBase.h:70
const IListening * listening
Definition: CommunicationCacheBase.h:67
inet::physicallayer::CommunicationCacheBase::ReceptionCacheEntry::ReceptionCacheEntry ( ReceptionCacheEntry &&  other)
74  :
75  frame(other.frame),
76  arrival(other.arrival),
77  interval(other.interval),
78  listening(other.listening),
79  reception(other.reception),
80  interference(other.interference),
81  noise(other.noise),
82  snir(other.snir),
83  receptionDecisions(other.receptionDecisions),
84  receptionResult(other.receptionResult)
85 {
86  other.frame = nullptr;
87  other.arrival = nullptr;
88  other.interval = nullptr;
89  other.listening = nullptr;
90  other.reception = nullptr;
91  other.interference = nullptr;
92  other.noise = nullptr;
93  other.snir = nullptr;
94  other.receptionDecisions.clear();
95  other.receptionResult = nullptr;
96 }
const Interval * interval
Definition: CommunicationCacheBase.h:66
const ISNIR * snir
Definition: CommunicationCacheBase.h:71
const IArrival * arrival
Definition: CommunicationCacheBase.h:65
const IReception * reception
Definition: CommunicationCacheBase.h:68
const IRadioFrame * frame
The radio frame that was sent to the receiver or nullptr if not yet sent.
Definition: CommunicationCacheBase.h:64
const IReceptionResult * receptionResult
Definition: CommunicationCacheBase.h:73
std::vector< const IReceptionDecision * > receptionDecisions
Definition: CommunicationCacheBase.h:72
const IInterference * interference
Definition: CommunicationCacheBase.h:69
const INoise * noise
Definition: CommunicationCacheBase.h:70
const IListening * listening
Definition: CommunicationCacheBase.h:67
inet::physicallayer::CommunicationCacheBase::ReceptionCacheEntry::~ReceptionCacheEntry ( )
virtual
135 {
136  delete arrival;
137  delete listening;
138  delete reception;
139  delete interference;
140  delete noise;
141  delete snir;
142  for (auto receptionDecision : receptionDecisions)
143  delete receptionDecision;
144  delete receptionResult;
145 }
const ISNIR * snir
Definition: CommunicationCacheBase.h:71
const IArrival * arrival
Definition: CommunicationCacheBase.h:65
const IReception * reception
Definition: CommunicationCacheBase.h:68
const IReceptionResult * receptionResult
Definition: CommunicationCacheBase.h:73
std::vector< const IReceptionDecision * > receptionDecisions
Definition: CommunicationCacheBase.h:72
const IInterference * interference
Definition: CommunicationCacheBase.h:69
const INoise * noise
Definition: CommunicationCacheBase.h:70
const IListening * listening
Definition: CommunicationCacheBase.h:67

Member Function Documentation

ReceptionCacheEntry& inet::physicallayer::CommunicationCacheBase::ReceptionCacheEntry::operator= ( const ReceptionCacheEntry other)
private
CommunicationCacheBase::ReceptionCacheEntry & inet::physicallayer::CommunicationCacheBase::ReceptionCacheEntry::operator= ( ReceptionCacheEntry &&  other)
99 {
100  if (this != &other) {
101  delete arrival;
102  delete listening;
103  delete reception;
104  delete interference;
105  delete noise;
106  delete snir;
107  for (auto receptionDecision : receptionDecisions)
108  delete receptionDecision;
109  delete receptionResult;
110  frame = other.frame;
111  arrival = other.arrival;
112  interval = other.interval;
113  listening = other.listening;
114  reception = other.reception;
115  interference = other.interference;
116  noise = other.noise;
117  snir = other.snir;
118  receptionDecisions = other.receptionDecisions;
119  receptionResult = other.receptionResult;
120  other.frame = nullptr;
121  other.arrival = nullptr;
122  other.interval = nullptr;
123  other.listening = nullptr;
124  other.reception = nullptr;
125  other.interference = nullptr;
126  other.noise = nullptr;
127  other.snir = nullptr;
128  other.receptionDecisions.clear();
129  other.receptionResult = nullptr;
130  }
131  return *this;
132 }
const Interval * interval
Definition: CommunicationCacheBase.h:66
const ISNIR * snir
Definition: CommunicationCacheBase.h:71
const IArrival * arrival
Definition: CommunicationCacheBase.h:65
const IReception * reception
Definition: CommunicationCacheBase.h:68
const IRadioFrame * frame
The radio frame that was sent to the receiver or nullptr if not yet sent.
Definition: CommunicationCacheBase.h:64
const IReceptionResult * receptionResult
Definition: CommunicationCacheBase.h:73
std::vector< const IReceptionDecision * > receptionDecisions
Definition: CommunicationCacheBase.h:72
const IInterference * interference
Definition: CommunicationCacheBase.h:69
const INoise * noise
Definition: CommunicationCacheBase.h:70
const IListening * listening
Definition: CommunicationCacheBase.h:67

Member Data Documentation

const IRadioFrame* inet::physicallayer::CommunicationCacheBase::ReceptionCacheEntry::frame

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