Castor3D 0.16.0
Multiplatform 3D engine
|
A value inside a range. More...
#include <RangedValue.hpp>
Public Member Functions | |
RangedValue (T const &value, Range< T > const &range) noexcept | |
Constructor. | |
RangedValue & | operator= (T const &value) noexcept |
Assignment from a value. | |
void | updateRange (Range< T > const &range) noexcept |
Redefines the range. | |
float | percent () const noexcept |
T const & | value () const noexcept |
Range< T > const & | range () const noexcept |
Arithmetic operators. | |
RangedValue< T > & | operator+= (RangedValue< T > const &rhs) noexcept |
RangedValue< T > & | operator-= (RangedValue< T > const &rhs) noexcept |
RangedValue< T > & | operator*= (RangedValue< T > const &rhs) noexcept |
RangedValue< T > & | operator/= (RangedValue< T > const &rhs) noexcept |
RangedValue< T > & | operator+= (T const &rhs) noexcept |
RangedValue< T > & | operator-= (T const &rhs) noexcept |
RangedValue< T > & | operator*= (T const &rhs) noexcept |
RangedValue< T > & | operator/= (T const &rhs) noexcept |
A value inside a range.
|
inlinenoexcept |
Constructor.
[in] | value | The value. |
[in] | range | The range. |
References castor::RangedValue< T >::range().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Assignment from a value.
[in] | value | The value. |
References castor::RangedValue< T >::value().
|
inlinenoexcept |
m_value
<= m_range.m_min
.m_value
>= m_range.m_max
.m_range.m_min
or from m_range.m_max
.
|
inlinenoexcept |
Referenced by castor3d::SliderCtrl::getRange(), castor3d::ProgressCtrl::getRange(), castor::RangedValue< T >::RangedValue(), and castor::RangedValue< T >::updateRange().
|
inlinenoexcept |
Redefines the range.
[in] | range | The range. |
References castor::RangedValue< T >::range().
|
inlinenoexcept |
Referenced by castor3d::ProgressCtrl::getProgress(), castor3d::SliderCtrl::getValue(), castor3d::ProgressCtrl::incProgress(), and castor::RangedValue< T >::operator=().