INET Framework for OMNeT++/OMNEST
|
Optimized version of the BitVector class to store short bit vectors. More...
#include <ShortBitVector.h>
Public Member Functions | |
ShortBitVector () | |
ShortBitVector (const char *bitString) | |
ShortBitVector (unsigned int bits) | |
ShortBitVector (unsigned int bits, unsigned int size) | |
ShortBitVector (const ShortBitVector &other) | |
unsigned int | toDecimal () const |
unsigned int | reverseToDecimal () const |
void | rightShift (int with) |
void | leftShift (int with) |
void | appendBit (bool value) |
void | appendBit (bool value, int n) |
bool | getBit (unsigned int pos) const |
void | setBit (unsigned int pos, bool value) |
void | toggleBit (unsigned int pos) |
bool | isEmpty () const |
unsigned int | getSize () const |
unsigned int | computeHammingDistance (const ShortBitVector &u) const |
ShortBitVector & | operator= (const ShortBitVector &other) |
bool | operator== (const ShortBitVector &rhs) const |
bool | operator!= (const ShortBitVector &rhs) const |
std::string | toString () const |
Private Member Functions | |
void | copy (const ShortBitVector &other) |
Private Attributes | |
unsigned int | bits |
unsigned int | size |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ShortBitVector &bitVector) |
Optimized version of the BitVector class to store short bit vectors.
inet::ShortBitVector::ShortBitVector | ( | ) |
inet::ShortBitVector::ShortBitVector | ( | const char * | bitString | ) |
inet::ShortBitVector::ShortBitVector | ( | unsigned int | bits | ) |
inet::ShortBitVector::ShortBitVector | ( | unsigned int | bits, |
unsigned int | size | ||
) |
|
inline |
|
inline |
Referenced by inet::physicallayer::ConvolutionalCoder::convertToShortBitVectorMatrix(), inet::physicallayer::ConvolutionalCoder::decode(), inet::physicallayer::ConvolutionalCoder::encode(), inet::physicallayer::Ieee80211LayeredOFDMReceiver::getRate(), inet::physicallayer::Ieee80211OFDMDecoder::getSignalFieldLength(), inet::physicallayer::Ieee80211LayeredOFDMReceiver::getSignalFieldLength(), inet::physicallayer::Ieee80211OFDMDecoder::getSignalFieldRate(), inet::physicallayer::ConvolutionalCoder::giveNextOutputSymbol(), inet::physicallayer::ConvolutionalCoder::inputSymbolToOutputSymbol(), inet::physicallayer::ConvolutionalCoder::setTransferFunctionMatrix(), and ShortBitVector().
|
inline |
Referenced by appendBit().
|
inline |
|
inlineprivate |
|
inline |
Referenced by inet::physicallayer::ConvolutionalCoder::computeStateTransitions(), inet::physicallayer::APSKDemodulator::demodulate(), inet::physicallayer::Ieee80211OFDMDemodulator::demodulateSymbol(), inet::physicallayer::ConvolutionalCoder::encode(), inet::physicallayer::AdditiveScrambler::generateScramblingSequence(), inet::physicallayer::ConvolutionalCoder::inputSymbolToOutputSymbol(), inet::physicallayer::ConvolutionalCoder::modulo2Adder(), inet::operator<<(), inet::physicallayer::ConvolutionalCoder::setTransferFunctionMatrix(), toString(), and inet::physicallayer::ConvolutionalCoder::traversePath().
|
inline |
Referenced by inet::physicallayer::ConvolutionalCoder::computeHammingDistance(), computeHammingDistance(), inet::physicallayer::ConvolutionalCoder::computeStateTransitions(), inet::physicallayer::APSKDemodulator::demodulate(), inet::physicallayer::Ieee80211OFDMDemodulator::demodulateSymbol(), inet::physicallayer::ConvolutionalCoder::encode(), inet::physicallayer::AdditiveScrambler::generateScramblingSequence(), inet::physicallayer::ConvolutionalCoder::inputSymbolToOutputSymbol(), inet::physicallayer::ConvolutionalCoder::modulo2Adder(), inet::operator<<(), inet::physicallayer::ConvolutionalCoder::setTransferFunctionMatrix(), toString(), and inet::physicallayer::ConvolutionalCoder::traversePath().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by inet::physicallayer::ConvolutionalCoder::computeDecimalToOutputSymbolVector(), inet::physicallayer::ConvolutionalCoder::computeOutputAndInputSymbols(), inet::physicallayer::ConvolutionalCoder::computeStateTransitions(), inet::physicallayer::ConvolutionalCoder::encode(), and inet::physicallayer::ConvolutionalCoder::printOutputs().
|
inline |
|
inline |
Referenced by inet::physicallayer::ConvolutionalCoder::computeStateTransitions(), inet::physicallayer::LayeredErrorModelBase::computeSymbolModel(), inet::physicallayer::AdditiveScrambler::generateScramblingSequence(), inet::physicallayer::ConvolutionalCoder::giveNextOutputSymbol(), inet::physicallayer::ConvolutionalCoder::inputSymbolToOutputSymbol(), inet::physicallayer::APSKModulator::modulate(), and inet::physicallayer::Ieee80211OFDMModulator::modulate().
|
inline |
Referenced by inet::physicallayer::ConvolutionalCoder::computeHammingDistance(), computeHammingDistance(), inet::physicallayer::Ieee80211LayeredOFDMReceiver::getRate(), inet::physicallayer::Ieee80211OFDMDecoder::getSignalFieldLength(), inet::physicallayer::Ieee80211LayeredOFDMReceiver::getSignalFieldLength(), and inet::physicallayer::APSKModulationBase::mapToConstellationDiagram().
|
inline |
std::string inet::ShortBitVector::toString | ( | ) | const |
|
friend |
|
private |
Referenced by copy(), operator==(), and ShortBitVector().
|
private |
Referenced by copy(), and ShortBitVector().