Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
SEScalarQuantity< Unit > Class Template Reference
#include <SEScalar.h>
Inheritance diagram for SEScalarQuantity< Unit >:
Public Member Functions | |
| SEScalarQuantity () | |
| virtual | ~SEScalarQuantity () |
| void | Invalidate () override |
| void | ForceInvalidate () override |
| bool | IsValid () const override |
| virtual bool | Set (const SEScalarQuantity< Unit > &s) |
| virtual void | Copy (const SEScalarQuantity< Unit > &s) |
| virtual bool | Force (const SEScalarQuantity< Unit > &s) |
| bool | HasUnit () const override |
| const Unit * | GetUnit () const override |
| double | GetValue () const =delete |
| double | GetValue (int precision) const =delete |
| virtual double | GetValue (const Unit &unit) const |
| virtual double | GetValue (const Unit &unit, int decimal_places) const |
| void | SetValue (double d)=delete |
| virtual void | SetValue (double d, const Unit &unit) |
| void | ForceValue (double d)=delete |
| virtual void | ForceValue (double d, const Unit &unit) |
| double | Increment (const SEScalar &s)=delete |
| virtual double | Increment (const SEScalarQuantity &s) |
| double | Increment (double d)=delete |
| virtual double | Increment (double d, const Unit &unit) |
| double | ForceIncrement (double d)=delete |
| virtual double | ForceIncrement (double d, const Unit &unit) |
| bool | Equals (const SEScalar &to) const =delete |
| virtual bool | Equals (const SEScalarQuantity< Unit > &to) const |
| std::string | ToString () const override |
| void | ToString (std::ostream &str) const override |
Public Member Functions inherited from SEUnitScalar | |
| SEUnitScalar () | |
| virtual | ~SEUnitScalar () |
Public Member Functions inherited from SEScalar | |
| SEScalar () | |
| virtual | ~SEScalar () |
| bool | Set (const SEScalar &s) |
| bool | Force (const SEScalar &s) |
| void | Copy (const SEScalar &s) |
| bool | IsInfinity () const |
| bool | IsPositive () const |
| bool | IsNegative () const |
| bool | IsZero (double limit=ZERO_APPROX) const |
| void | SetReadOnly (bool b) |
| bool | IsReadOnly () const |
| double | GetValue () const |
| double | GetValue (int precision) const |
| void | SetValue (double d) |
| void | ForceValue (double d) |
| double | Increment (const SEScalar &s) |
| double | Increment (double d) |
| double | ForceIncrement (double d) |
| double | Multiply (double d) |
| void | Average (int cnt) |
| bool | Equals (const SEScalar &to) const |
Public Member Functions inherited from SEProperty | |
| SEProperty () | |
| virtual | ~SEProperty () |
Protected Member Functions | |
| bool | Set (const SEScalar &s) override |
| void | Copy (const SEScalar &s) override |
| bool | Force (const SEScalar &s) override |
| double | GetValue (const CCompoundUnit &unit) const override |
| double | GetValue (const CCompoundUnit &unit, int decimal_places) const override |
| void | SetValue (double d, const CCompoundUnit &unit) override |
| void | ForceValue (double d, const CCompoundUnit &unit) override |
| double | Increment (double d, const CCompoundUnit &unit) override |
| double | ForceIncrement (double d, const CCompoundUnit &unit) override |
| const CCompoundUnit * | GetCompoundUnit (const std::string &unit) const override |
Protected Attributes | |
| const Unit * | m_unit =nullptr |
Protected Attributes inherited from SEScalar | |
| double | m_value |
| bool | m_isnan =true |
| bool | m_isinf =false |
| bool | m_readOnly =false |
Friends | |
| class | PBProperty |
Additional Inherited Members | |
Static Public Member Functions inherited from SEScalar | |
| static double | dNaN () |
| static bool | IsNumber (double d) |
| static bool | IsZero (double value, double limit) |
| static bool | IsValue (double target, double value) |
| static double | Truncate (double value, int decimal_places) |
Constructor & Destructor Documentation
◆ SEScalarQuantity()
template<typename Unit >
|
inline |
◆ ~SEScalarQuantity()
template<typename Unit >
|
virtual |
Member Function Documentation
◆ Copy() [1/2]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ Copy() [2/2]
template<typename Unit >
|
virtual |
◆ Equals() [1/2]
template<typename Unit >
|
delete |
◆ Equals() [2/2]
template<typename Unit >
|
virtual |
◆ Force() [1/2]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ Force() [2/2]
template<typename Unit >
|
virtual |
◆ ForceIncrement() [1/3]
template<typename Unit >
|
delete |
◆ ForceIncrement() [2/3]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ ForceIncrement() [3/3]
template<typename Unit >
|
virtual |
◆ ForceInvalidate()
template<typename Unit >
|
overridevirtual |
Implements SEUnitScalar.
◆ ForceValue() [1/3]
template<typename Unit >
|
delete |
◆ ForceValue() [2/3]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ ForceValue() [3/3]
template<typename Unit >
|
virtual |
◆ GetCompoundUnit()
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ GetUnit()
template<typename Unit >
|
overridevirtual |
Implements SEUnitScalar.
◆ GetValue() [1/6]
template<typename Unit >
|
delete |
◆ GetValue() [2/6]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ GetValue() [3/6]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ GetValue() [4/6]
template<typename Unit >
|
virtual |
◆ GetValue() [5/6]
template<typename Unit >
|
virtual |
◆ GetValue() [6/6]
template<typename Unit >
|
delete |
◆ HasUnit()
template<typename Unit >
|
overridevirtual |
Implements SEUnitScalar.
◆ Increment() [1/5]
template<typename Unit >
|
delete |
◆ Increment() [2/5]
template<typename Unit >
|
virtual |
◆ Increment() [3/5]
template<typename Unit >
|
delete |
◆ Increment() [4/5]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ Increment() [5/5]
template<typename Unit >
|
virtual |
◆ Invalidate()
template<typename Unit >
|
overridevirtual |
Sets the value to NaN and removes the unit Note that this does not affect bounds
Implements SEUnitScalar.
◆ IsValid()
template<typename Unit >
|
overridevirtual |
Implements SEUnitScalar.
◆ Set() [1/2]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ Set() [2/2]
template<typename Unit >
|
virtual |
◆ SetValue() [1/3]
template<typename Unit >
|
delete |
◆ SetValue() [2/3]
template<typename Unit >
|
overrideprotectedvirtual |
Implements SEUnitScalar.
◆ SetValue() [3/3]
template<typename Unit >
|
virtual |
◆ ToString() [1/2]
template<typename Unit >
|
overridevirtual |
Reimplemented from SEScalar.
◆ ToString() [2/2]
template<typename Unit >
|
overridevirtual |
Reimplemented from SEScalar.
Friends And Related Function Documentation
◆ PBProperty
template<typename Unit >
|
friend |
Member Data Documentation
◆ m_unit
template<typename Unit >
|
protected |

Public Member Functions inherited from