float.hpp

来自「非常好的进化算法EC 实现平台 可以实现多种算法 GA GP」· HPP 代码 · 共 516 行 · 第 1/2 页

HPP
516
字号
  return inLeftFloat.getWrappedValue() >= inRightFloat;  Beagle_StackTraceEndM("bool operator>=(const Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Add two Float. *  \param inLeftFloat Left value to add. *  \param inRightFloat Right value to add. *  \return Result of the addition. */inlineBeagle::Float operator+(const Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() + inRightFloat.getWrappedValue();  Beagle_StackTraceEndM("Float operator+(const Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Add a Float with a float. *  \param inLeftFloat Left value to add. *  \param inRightFloat Right value to add. *  \return Result of the addition. */inlineBeagle::Float operator+(const Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() + inRightFloat;  Beagle_StackTraceEndM("Float operator+(const Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Add a Float to a Float. *  \param inLeftFloat Left value to which the right one is added. *  \param inRightFloat Value to add. *  \return Result of the addition. */inlineBeagle::Float operator+=(Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() += inRightFloat.getWrappedValue();  return inLeftFloat;  Beagle_StackTraceEndM("Float operator+=(Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Add a float to a Float. *  \param inLeftFloat Left value to which the right one is added. *  \param inRightFloat Value to add. *  \return Result of the addition. */inlineBeagle::Float operator+=(Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() += inRightFloat;  return inLeftFloat;  Beagle_StackTraceEndM("Float operator+=(Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Subtract two Float. *  \param inLeftFloat Left value to subtract. *  \param inRightFloat Right value to subtract. *  \return Result of the subtract. */inlineBeagle::Float operator-(const Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() - inRightFloat.getWrappedValue();  Beagle_StackTraceEndM("Float operator-(const Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Subtract a float from a Float. *  \param inLeftFloat Left value to subtract. *  \param inRightFloat Right value to subtract. *  \return Result of the subtract. */inlineBeagle::Float operator-(const Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() - inRightFloat;  Beagle_StackTraceEndM("Float operator-(const Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Subtract a Float from a Float. *  \param inLeftFloat Left value from which the right float is subtracted. *  \param inRightFloat Value to subtract. *  \return Result of the subtraction. */inlineBeagle::Float operator-=(Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() -= inRightFloat.getWrappedValue();  return inLeftFloat;  Beagle_StackTraceEndM("Float operator-=(Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Subtract a float from a Float. *  \param inLeftFloat Left value from which the right float is subtracted. *  \param inRightFloat Value to subtract. *  \return Result of the subtraction. */inlineBeagle::Float operator-=(Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() -= inRightFloat;  return inLeftFloat;  Beagle_StackTraceEndM("Float operator-=(Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Multiply two Float. *  \param inLeftFloat Left value to multiply. *  \param inRightFloat Right value to multiply. *  \return Result of the multiply. */inlineBeagle::Float operator*(const Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() * inRightFloat.getWrappedValue();  Beagle_StackTraceEndM("Float operator*(const Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Multiply a Float with a float. *  \param inLeftFloat Left value to multiply. *  \param inRightFloat Right value to multiply. *  \return Result of the multiply. */inlineBeagle::Float operator*(const Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() * inRightFloat;  Beagle_StackTraceEndM("Float operator*(const Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Multiply a Float with a Float. *  \param inLeftFloat Left value to which the right float is multiplied. *  \param inRightFloat Right value to multiply. *  \return Result of the multiplication. */inlineBeagle::Float operator*=(Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() *= inRightFloat.getWrappedValue();  return inLeftFloat;  Beagle_StackTraceEndM("Float operator*=(Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Multiply a Float with a float. *  \param inLeftFloat Left value from which the right float is multiplied. *  \param inRightFloat Right value to multiply. *  \return Result of the multiplication. */inlineBeagle::Float operator*=(Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() *= inRightFloat;  return inLeftFloat;  Beagle_StackTraceEndM("Float operator*=(Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Divide two Float. *  \param inLeftFloat Left value to divide. *  \param inRightFloat Right value to divide. *  \return Result of the division. */inlineBeagle::Float operator/(const Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() / inRightFloat.getWrappedValue();  Beagle_StackTraceEndM("Float operator/(const Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Divide a Float with a float. *  \param inLeftFloat Left value to divide. *  \param inRightFloat Right value to divide. *  \return Result of the division. */inlineBeagle::Float operator/(const Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  return inLeftFloat.getWrappedValue() / inRightFloat;  Beagle_StackTraceEndM("Float operator/(const Float& inLeftFloat, float inRightFloat)");}/*! *  \brief Divide a Float with a Float. *  \param inLeftFloat Left value to which the right float is divided. *  \param inRightFloat Right value to divide. *  \return Result of the division. */inlineBeagle::Float operator/=(Beagle::Float& inLeftFloat, const Beagle::Float& inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() /= inRightFloat.getWrappedValue();  return inLeftFloat;  Beagle_StackTraceEndM("Float operator/=(Float& inLeftFloat, const Float& inRightFloat)");}/*! *  \brief Divide a Float with a float. *  \param inLeftFloat Left value from which the right float is divided. *  \param inRightFloat Right value to divide. *  \return Result of the division. */inlineBeagle::Float operator/=(Beagle::Float& inLeftFloat, float inRightFloat){  Beagle_StackTraceBeginM();  inLeftFloat.getWrappedValue() /= inRightFloat;  return inLeftFloat;  Beagle_StackTraceEndM("Float operator/=(Float& inLeftFloat, float inRightFloat)");}#endif // Beagle_Float_hpp

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?