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

#include <AdditiveScrambling.h>

Inheritance diagram for inet::physicallayer::AdditiveScrambling:
inet::physicallayer::IScrambling inet::physicallayer::IPrintableObject

Public Member Functions

 AdditiveScrambling (const ShortBitVector &seed, const ShortBitVector &generatorPolynomial)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
const ShortBitVectorgetGeneratorPolynomial () const
 
const ShortBitVectorgetSeed () const
 
- Public Member Functions inherited from inet::physicallayer::IScrambling
const ShortBitVectorgetGeneratorPolynomial () const
 
const ShortBitVectorgetSeed () const
 
- 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

ShortBitVector seed
 
ShortBitVector generatorPolynomial
 

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::AdditiveScrambling::AdditiveScrambling ( const ShortBitVector seed,
const ShortBitVector generatorPolynomial 
)
24  :
25  seed(seed),
27 {
28 }
ShortBitVector seed
Definition: AdditiveScrambling.h:31
ShortBitVector generatorPolynomial
Definition: AdditiveScrambling.h:32

Member Function Documentation

const ShortBitVector& inet::physicallayer::AdditiveScrambling::getGeneratorPolynomial ( ) const
inline

Referenced by inet::physicallayer::AdditiveScrambler::AdditiveScrambler().

39 { return generatorPolynomial; }
ShortBitVector generatorPolynomial
Definition: AdditiveScrambling.h:32
const ShortBitVector& inet::physicallayer::AdditiveScrambling::getSeed ( ) const
inline

Referenced by inet::physicallayer::AdditiveScrambler::AdditiveScrambler().

40 { return seed; }
ShortBitVector seed
Definition: AdditiveScrambling.h:31
std::ostream & inet::physicallayer::AdditiveScrambling::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.

31 {
32  stream << "AdditiveScrambling";
33  if (level <= PRINT_LEVEL_TRACE)
34  stream << ", seed = " << seed
35  << ", generatorPolynomial = " << generatorPolynomial;
36  return stream;
37 }
ShortBitVector seed
Definition: AdditiveScrambling.h:31
ShortBitVector generatorPolynomial
Definition: AdditiveScrambling.h:32

Member Data Documentation

ShortBitVector inet::physicallayer::AdditiveScrambling::generatorPolynomial
protected

Referenced by printToStream().

ShortBitVector inet::physicallayer::AdditiveScrambling::seed
protected

Referenced by printToStream().


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