long.hpp

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

HPP
579
字号
  Beagle_StackTraceEndM("Long operator++(Long& inLong, int)");}/*! *  \brief Add two Long. *  \param inLeftLong Left value to add. *  \param inRightLong Right value to add. *  \return Result of the addition. */inlineBeagle::Long operator+(const Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() + inRightLong.getWrappedValue();  Beagle_StackTraceEndM("Long operator+(const Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Add a Long with a long. *  \param inLeftLong Left value to add. *  \param inRightLong Right value to add. *  \return Result of the addition. */inlineBeagle::Long operator+(const Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() + inRightLong;  Beagle_StackTraceEndM("Beagle::Long operator+(const Beagle::Long& inLeftLong, long inRightLong)");}/*! *  \brief Add a Long to a Long. *  \param inLeftLong Left value to which the right one is added. *  \param inRightLong Value to add. *  \return Result of the addition. */inlineBeagle::Long& operator+=(Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() += inRightLong.getWrappedValue();  return inLeftLong;  Beagle_StackTraceEndM("Long& operator+=(Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Add a long to a Long. *  \param inLeftLong Left value to which the right one is added. *  \param inRightLong Value to add. *  \return Result of the addition. */inlineBeagle::Long& operator+=(Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() += inRightLong;  return inLeftLong;  Beagle_StackTraceEndM("Long& operator+=(Long& inLeftLong, long inRightLong)");}/*! *  \brief Decrement a Long (prefix version). *  \param inLong Long to decrement. *  \return Long decremented. */inlineBeagle::Long& operator--(Beagle::Long& inLong){  Beagle_StackTraceBeginM();  inLong.getWrappedValue()--;  return inLong;  Beagle_StackTraceEndM("Long& operator--(Long& inLong)");}/*! *  \brief Decrement a Long (postfix version). *  \param inLong Long to decrement. *  \return Long before being decremented. */inlineBeagle::Long operator--(Beagle::Long& inLong, int){  Beagle_StackTraceBeginM();  Beagle::Long lLong = inLong;  inLong.getWrappedValue()--;  return lLong;  Beagle_StackTraceEndM("Long operator--(Long& inLong, int)");}/*! *  \brief Subtract two Long. *  \param inLeftLong Left value to subtract. *  \param inRightLong Right value to subtract. *  \return Result of the subtract. */inlineBeagle::Long operator-(const Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() - inRightLong.getWrappedValue();  Beagle_StackTraceEndM("Long operator-(const Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Subtract a long from a Long. *  \param inLeftLong Left value to subtract. *  \param inRightLong Right value to subtract. *  \return Result of the subtract. */inlineBeagle::Long operator-(const Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() - inRightLong;  Beagle_StackTraceEndM("Long operator-(const Long& inLeftLong, long inRightLong)");}/*! *  \brief Subtract a Long from a Long. *  \param inLeftLong Left value from which the right long is subtracted. *  \param inRightLong Value to subtract. *  \return Result of the subtraction. */inlineBeagle::Long& operator-=(Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() -= inRightLong.getWrappedValue();  return inLeftLong;  Beagle_StackTraceEndM("Long& operator-=(Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Subtract a long from a Long. *  \param inLeftLong Left value from which the right long is subtracted. *  \param inRightLong Value to subtract. *  \return Result of the subtraction. */inlineBeagle::Long& operator-=(Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() -= inRightLong;  return inLeftLong;  Beagle_StackTraceEndM("Long& operator-=(Long& inLeftLong, long inRightLong)");}/*! *  \brief Multiply two Long. *  \param inLeftLong Left value to multiply. *  \param inRightLong Right value to multiply. *  \return Result of the multiply. */inlineBeagle::Long operator*(const Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() * inRightLong.getWrappedValue();  Beagle_StackTraceEndM("Long operator*(const Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Multiply a Long with a long. *  \param inLeftLong Left value to multiply. *  \param inRightLong Right value to multiply. *  \return Result of the multiply. */inlineBeagle::Long operator*(const Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() * inRightLong;  Beagle_StackTraceEndM("Long operator*(const Long& inLeftLong, long inRightLong)");}/*! *  \brief Multiply a Long with a Long. *  \param inLeftLong Left value to which the right long is multiplied. *  \param inRightLong Right value to multiply. *  \return Result of the multiplication. */inlineBeagle::Long& operator*=(Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() *= inRightLong.getWrappedValue();  return inLeftLong;  Beagle_StackTraceEndM("Long& operator*=(Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Multiply a Long with a long. *  \param inLeftLong Left value from which the right long is multiplied. *  \param inRightLong Right value to multiply. *  \return Result of the multiplication. */inlineBeagle::Long& operator*=(Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() *= inRightLong;  return inLeftLong;  Beagle_StackTraceEndM("Long& operator*=(Long& inLeftLong, long inRightLong)");}/*! *  \brief Divide two Long. *  \param inLeftLong Left value to divide. *  \param inRightLong Right value to divide. *  \return Result of the division. */inlineBeagle::Long operator/(const Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() / inRightLong.getWrappedValue();  Beagle_StackTraceEndM("Long operator/(const Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Divide a Long with a long. *  \param inLeftLong Left value to divide. *  \param inRightLong Right value to divide. *  \return Result of the division. */inlineBeagle::Long operator/(const Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  return inLeftLong.getWrappedValue() / inRightLong;  Beagle_StackTraceEndM("Long operator/(const Long& inLeftLong, long inRightLong)");}/*! *  \brief Divide a Long with a Long. *  \param inLeftLong Left value to which the right long is divided. *  \param inRightLong Right value to divide. *  \return Result of the division. */inlineBeagle::Long& operator/=(Beagle::Long& inLeftLong, const Beagle::Long& inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() /= inRightLong.getWrappedValue();  return inLeftLong;  Beagle_StackTraceEndM("Long& operator/=(Long& inLeftLong, const Long& inRightLong)");}/*! *  \brief Divide a Long with a long. *  \param inLeftLong Left value from which the right long is divided. *  \param inRightLong Right value to divide. *  \return Result of the division. */inlineBeagle::Long operator/=(Beagle::Long& inLeftLong, long inRightLong){  Beagle_StackTraceBeginM();  inLeftLong.getWrappedValue() /= inRightLong;  return inLeftLong;  Beagle_StackTraceEndM("Long operator/=(Long& inLeftLong, long inRightLong)");}#endif // Beagle_Long_hpp

⌨️ 快捷键说明

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