#include <Dynamic.h>
Public Member Functions | |
Dynamic (const Dynamic &dynamic) | |
copy constructor | |
void | operator= (const Dynamic &dynamic) |
assignment | |
ST | value (void) const |
return the value | |
Dynamic | operator *= (const ST factor) |
operator*= for right hand side multiplication with an ST | |
Dynamic | operator * (const ST factor) |
Dynamic | operator/= (const ST divisor) |
operator/= for division by an ST | |
Dynamic | operator/ (const ST divisor) |
Dynamic | operator+ (void) const |
unary operator+ | |
Dynamic | operator- (void) const |
unary operator- | |
template<template< class, class > class Q1, class BT1, long RL_N, long RL_D, long RM_N, long RM_D, long RT_N, long RT_D, long RE_N, long RE_D, long RTE_N, long RTE_D, long RA_N, long RA_D, long RLU_N, long RLU_D, class UL1, class DU1, class SU1> bool | operator== (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, BT1, UL1, DU1, ST >, SU1 > &quantity) |
equality | |
bool | operator== (Dynamic< ST > quantity) |
equality | |
template<template< class, class > class Q1, class BT1, long RL_N, long RL_D, long RM_N, long RM_D, long RT_N, long RT_D, long RE_N, long RE_D, long RTE_N, long RTE_D, long RA_N, long RA_D, long RLU_N, long RLU_D, class UL1, class DU1, class SU1> bool | operator!= (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, BT1, UL1, DU1, ST >, SU1 > &quantity) |
inequality | |
template<template< class, class > class Q1, class BT1, long RL_N, long RL_D, long RM_N, long RM_D, long RT_N, long RT_D, long RE_N, long RE_D, long RTE_N, long RTE_D, long RA_N, long RA_D, long RLU_N, long RLU_D, class UL1, class DU1, class SU1> bool | operator> (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, BT1, UL1, DU1, ST >, SU1 > &quantity) |
comparison: greater than | |
template<template< class, class > class Q1, class BT1, long RL_N, long RL_D, long RM_N, long RM_D, long RT_N, long RT_D, long RE_N, long RE_D, long RTE_N, long RTE_D, long RA_N, long RA_D, long RLU_N, long RLU_D, class UL1, class DU1, class SU1> bool | operator< (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, BT1, UL1, DU1, ST >, SU1 > &quantity) |
comparison: less than | |
template<template< class, class > class Q1, class BT1, long RL_N, long RL_D, long RM_N, long RM_D, long RT_N, long RT_D, long RE_N, long RE_D, long RTE_N, long RTE_D, long RA_N, long RA_D, long RLU_N, long RLU_D, class UL1, class DU1, class SU1> bool | operator>= (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, BT1, UL1, DU1, ST >, SU1 > &quantity) |
comparison: greater equal | |
template<template< class, class > class Q1, class BT1, long RL_N, long RL_D, long RM_N, long RM_D, long RT_N, long RT_D, long RE_N, long RE_D, long RTE_N, long RTE_D, long RA_N, long RA_D, long RLU_N, long RLU_D, class UL1, class DU1, class SU1> bool | operator<= (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL_N, RL_D >, BSUtilities::Rational< RM_N, RM_D >, BSUtilities::Rational< RT_N, RT_D >, BSUtilities::Rational< RE_N, RE_D >, BSUtilities::Rational< RTE_N, RTE_D >, BSUtilities::Rational< RA_N, RA_D >, BSUtilities::Rational< RLU_N, RLU_D > >, BT1, UL1, DU1, ST >, SU1 > &quantity) |
comparison: less equal | |
Static Public Member Functions | |
template<template< class, class, class > class Q1, class BT1, long RL1_N, long RL1_D, long RM1_N, long RM1_D, long RT1_N, long RT1_D, long RE1_N, long RE1_D, long RTE1_N, long RTE1_D, long RA1_N, long RA1_D, long RLU1_N, long RLU1_D, class UL1, class DU1, class SU1, class DD1> Dynamic< ST > | pow (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL1_N, RL1_D >, BSUtilities::Rational< RM1_N, RM1_D >, BSUtilities::Rational< RT1_N, RT1_D >, BSUtilities::Rational< RE1_N, RE1_D >, BSUtilities::Rational< RTE1_N, RTE1_D >, BSUtilities::Rational< RA1_N, RA1_D >, BSUtilities::Rational< RLU1_N, RLU1_D > >, BT1, UL1, DU1, ST >, SU1, DD1 > &quantity, const int &exp) |
the pow function with dynamic integer exponent | |
template<template< class, class, class > class Q1, class BT1, long RL1_N, long RL1_D, long RM1_N, long RM1_D, long RT1_N, long RT1_D, long RE1_N, long RE1_D, long RTE1_N, long RTE1_D, long RA1_N, long RA1_D, long RLU1_N, long RLU1_D, class UL1, class DU1, class SU1, class DD1> Dynamic< ST > | pow (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL1_N, RL1_D >, BSUtilities::Rational< RM1_N, RM1_D >, BSUtilities::Rational< RT1_N, RT1_D >, BSUtilities::Rational< RE1_N, RE1_D >, BSUtilities::Rational< RTE1_N, RTE1_D >, BSUtilities::Rational< RA1_N, RA1_D >, BSUtilities::Rational< RLU1_N, RLU1_D > >, BT1, UL1, DU1, ST >, SU1, DD1 > &quantity, const long int &exp) |
the pow function with dynamic long integer exponent | |
template<template< class, class, class > class Q1, class BT1, long RL1_N, long RL1_D, long RM1_N, long RM1_D, long RT1_N, long RT1_D, long RE1_N, long RE1_D, long RTE1_N, long RTE1_D, long RA1_N, long RA1_D, long RLU1_N, long RLU1_D, class UL1, class DU1, class SU1, class DD1> Dynamic< ST > | pow (const Q1< Quantity< dimension::Dimension< BSUtilities::Rational< RL1_N, RL1_D >, BSUtilities::Rational< RM1_N, RM1_D >, BSUtilities::Rational< RT1_N, RT1_D >, BSUtilities::Rational< RE1_N, RE1_D >, BSUtilities::Rational< RTE1_N, RTE1_D >, BSUtilities::Rational< RA1_N, RA1_D >, BSUtilities::Rational< RLU1_N, RLU1_D > >, BT1, UL1, DU1, ST >, SU1, DD1 > &quantity, const double &exp) |
the pow function with dynamic double exponent | |
Public Attributes | |
const long | _rl_n |
const long | _rl_d |
const long | _rm_n |
const long | _rm_d |
const long | _rt_n |
const long | _rt_d |
const long | _re_n |
const long | _re_d |
const long | _rte_n |
const long | _rte_d |
const long | _ra_n |
const long | _ra_d |
const long | _rlu_n |
const long | _rlu_d |
Private Member Functions | |
Dynamic (void) | |
default constructor | |
Dynamic (const long rl_n, const long rl_d, const long rm_n, const long rm_d, const long rt_n, const long rt_d, const long re_n, const long re_d, const long rte_n, const long rte_d, const long ra_n, const long ra_d, const long rlu_n, const long rlu_d, const ST value) | |
constructor | |
Private Attributes | |
ST | _value |
the value is private and returned via member function value (), while the dimensional numerators and denominators of the seven dimensional rational numbers are const values, which are made public.
Definition at line 46 of file Dynamic.h.
|
default constructor must not be used - is private and never defined. Referenced by quantity::Dynamic< ST >::operator *(), quantity::Dynamic< ST >::operator+(), quantity::Dynamic< ST >::operator-(), and quantity::Dynamic< ST >::operator/(). |
|
constructor must not be used outside specifically allowed contexts
|
|
|
returns a transient Dynamic object with same data as original object, but value multiplied by factor Definition at line 152 of file Dynamic.h. References quantity::Dynamic< ST >::Dynamic(). |
|
operator*= for right hand side multiplication with an ST returns the Dynamic object with value multiplied by factor |
|
inequality checks commensurability at run time, and then compares (if commensurability is confirmed) the values of the Dynamic object and of the quantity object (after standardization); if incommensurate objects are used, a DimensionMismatch exception is thrown; right hand side object can be any Quantity type and mode. Definition at line 265 of file Dynamic.h. References quantity::Dynamic< ST >::_ra_d, quantity::Dynamic< ST >::_ra_n, quantity::Dynamic< ST >::_re_d, quantity::Dynamic< ST >::_re_n, quantity::Dynamic< ST >::_rl_d, quantity::Dynamic< ST >::_rl_n, quantity::Dynamic< ST >::_rlu_d, quantity::Dynamic< ST >::_rlu_n, quantity::Dynamic< ST >::_rm_d, quantity::Dynamic< ST >::_rm_n, quantity::Dynamic< ST >::_rt_d, quantity::Dynamic< ST >::_rt_n, quantity::Dynamic< ST >::_rte_d, quantity::Dynamic< ST >::_rte_n, and quantity::Dynamic< ST >::value(). |
|
unary operator+ returns an object identical to the Dynamic object Definition at line 171 of file Dynamic.h. References quantity::Dynamic< ST >::Dynamic(). |
|
unary operator- returns an object identical to the Dynamic object, but with value multiplied by -1.0 Definition at line 177 of file Dynamic.h. References quantity::Dynamic< ST >::Dynamic(). |
|
returns a transient Dynamic object with same data as original object, but value divided by divisor Definition at line 165 of file Dynamic.h. References quantity::Dynamic< ST >::Dynamic(). |
|
operator/= for division by an ST returns the Dynamic object with value divided by divisor |
|
comparison: less than checks commensurability at run time, and then compares (if commensurability is confirmed) the values of the Dynamic object and of the quantity object (after standardization); if incommensurate objects are used, a DimensionMismatch exception is thrown; right hand side object can be any Quantity type and mode. Definition at line 351 of file Dynamic.h. References quantity::Dynamic< ST >::_ra_d, quantity::Dynamic< ST >::_ra_n, quantity::Dynamic< ST >::_re_d, quantity::Dynamic< ST >::_re_n, quantity::Dynamic< ST >::_rl_d, quantity::Dynamic< ST >::_rl_n, quantity::Dynamic< ST >::_rlu_d, quantity::Dynamic< ST >::_rlu_n, quantity::Dynamic< ST >::_rm_d, quantity::Dynamic< ST >::_rm_n, quantity::Dynamic< ST >::_rt_d, quantity::Dynamic< ST >::_rt_n, quantity::Dynamic< ST >::_rte_d, quantity::Dynamic< ST >::_rte_n, and quantity::Dynamic< ST >::value(). |
|
comparison: less equal checks commensurability at run time, and then compares (if commensurability is confirmed) the values of the Dynamic object and of the quantity object (after standardization); if incommensurate objects are used, a DimensionMismatch exception is thrown; right hand side object can be any Quantity type and mode. Definition at line 437 of file Dynamic.h. References quantity::Dynamic< ST >::_ra_d, quantity::Dynamic< ST >::_ra_n, quantity::Dynamic< ST >::_re_d, quantity::Dynamic< ST >::_re_n, quantity::Dynamic< ST >::_rl_d, quantity::Dynamic< ST >::_rl_n, quantity::Dynamic< ST >::_rlu_d, quantity::Dynamic< ST >::_rlu_n, quantity::Dynamic< ST >::_rm_d, quantity::Dynamic< ST >::_rm_n, quantity::Dynamic< ST >::_rt_d, quantity::Dynamic< ST >::_rt_n, quantity::Dynamic< ST >::_rte_d, quantity::Dynamic< ST >::_rte_n, and quantity::Dynamic< ST >::value(). |
|
|
equality checks commensurability at run time, and then compares (if commensurability is confirmed) the values of the Dynamic object and of the quantity object (after standardization); if incommensurate objects are used, a DimensionMismatch exception is thrown; right hand side object can be any Quantity type and mode. Definition at line 230 of file Dynamic.h. References quantity::Dynamic< ST >::_ra_d, quantity::Dynamic< ST >::_ra_n, quantity::Dynamic< ST >::_re_d, quantity::Dynamic< ST >::_re_n, quantity::Dynamic< ST >::_rl_d, quantity::Dynamic< ST >::_rl_n, quantity::Dynamic< ST >::_rlu_d, quantity::Dynamic< ST >::_rlu_n, quantity::Dynamic< ST >::_rm_d, quantity::Dynamic< ST >::_rm_n, quantity::Dynamic< ST >::_rt_d, quantity::Dynamic< ST >::_rt_n, quantity::Dynamic< ST >::_rte_d, quantity::Dynamic< ST >::_rte_n, and quantity::Dynamic< ST >::value(). |
|
equality checks commensurability at run time, and then compares (if commensurability is confirmed) the values of the Dynamic object and of the quantity object (after standardization); if incommensurate objects are used, a DimensionMismatch exception is thrown; right hand side object can be any Quantity type and mode. Definition at line 192 of file Dynamic.h. References quantity::Dynamic< ST >::_ra_d, quantity::Dynamic< ST >::_ra_n, quantity::Dynamic< ST >::_re_d, quantity::Dynamic< ST >::_re_n, quantity::Dynamic< ST >::_rl_d, quantity::Dynamic< ST >::_rl_n, quantity::Dynamic< ST >::_rlu_d, quantity::Dynamic< ST >::_rlu_n, quantity::Dynamic< ST >::_rm_d, quantity::Dynamic< ST >::_rm_n, quantity::Dynamic< ST >::_rt_d, quantity::Dynamic< ST >::_rt_n, quantity::Dynamic< ST >::_rte_d, quantity::Dynamic< ST >::_rte_n, and quantity::Dynamic< ST >::value(). |
|
comparison: greater than checks commensurability at run time, and then compares (if commensurability is confirmed) the values of the Dynamic object and of the quantity object (after standardization); if incommensurate objects are used, a DimensionMismatch exception is thrown; right hand side object can be any Quantity type and mode. Definition at line 308 of file Dynamic.h. References quantity::Dynamic< ST >::_ra_d, quantity::Dynamic< ST >::_ra_n, quantity::Dynamic< ST >::_re_d, quantity::Dynamic< ST >::_re_n, quantity::Dynamic< ST >::_rl_d, quantity::Dynamic< ST >::_rl_n, quantity::Dynamic< ST >::_rlu_d, quantity::Dynamic< ST >::_rlu_n, quantity::Dynamic< ST >::_rm_d, quantity::Dynamic< ST >::_rm_n, quantity::Dynamic< ST >::_rt_d, quantity::Dynamic< ST >::_rt_n, quantity::Dynamic< ST >::_rte_d, quantity::Dynamic< ST >::_rte_n, and quantity::Dynamic< ST >::value(). |
|
comparison: greater equal checks commensurability at run time, and then compares (if commensurability is confirmed) the values of the Dynamic object and of the quantity object (after standardization); if incommensurate objects are used, a DimensionMismatch exception is thrown; right hand side object can be any Quantity type and mode. Definition at line 394 of file Dynamic.h. References quantity::Dynamic< ST >::_ra_d, quantity::Dynamic< ST >::_ra_n, quantity::Dynamic< ST >::_re_d, quantity::Dynamic< ST >::_re_n, quantity::Dynamic< ST >::_rl_d, quantity::Dynamic< ST >::_rl_n, quantity::Dynamic< ST >::_rlu_d, quantity::Dynamic< ST >::_rlu_n, quantity::Dynamic< ST >::_rm_d, quantity::Dynamic< ST >::_rm_n, quantity::Dynamic< ST >::_rt_d, quantity::Dynamic< ST >::_rt_n, quantity::Dynamic< ST >::_rte_d, quantity::Dynamic< ST >::_rte_n, and quantity::Dynamic< ST >::value(). |
|
the pow function with dynamic double exponent returns a transient Dynamic variable with the dimension of the first argument multiplied by the rational representation of the second argument. Definition at line 536 of file Dynamic.h. References quantity::exp(). |
|
the pow function with dynamic long integer exponent returns a transient Dynamic variable with the dimensions of the first argument multiplied by exp; explicit conversion to double is necessary to avoid ambiguity of std::pow call. Definition at line 506 of file Dynamic.h. References quantity::exp(). |
|
the pow function with dynamic integer exponent returns a transient Dynamic variable with the dimensions of the first argument multiplied by exp. Definition at line 477 of file Dynamic.h. References quantity::exp(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 49 of file Dynamic.h. Referenced by quantity::Dynamic< ST >::operator=(). |