#include <SEScalar.h>

Inherits SEScalar.

Public Member Functions

 SEScalarEnum ()
 
virtual ~SEScalarEnum ()
 
virtual void Invalidate () override
 
virtual void ForceInvalidate () override
 
void Set (const SEScalarEnum< Enum > &s)
 
void Copy (const SEScalarEnum< Enum > &s)
 
Enum GetEnum () const
 
void operator= (const Enum &e)
 
bool operator== (const Enum &e)
 
bool operator!= (const Enum &e)
 
- Public Member Functions inherited from SEScalar
 SEScalar ()
 
virtual ~SEScalar ()
 
void Invalidate () override
 
virtual void ForceInvalidate ()
 
bool Set (const SEScalar &s)
 
bool Force (const SEScalar &s)
 
void Copy (const SEScalar &s)
 
bool IsValid () const override
 
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
 
virtual std::string ToString () const
 
virtual void ToString (std::ostream &str) const
 
- Public Member Functions inherited from SEProperty
 SEProperty ()
 
virtual ~SEProperty ()
 
virtual void Invalidate ()=0
 
virtual bool IsValid () const =0
 

Protected Attributes

Enum m_enum
 
- Protected Attributes inherited from SEScalar
double m_value
 
bool m_isnan =true
 
bool m_isinf =false
 
bool m_readOnly =false
 

Private Member Functions

bool IsInfinity () const
 
bool IsPositive () const
 
bool IsNegative () const
 
bool IsZero (double limit=ZERO_APPROX) 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)
 

Static Private Member Functions

static bool IsZero (double value, double limit)
 

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

◆ SEScalarEnum()

template<typename Enum >
SEScalarEnum< Enum >::SEScalarEnum ( )
inline

◆ ~SEScalarEnum()

template<typename Enum >
virtual SEScalarEnum< Enum >::~SEScalarEnum ( )
inlinevirtual

Member Function Documentation

◆ Average()

template<typename Enum >
void SEScalar::Average ( int  cnt)
private

◆ Copy()

template<typename Enum >
void SEScalarEnum< Enum >::Copy ( const SEScalarEnum< Enum > &  s)
inline

◆ ForceIncrement()

template<typename Enum >
double SEScalar::ForceIncrement ( double  d)
private

◆ ForceInvalidate()

template<typename Enum >
virtual void SEScalarEnum< Enum >::ForceInvalidate ( )
inlineoverridevirtual

Reimplemented from SEScalar.

◆ ForceValue()

template<typename Enum >
void SEScalar::ForceValue ( double  d)
private

◆ GetEnum()

template<typename Enum >
Enum SEScalarEnum< Enum >::GetEnum ( ) const
inline

◆ Increment() [1/2]

template<typename Enum >
double SEScalar::Increment ( const SEScalar s)
private

◆ Increment() [2/2]

template<typename Enum >
double SEScalar::Increment ( double  d)
private

◆ Invalidate()

template<typename Enum >
virtual void SEScalarEnum< Enum >::Invalidate ( )
inlineoverridevirtual

Sets the value to NaN and removes the unit Note that this does not affect bounds

Reimplemented from SEScalar.

◆ IsInfinity()

template<typename Enum >
bool SEScalar::IsInfinity ( ) const
inlineprivate

◆ IsNegative()

template<typename Enum >
bool SEScalar::IsNegative ( ) const
private

◆ IsPositive()

template<typename Enum >
bool SEScalar::IsPositive ( ) const
private

◆ IsZero() [1/2]

template<typename Enum >
bool SEScalar::IsZero ( double  limit = ZERO_APPROX) const
private

◆ IsZero() [2/2]

template<typename Enum >
bool SEScalar::IsZero ( double  value,
double  limit 
)
staticprivate

◆ Multiply()

template<typename Enum >
double SEScalar::Multiply ( double  d)
private

◆ operator!=()

template<typename Enum >
bool SEScalarEnum< Enum >::operator!= ( const Enum &  e)
inline

◆ operator=()

template<typename Enum >
void SEScalarEnum< Enum >::operator= ( const Enum &  e)
inline

◆ operator==()

template<typename Enum >
bool SEScalarEnum< Enum >::operator== ( const Enum &  e)
inline

◆ Set()

template<typename Enum >
void SEScalarEnum< Enum >::Set ( const SEScalarEnum< Enum > &  s)
inline

◆ SetValue()

template<typename Enum >
void SEScalar::SetValue ( double  d)
private

Member Data Documentation

◆ m_enum

template<typename Enum >
Enum SEScalarEnum< Enum >::m_enum
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.