A Discrete-Event Network Simulator
API
ns3::LteSpectrumValueCatcher Class Reference

A sink to be plugged to the callback of LteChunkProcessor allowing to save and later retrieve the latest reported value. More...

#include "lte-chunk-processor.h"

+ Collaboration diagram for ns3::LteSpectrumValueCatcher:

Public Member Functions

Ptr< SpectrumValueGetValue ()
 
void ReportValue (const SpectrumValue &value)
 function to be plugged to LteChunkProcessor::AddCallback () More...
 

Private Attributes

Ptr< SpectrumValuem_value
 

Detailed Description

A sink to be plugged to the callback of LteChunkProcessor allowing to save and later retrieve the latest reported value.

Definition at line 97 of file lte-chunk-processor.h.

Member Function Documentation

Ptr< SpectrumValue > ns3::LteSpectrumValueCatcher::GetValue ( void  )
Returns
the latest value reported by the LteChunkProcessor

Definition at line 97 of file lte-chunk-processor.cc.

References m_value.

void ns3::LteSpectrumValueCatcher::ReportValue ( const SpectrumValue value)

function to be plugged to LteChunkProcessor::AddCallback ()

Parameters
value

Definition at line 91 of file lte-chunk-processor.cc.

References ns3::SpectrumValue::Copy(), and m_value.

+ Here is the call graph for this function:

Member Data Documentation

Ptr<SpectrumValue> ns3::LteSpectrumValueCatcher::m_value
private

Definition at line 116 of file lte-chunk-processor.h.

Referenced by GetValue(), and ReportValue().


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