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

#include <SNIRBase.h>

Inheritance diagram for inet::physicallayer::SNIRBase:
inet::physicallayer::ISNIR inet::physicallayer::IPrintableObject inet::physicallayer::DimensionalSNIR inet::physicallayer::IdealSNIR inet::physicallayer::ScalarSNIR

Public Member Functions

 SNIRBase (const IReception *reception, const INoise *noise)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const IReceptiongetReception () const override
 
virtual const INoisegetNoise () const override
 
- Public Member Functions inherited from inet::physicallayer::ISNIR
virtual double getMin () const =0
 
- Public Member Functions inherited from inet::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string getInfoStringRepresentation () const
 
virtual std::string getDetailStringRepresentation () const
 
virtual std::string getDebugStringRepresentation () const
 
virtual std::string getTraceStringRepresentation () const
 
virtual std::string getCompleteStringRepresentation () const
 

Protected Attributes

const IReceptionreception
 
const INoisenoise
 

Additional Inherited Members

- Public Types inherited from inet::physicallayer::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 

Constructor & Destructor Documentation

inet::physicallayer::SNIRBase::SNIRBase ( const IReception reception,
const INoise noise 
)
24  :
26  noise(noise)
27 {
28 }
const IReception * reception
Definition: SNIRBase.h:32
const INoise * noise
Definition: SNIRBase.h:33

Member Function Documentation

virtual const INoise* inet::physicallayer::SNIRBase::getNoise ( ) const
inlineoverridevirtual

Implements inet::physicallayer::ISNIR.

40 { return noise; }
const INoise * noise
Definition: SNIRBase.h:33
virtual const IReception* inet::physicallayer::SNIRBase::getReception ( ) const
inlineoverridevirtual

Implements inet::physicallayer::ISNIR.

39 { return reception; }
const IReception * reception
Definition: SNIRBase.h:32
std::ostream & inet::physicallayer::SNIRBase::printToStream ( std::ostream &  stream,
int  level 
) const
overridevirtual

Prints this object to the provided output stream.

Function calls to operator<< with pointers or references either const or not are all forwarded to this function.

Reimplemented from inet::physicallayer::IPrintableObject.

Reimplemented in inet::physicallayer::DimensionalSNIR, inet::physicallayer::ScalarSNIR, and inet::physicallayer::IdealSNIR.

Referenced by inet::physicallayer::DimensionalSNIR::printToStream().

31 {
32  if (level <= PRINT_LEVEL_TRACE)
33  stream << ", reception = " << printObjectToString(reception, level + 1)
34  << ", noise = " << printObjectToString(noise, level + 1) ;
35  return stream;
36 }
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const IReception * reception
Definition: SNIRBase.h:32
const INoise * noise
Definition: SNIRBase.h:33

Member Data Documentation

const INoise* inet::physicallayer::SNIRBase::noise
protected
const IReception* inet::physicallayer::SNIRBase::reception
protected

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