SEScalarEnum< Enum > Class Template Reference

#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 SetEnum (Enum e)
 
- Public Member Functions inherited from SEScalar
 SEScalar ()
 
virtual ~SEScalar ()
 
bool Set (const SEScalar &s)
 
void Copy (const SEScalar &s)
 
virtual bool IsValid () const
 
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
 
void SetValue (double d)
 
void ForceValue (double d)
 
double Increment (const SEScalar &s)
 
double IncrementValue (double d)
 
double Multiply (const SEScalar &s)
 
double MultiplyValue (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 ()
 

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
 

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 Public Attributes inherited from SEScalar
static unsigned long long int NaN
 

Constructor & Destructor Documentation

◆ SEScalarEnum()

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

◆ ~SEScalarEnum()

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

Member Function Documentation

◆ Copy()

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

◆ ForceInvalidate()

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

Reimplemented from SEScalar.

◆ GetEnum()

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

◆ 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.

◆ Set()

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

◆ SetEnum()

template<typename Enum>
void SEScalarEnum< Enum >::SetEnum ( Enum  e)
inline

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.