INET Framework for OMNeT++/OMNEST
inet::units::value< Value, Units > Class Template Reference

#include <Units.h>

Inheritance diagram for inet::units::value< Value, Units >:
inet::Macho::Anchor< T, I >

Public Types

typedef Value value_type
 
typedef Units unit
 

Public Member Functions

 value ()
 
 value (const value_type &v)
 
template<typename OtherValue , typename OtherUnits >
 value (const value< OtherValue, OtherUnits > &v)
 
const value_typeget () const
 
template<typename OtherValue , typename OtherUnits >
valueoperator= (const value< OtherValue, OtherUnits > &other)
 
template<typename OtherValue , typename OtherUnits >
value operator+ (const value< OtherValue, OtherUnits > &other) const
 
template<typename OtherValue , typename OtherUnits >
valueoperator+= (const value< OtherValue, OtherUnits > &other)
 
template<typename OtherValue , typename OtherUnits >
valueoperator-= (const value< OtherValue, OtherUnits > &other)
 
template<typename OtherValue , typename OtherUnits >
value operator- (const value< OtherValue, OtherUnits > &other) const
 
value operator- () const
 
template<typename OtherValue , typename OtherUnits >
value< Value, compose< Units, OtherUnits > > operator* (const value< OtherValue, OtherUnits > &other) const
 
value operator* (const value_type &v) const
 
valueoperator*= (const value_type &v)
 
template<typename OtherValue , typename OtherUnits >
value< Value, compose< Units, pow< OtherUnits,-1 > > > operator/ (const value< OtherValue, OtherUnits > &other) const
 
value operator/ (const value_type &v) const
 
valueoperator/= (const value_type &v)
 
template<typename OtherValue , typename OtherUnits >
bool operator== (const value< OtherValue, OtherUnits > &other) const
 
template<typename OtherValue , typename OtherUnits >
bool operator!= (const value< OtherValue, OtherUnits > &other) const
 
template<typename OtherValue , typename OtherUnits >
bool operator< (const value< OtherValue, OtherUnits > &other) const
 
template<typename OtherValue , typename OtherUnits >
bool operator<= (const value< OtherValue, OtherUnits > &other) const
 
template<typename OtherValue , typename OtherUnits >
bool operator> (const value< OtherValue, OtherUnits > &other) const
 
template<typename OtherValue , typename OtherUnits >
bool operator>= (const value< OtherValue, OtherUnits > &other) const
 
valueoperator++ ()
 
value operator++ (int)
 
valueoperator-- ()
 
value operator-- (int)
 

Private Attributes

value_type m_rep
 

Member Typedef Documentation

template<typename Value, typename Units>
typedef Units inet::units::value< Value, Units >::unit
template<typename Value, typename Units>
typedef Value inet::units::value< Value, Units >::value_type

Constructor & Destructor Documentation

template<typename Value, typename Units>
inet::units::value< Value, Units >::value ( )
inline
75  : m_rep()
76  {
77  }
value_type m_rep
Definition: Units.h:231
template<typename Value, typename Units>
inet::units::value< Value, Units >::value ( const value_type v)
inlineexplicit
79  : m_rep(v)
80  {
81  }
value_type m_rep
Definition: Units.h:231
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
inet::units::value< Value, Units >::value ( const value< OtherValue, OtherUnits > &  v)
inline
84  :
86  {
87  }
value_type m_rep
Definition: Units.h:231
static V fn(const V &v)
Definition: Units.h:319

Member Function Documentation

template<typename Value, typename Units>
const value_type& inet::units::value< Value, Units >::get ( ) const
inline

Referenced by inet::physicallayer::GridNeighborCache::addRadio(), inet::physicallayer::NeighborListNeighborCache::addRadio(), inet::physicallayer::QuadTreeNeighborCache::addRadio(), inet::physicallayer::MQAMModulationBase::calculateBER(), inet::physicallayer::MQAMModulationBase::calculateSER(), inet::physicallayer::BPSKModulation::calculateSER(), inet::physicallayer::ConstantSpeedPropagation::computeArrival(), inet::physicallayer::FreeSpacePathLoss::computeFreeSpacePathLoss(), inet::physicallayer::CosineAntenna::computeGain(), inet::physicallayer::ParabolicAntenna::computeGain(), inet::physicallayer::DimensionalNoise::computeMaxPower(), inet::physicallayer::IsotropicDimensionalBackgroundNoise::computeNoise(), inet::physicallayer::Ieee80211BerTableErrorModel::computePacketErrorRate(), inet::physicallayer::BreakpointPathLoss::computePathLoss(), inet::physicallayer::SUIPathLoss::computePathLoss(), inet::physicallayer::BreakpointPathLoss::computeRange(), inet::physicallayer::Ieee80211TransmitterBase::computeTransmissionMode(), inet::physicallayer::Ieee80211TransmitterBase::computeTransmissionPower(), inet::NetworkConfiguratorBase::computeWirelessLinkWeight(), inet::physicallayer::APSKLayeredTransmitter::createAnalogModel(), inet::physicallayer::DimensionalTransmitterBase::createPowerMapping(), inet::physicallayer::APSKScalarTransmitter::createTransmission(), inet::physicallayer::Ieee802154NarrowbandScalarTransmitter::createTransmission(), inet::physicallayer::APSKDimensionalTransmitter::createTransmission(), inet::ieee80211::RateControlBase::emitDatarateSignal(), inet::power::SimpleEpEnergyManagement::executeNodeOperation(), inet::physicallayer::Ieee80211YansErrorModel::getBpskBer(), inet::physicallayer::Ieee80211OFDMMode::getCcaTime(), inet::physicallayer::Ieee80211OFDMCompliantModes::getCompliantMode(), inet::physicallayer::Ieee80211NistErrorModel::getDSSSAndHrDSSSChunkSuccessRate(), inet::physicallayer::Ieee80211YansErrorModel::getDSSSAndHrDSSSChunkSuccessRate(), inet::physicallayer::Ieee80211HrDsssDataMode::getDuration(), inet::physicallayer::Ieee80211OFDMModeBase::getGrossBitrate(), inet::physicallayer::MediumLimitCache::getMaxCommunicationRange(), inet::physicallayer::MediumLimitCache::getMaxInterferenceRange(), inet::physicallayer::Ieee80211ModeSet::getMode(), inet::physicallayer::Ieee80211OFDMModeBase::getNetBitrate(), inet::physicallayer::Ieee80211OFDMMode::getPhyRxStartDelay(), inet::physicallayer::Ieee80211YansErrorModel::getQamBer(), inet::physicallayer::Ieee80211OFDMMode::getSifsTime(), inet::physicallayer::Ieee80211OFDMMode::getSlotTime(), inet::power::SimpleEpEnergyStorage::handleMessage(), inet::physicallayer::FlatRadioBase::handleUpperCommand(), inet::physicallayer::NarrowbandRadioBase::handleUpperCommand(), inet::ieee80211::Ieee80211Mac::handleUpperCommand(), inet::physicallayer::NeighborListNeighborCache::initialize(), inet::physicallayer::GridNeighborCache::initialize(), inet::physicallayer::QuadTreeNeighborCache::initialize(), inet::physicallayer::RadioMedium::isInCommunicationRange(), inet::physicallayer::RadioMedium::isInInterferenceRange(), inet::physicallayer::maxIgnoreNaN(), inet::physicallayer::minIgnoreNaN(), inet::units::value< Value, Units >::operator!=(), inet::units::value< Value, Units >::operator*(), inet::units::operator*(), inet::units::value< Value, Units >::operator+=(), inet::units::value< Value, Units >::operator-=(), inet::units::value< Value, Units >::operator/(), inet::units::operator/(), inet::units::value< Value, Units >::operator<(), inet::units::operator<<(), inet::units::value< Value, Units >::operator<=(), inet::units::value< Value, Units >::operator=(), inet::units::value< Value, Units >::operator==(), inet::units::value< Value, Units >::operator>(), inet::units::value< Value, Units >::operator>=(), inet::visualizer::MediumCanvasVisualizer::radioAdded(), inet::physicallayer::StateBasedEpEnergyConsumer::receiveSignal(), inet::physicallayer::StateBasedCcEnergyConsumer::receiveSignal(), inet::visualizer::MediumCanvasVisualizer::refreshSignalFigure(), inet::physicallayer::GridNeighborCache::removeRadio(), inet::physicallayer::NeighborListNeighborCache::removeRadio(), inet::physicallayer::QuadTreeNeighborCache::removeRadio(), inet::power::SimpleEpEnergyManagement::scheduleLifecycleOperationTimer(), inet::power::SimpleEpEnergyStorage::scheduleTimer(), inet::physicallayer::RadioMedium::sendToAffectedRadios(), inet::power::SimpleCcBattery::setResidualCapacity(), inet::power::SimpleEpEnergyStorage::setResidualCapacity(), inet::units::sqrt(), inet::ieee80211::TxopProcedure::startTxop(), inet::power::IdealEpEnergyStorage::updateEnergyBalance(), inet::power::AlternatingEpEnergyConsumer::updatePowerConsumption(), inet::power::AlternatingEpEnergyGenerator::updatePowerGeneration(), inet::power::CcEnergyStorageBase::updateTotalCurrentConsumption(), inet::power::CcEnergyStorageBase::updateTotalCurrentGeneration(), inet::power::EpEnergyStorageBase::updateTotalPowerConsumption(), and inet::power::EpEnergyStorageBase::updateTotalPowerGeneration().

90  {
91  return m_rep;
92  }
value_type m_rep
Definition: Units.h:231
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
bool inet::units::value< Value, Units >::operator!= ( const value< OtherValue, OtherUnits > &  other) const
inline
176  {
177  return get() != value(other).get();
178  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
value<Value, compose<Units, OtherUnits> > inet::units::value< Value, Units >::operator* ( const value< OtherValue, OtherUnits > &  other) const
inline
135  {
136  return value<Value, compose<Units, OtherUnits> >(get() * other.get());
137  }
template<typename Value, typename Units>
value inet::units::value< Value, Units >::operator* ( const value_type v) const
inline
140  {
141  return value(get() * v);
142  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
value& inet::units::value< Value, Units >::operator*= ( const value_type v)
inline
145  {
146  m_rep *= v;
147  return *this;
148  }
value_type m_rep
Definition: Units.h:231
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
value inet::units::value< Value, Units >::operator+ ( const value< OtherValue, OtherUnits > &  other) const
inline
103  {
104  return value(get() + value(other).get());
105  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
value& inet::units::value< Value, Units >::operator++ ( )
inline
205  {
206  ++m_rep;
207  return *this;
208  }
value_type m_rep
Definition: Units.h:231
template<typename Value, typename Units>
value inet::units::value< Value, Units >::operator++ ( int  )
inline
211  {
212  value v = *this;
213  ++m_rep;
214  return v;
215  }
value_type m_rep
Definition: Units.h:231
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
value& inet::units::value< Value, Units >::operator+= ( const value< OtherValue, OtherUnits > &  other)
inline
109  {
110  m_rep += value(other).get();
111  return *this;
112  }
value_type m_rep
Definition: Units.h:231
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
value inet::units::value< Value, Units >::operator- ( const value< OtherValue, OtherUnits > &  other) const
inline
123  {
124  return value(get() - value(other).get());
125  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
value inet::units::value< Value, Units >::operator- ( ) const
inline
128  {
129  return value(-get());
130  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
value& inet::units::value< Value, Units >::operator-- ( )
inline
218  {
219  --m_rep;
220  return *this;
221  }
value_type m_rep
Definition: Units.h:231
template<typename Value, typename Units>
value inet::units::value< Value, Units >::operator-- ( int  )
inline
224  {
225  value v = *this;
226  --m_rep;
227  return v;
228  }
value_type m_rep
Definition: Units.h:231
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
value& inet::units::value< Value, Units >::operator-= ( const value< OtherValue, OtherUnits > &  other)
inline
116  {
117  m_rep -= value(other).get();
118  return *this;
119  }
value_type m_rep
Definition: Units.h:231
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
value<Value, compose<Units, pow<OtherUnits, -1> > > inet::units::value< Value, Units >::operator/ ( const value< OtherValue, OtherUnits > &  other) const
inline
153  {
154  return value<Value, compose<Units, pow<OtherUnits, -1> > >(get() / other.get());
155  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
value inet::units::value< Value, Units >::operator/ ( const value_type v) const
inline
158  {
159  return value(get() / v);
160  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
value& inet::units::value< Value, Units >::operator/= ( const value_type v)
inline
163  {
164  m_rep /= v;
165  return *this;
166  }
value_type m_rep
Definition: Units.h:231
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
bool inet::units::value< Value, Units >::operator< ( const value< OtherValue, OtherUnits > &  other) const
inline
182  {
183  return get() < value(other).get();
184  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
bool inet::units::value< Value, Units >::operator<= ( const value< OtherValue, OtherUnits > &  other) const
inline
188  {
189  return get() <= value(other).get();
190  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
value& inet::units::value< Value, Units >::operator= ( const value< OtherValue, OtherUnits > &  other)
inline
96  {
97  m_rep = value(other).get();
98  return *this;
99  }
value_type m_rep
Definition: Units.h:231
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
bool inet::units::value< Value, Units >::operator== ( const value< OtherValue, OtherUnits > &  other) const
inline
170  {
171  return get() == value(other).get();
172  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
bool inet::units::value< Value, Units >::operator> ( const value< OtherValue, OtherUnits > &  other) const
inline
194  {
195  return get() > value(other).get();
196  }
value()
Definition: Units.h:75
template<typename Value, typename Units>
template<typename OtherValue , typename OtherUnits >
bool inet::units::value< Value, Units >::operator>= ( const value< OtherValue, OtherUnits > &  other) const
inline
200  {
201  return get() >= value(other).get();
202  }
value()
Definition: Units.h:75

Member Data Documentation

template<typename Value, typename Units>
value_type inet::units::value< Value, Units >::m_rep
private

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