📄 ocinum.cpp
字号:
return operator*(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator* (const COCINumber & lhs, long double rhs)
{
return operator*(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator* (int lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (unsigned int lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (short lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (unsigned short lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (long lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (unsigned long lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (float lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (double lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber operator* (long double lhs , const COCINumber & rhs)
{
return operator*(COCINumber(rhs), lhs);
}
COCINumber& COCINumber::operator*=(const COCINumber& rhs)
{
*this = COCINumber(operator*(*this, rhs));
return *this;
}
COCINumber operator/ (const COCINumber & lhs, const COCINumber & rhs)
{
COCINumber ans(((COCINumber&)lhs).get_session());
if(!(((COCINumber&)lhs).is_null() || ((COCINumber&)rhs).is_null()))
{
CHECK(((COCINumber&)lhs).get_session().get_error(),
OCINumberDiv(((COCINumber&)lhs).get_session().get_error(),
(OCINumber *)((COCINumber&)lhs).get_oci_number(),
(OCINumber *)((COCINumber&)rhs).get_oci_number(),
(OCINumber *)ans.get_oci_number()));
}
return ans;
}
COCINumber operator/ (const COCINumber & lhs, int rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, unsigned int rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, short rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, unsigned short rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, long rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, unsigned long rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, float rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, double rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (const COCINumber & lhs, long double rhs)
{
return operator/(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
COCINumber operator/ (int lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (unsigned int lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (short lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (unsigned short lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (long lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (unsigned long lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (float lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (double lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber operator/ (long double lhs , const COCINumber & rhs)
{
return operator/(COCINumber(rhs), lhs);
}
COCINumber& COCINumber::operator/=(const COCINumber& rhs)
{
*this = COCINumber(operator/(*this, rhs));
return *this;
}
COCINumber operator% (const COCINumber & lhs, const COCINumber & rhs)
{
COCINumber ans(((COCINumber&)lhs).get_session());
if(!(((COCINumber&)lhs).is_null() || ((COCINumber&)rhs).is_null()))
{
CHECK(((COCINumber&)lhs).get_session().get_error(),
OCINumberMod(((COCINumber&)lhs).get_session().get_error(),
(OCINumber *)((COCINumber&)lhs).get_oci_number(),
(OCINumber *)((COCINumber&)rhs).get_oci_number(),
(OCINumber *)ans.get_oci_number()));
}
return ans;
}
bool operator> (const COCINumber & lhs, const COCINumber & rhs)
{
sword result = compare(lhs, rhs);
return (result > 0);
}
bool operator> (const COCINumber & lhs, int rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, unsigned int rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, short rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, unsigned short rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, long rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, unsigned long rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, float rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, double rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (const COCINumber & lhs, long double rhs)
{
return operator>(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator> (int lhs , const COCINumber & rhs)
{
return operator>(COCINumber(((COCINumber&)rhs).get_session(),lhs), rhs);
}
bool operator> (unsigned int lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator> (short lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator> (unsigned short lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator> (long lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator> (unsigned long lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator> (float lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator> (double lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator> (long double lhs , const COCINumber & rhs)
{
return operator>(lhs, rhs);
}
bool operator>= (const COCINumber & lhs, const COCINumber & rhs)
{
sword result = compare(lhs, rhs);
return (result >= 0);
}
bool operator>= (const COCINumber & lhs, int rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, unsigned int rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, short rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, unsigned short rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, long rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, unsigned long rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, float rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, double rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (const COCINumber & lhs, long double rhs)
{
return operator>=(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator>= (int lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (unsigned int lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (short lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (unsigned short lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (long lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (unsigned long lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (float lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (double lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator>= (long double lhs , const COCINumber & rhs)
{
return operator>=(lhs, rhs);
}
bool operator< (const COCINumber & lhs, const COCINumber & rhs)
{
sword result = compare(lhs, rhs);
return (result < 0);
}
bool operator< (const COCINumber & lhs, int rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, unsigned int rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, short rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, unsigned short rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, long rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, unsigned long rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, float rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, double rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (const COCINumber & lhs, long double rhs)
{
return operator<(lhs, COCINumber(((COCINumber&)lhs).get_session(),rhs));
}
bool operator< (int lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (unsigned int lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (short lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (unsigned short lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (long lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (unsigned long lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (float lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (double lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator< (long double lhs , const COCINumber & rhs)
{
return operator<(lhs, rhs);
}
bool operator<= (const COCINumber & lhs, const COCINumber & rhs)
{
sword result = compare(lhs, rhs);
return (result <= 0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -