|
@@ -1,9 +1,10 @@
|
|
|
/*
|
|
/*
|
|
|
* Author: Patrick-Christopher Mattulat
|
|
* Author: Patrick-Christopher Mattulat
|
|
|
|
|
+ * Co-Author: Claude Sonnet 4.6 (LLM)
|
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2020-08-17
|
|
* Created: 2020-08-17
|
|
|
- * Changed: 2024-09-11
|
|
|
|
|
|
|
+ * Changed: 2026-06-23
|
|
|
*
|
|
*
|
|
|
* */
|
|
* */
|
|
|
|
|
|
|
@@ -21,63 +22,63 @@
|
|
|
* @doc: boxing.Long.description('This class represents the primitive datatype long and provides functionalities for arithmetic operations and string representation.')
|
|
* @doc: boxing.Long.description('This class represents the primitive datatype long and provides functionalities for arithmetic operations and string representation.')
|
|
|
* */
|
|
* */
|
|
|
|
|
|
|
|
-namespace ls::std::boxing
|
|
|
|
|
|
|
+namespace ls::standard::boxing
|
|
|
{
|
|
{
|
|
|
- class LS_STD_DYNAMIC_GOAL Long : public ls::std::core::Class, public ls::std::core::interface_type::IBoxing
|
|
|
|
|
|
|
+ class LS_STD_DYNAMIC_GOAL Long : public ls::standard::core::Class, public ls::standard::core::interface_type::IBoxing
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
|
|
|
|
|
- explicit Long(ls::std::core::type::long_type _value);
|
|
|
|
|
|
|
+ explicit Long(ls::standard::core::type::long_type _value);
|
|
|
Long();
|
|
Long();
|
|
|
~Long() noexcept override;
|
|
~Long() noexcept override;
|
|
|
|
|
|
|
|
// assignment operators
|
|
// assignment operators
|
|
|
|
|
|
|
|
- ls::std::boxing::Long &operator=(ls::std::core::type::long_type _value);
|
|
|
|
|
|
|
+ ls::standard::boxing::Long &operator=(ls::standard::core::type::long_type _value);
|
|
|
|
|
|
|
|
// arithmetic operators
|
|
// arithmetic operators
|
|
|
|
|
|
|
|
- ls::std::core::type::long_type operator-() const;
|
|
|
|
|
- ls::std::core::type::long_type operator+(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- ls::std::core::type::long_type operator+(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- ls::std::core::type::long_type operator*(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- ls::std::core::type::long_type operator*(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- ls::std::core::type::long_type operator-(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- ls::std::core::type::long_type operator-(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- ls::std::core::type::long_type operator/(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- ls::std::core::type::long_type operator/(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- ls::std::core::type::long_type operator%(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- ls::std::core::type::long_type operator%(ls::std::core::type::long_type _value) const;
|
|
|
|
|
|
|
+ ls::standard::core::type::long_type operator-() const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator+(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator+(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator*(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator*(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator-(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator-(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator/(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator/(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator%(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ ls::standard::core::type::long_type operator%(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
|
|
|
// compound operators
|
|
// compound operators
|
|
|
|
|
|
|
|
- ls::std::boxing::Long &operator+=(const ls::std::boxing::Long &_long);
|
|
|
|
|
- ls::std::boxing::Long &operator+=(ls::std::core::type::long_type _value);
|
|
|
|
|
- ls::std::boxing::Long &operator-=(const ls::std::boxing::Long &_long);
|
|
|
|
|
- ls::std::boxing::Long &operator-=(ls::std::core::type::long_type _value);
|
|
|
|
|
- ls::std::boxing::Long &operator*=(const ls::std::boxing::Long &_long);
|
|
|
|
|
- ls::std::boxing::Long &operator*=(ls::std::core::type::long_type _value);
|
|
|
|
|
- ls::std::boxing::Long &operator/=(const ls::std::boxing::Long &_long);
|
|
|
|
|
- ls::std::boxing::Long &operator/=(ls::std::core::type::long_type _value);
|
|
|
|
|
|
|
+ ls::standard::boxing::Long &operator+=(const ls::standard::boxing::Long &_long);
|
|
|
|
|
+ ls::standard::boxing::Long &operator+=(ls::standard::core::type::long_type _value);
|
|
|
|
|
+ ls::standard::boxing::Long &operator-=(const ls::standard::boxing::Long &_long);
|
|
|
|
|
+ ls::standard::boxing::Long &operator-=(ls::standard::core::type::long_type _value);
|
|
|
|
|
+ ls::standard::boxing::Long &operator*=(const ls::standard::boxing::Long &_long);
|
|
|
|
|
+ ls::standard::boxing::Long &operator*=(ls::standard::core::type::long_type _value);
|
|
|
|
|
+ ls::standard::boxing::Long &operator/=(const ls::standard::boxing::Long &_long);
|
|
|
|
|
+ ls::standard::boxing::Long &operator/=(ls::standard::core::type::long_type _value);
|
|
|
|
|
|
|
|
// comparison operators
|
|
// comparison operators
|
|
|
|
|
|
|
|
- bool operator==(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- bool operator==(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- bool operator!=(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- bool operator!=(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- bool operator>(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- bool operator>(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- bool operator>=(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- bool operator>=(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- bool operator<(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- bool operator<(ls::std::core::type::long_type _value) const;
|
|
|
|
|
- bool operator<=(const ls::std::boxing::Long &_long) const;
|
|
|
|
|
- bool operator<=(ls::std::core::type::long_type _value) const;
|
|
|
|
|
|
|
+ bool operator==(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ bool operator==(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ bool operator!=(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ bool operator!=(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ bool operator>(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ bool operator>(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ bool operator>=(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ bool operator>=(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ bool operator<(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ bool operator<(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
+ bool operator<=(const ls::standard::boxing::Long &_long) const;
|
|
|
|
|
+ bool operator<=(ls::standard::core::type::long_type _value) const;
|
|
|
|
|
|
|
|
// logical operators
|
|
// logical operators
|
|
|
|
|
|
|
|
- friend bool operator!(const ls::std::boxing::Long &_long)
|
|
|
|
|
|
|
+ friend bool operator!(const ls::standard::boxing::Long &_long)
|
|
|
{
|
|
{
|
|
|
return !_long.value;
|
|
return !_long.value;
|
|
|
}
|
|
}
|
|
@@ -94,11 +95,11 @@ namespace ls::std::boxing
|
|
|
|
|
|
|
|
// additional functionality
|
|
// additional functionality
|
|
|
|
|
|
|
|
- [[nodiscard]] ls::std::core::type::long_type getValue() const;
|
|
|
|
|
|
|
+ [[nodiscard]] ls::standard::core::type::long_type getValue() const;
|
|
|
|
|
|
|
|
private:
|
|
private:
|
|
|
|
|
|
|
|
- ls::std::core::type::long_type value{};
|
|
|
|
|
|
|
+ ls::standard::core::type::long_type value{};
|
|
|
|
|
|
|
|
[[nodiscard]] static ::std::string _fetchClassName();
|
|
[[nodiscard]] static ::std::string _fetchClassName();
|
|
|
};
|
|
};
|