#include <xlong.h>
Public Member Functions | |
xlong () | |
xlong (const xlong &) | |
Default Constructor for the XLONG class. Its do not actually do anything! Initialise an XLONG to a specific value. | |
xlong (INT32) | |
Initialise an XLONG to a specific value. | |
xlong (INT32) | |
void | ToString (String *out) const |
Converts value of XLONG into an ASCII string representing it. | |
xlong &CCAPI | operator= (const xlong &) |
Overloading the assignment operator for XLONGs. | |
xlong &CCAPI | operator= (INT32) |
Overloading the assignment operator for XLONGs. | |
xlong &CCAPI | operator+= (const xlong &) |
Overloading the plus-equals operator for XLONGs. | |
xlong &CCAPI | operator+= (INT32) |
Overloading the plus-equals operator for XLONGs. | |
xlong &CCAPI | operator-= (const xlong &) |
Overloading the minus-equals operator for XLONGs. | |
xlong &CCAPI | operator-= (INT32) |
Overloading the minus-equals operator for XLONGs. | |
xlong &CCAPI | operator *= (const xlong &) |
Overloading the times-equals operator for XLONGs. | |
xlong &CCAPI | operator *= (INT32) |
Overloading the times-equals operator for XLONGs. | |
xlong &CCAPI | operator *= (fixed16) |
xlong &CCAPI | operator/= (const xlong &) |
Overloading the divide-equals operator for XLONGs. | |
xlong &CCAPI | operator/= (INT32) |
Overloading the divide-equals operator for XLONGs. | |
xlong &CCAPI | operator<<= (UINT32) |
Overloading the left-shift-equals operator for XLONGs. | |
xlong &CCAPI | operator>>= (UINT32) |
Overloading the right-shift-equals operator for XLONGs. | |
xlong &CCAPI | operator++ () |
Overloading the prefix plus-plus operator for XLONGs. | |
xlong CCAPI | operator++ (INT32) |
Overloading the postfix plus-plus operator for XLONGs. | |
xlong &CCAPI | operator-- () |
Overloading the prefix minus-minus operator for XLONGs. | |
xlong CCAPI | operator-- (INT32) |
Overloading the postfix minus-minus operator for XLONGs. | |
INT32 | MakeLong () const |
To convert an XLONG value to a INT32. | |
INT32 | MakeInt () const |
To convert an XLONG value to an integer. | |
double | MakeDouble () const |
To convert an XLONG value to a double. | |
fixed16 | MakeFixed16 () const |
To convert an XLONG value to a FIXED16. | |
operator INT32 () const | |
void | GetHighLow (INT32 *pdwHigh, UINT32 *pdwLow) const |
Used when serializing XLONGs. | |
void | SetHighLow (INT32 dwHigh, UINT32 dwLow) |
Used when serializing XLONGs. | |
Private Attributes | |
UINT32 | low |
INT32 | high |
Friends | |
xlong CCAPI | operator+ (const xlong &, const xlong &) |
Overloading the addition operator for XLONGs. | |
xlong CCAPI | operator+ (const xlong &, INT32) |
Overloading the addition operator for XLONGs. | |
xlong CCAPI | operator+ (const xlong &, INT32) |
Overloading the addition operator for XLONGs. | |
xlong CCAPI | operator- (const xlong &, const xlong &) |
Overloading the subtract operator for XLONGs. | |
xlong CCAPI | operator- (const xlong &, INT32) |
Overloading the subtract operator for XLONGs. | |
xlong CCAPI | operator- (const xlong &, INT32) |
Overloading the subtract operator for XLONGs. | |
xlong CCAPI | operator- (const xlong &) |
Overloading the negation operator for XLONGs. | |
xlong CCAPI | operator * (const xlong &, const xlong &) |
Overloading the multiplication operator for XLONGs. | |
xlong CCAPI | operator * (const xlong &, INT32) |
Overloading the multiplication operator for XLONGs. | |
xlong CCAPI | operator * (const xlong &, INT32) |
Overloading the multiplication operator for XLONGs. | |
xlong CCAPI | operator * (const xlong &, fixed16) |
Overloading the multiplication operator for XLONGs and FIXED16s. | |
xlong CCAPI | operator/ (const xlong &, const xlong &) |
Overloading the division operator for XLONGs. | |
xlong CCAPI | operator/ (const xlong &, INT32) |
Overloading the division operator for XLONGs. | |
xlong CCAPI | operator/ (const xlong &, INT32) |
Overloading the division operator for XLONGs. | |
xlong CCAPI | operator>> (const xlong &, UINT32) |
Overloading the >> operator to mean shift right for XLONGs. | |
xlong CCAPI | operator<< (const xlong &, UINT32) |
Overloading the << operator to mean shift left for XLONGs. | |
INT32 CCAPI | operator== (const xlong &, const xlong &) |
Overloading the postfix equality operator for XLONGs. | |
INT32 CCAPI | operator== (const xlong &, INT32) |
Overloading the postfix equality operator for XLONGs. | |
INT32 CCAPI | operator== (const xlong &, INT32) |
Overloading the postfix equality operator for XLONGs. | |
INT32 CCAPI | operator!= (const xlong &, const xlong &) |
Overloading the postfix inequality operator for XLONGs. | |
INT32 CCAPI | operator!= (const xlong &, INT32) |
Overloading the postfix inequality operator for XLONGs. | |
INT32 CCAPI | operator!= (const xlong &, INT32) |
Overloading the postfix inequality operator for XLONGs. | |
INT32 CCAPI | operator< (const xlong &, const xlong &) |
Overloading the postfix less-than operator for XLONGs. | |
INT32 CCAPI | operator< (const xlong &, INT32) |
Overloading the postfix less-than operator for XLONGs. | |
INT32 CCAPI | operator< (const xlong &, INT32) |
Overloading the postfix less-than operator for XLONGs. | |
INT32 CCAPI | operator> (const xlong &, const xlong &) |
Overloading the postfix greater-than operator for XLONGs. | |
INT32 CCAPI | operator> (const xlong &, INT32) |
Overloading the postfix greater-than operator for XLONGs. | |
INT32 CCAPI | operator> (const xlong &, INT32) |
Overloading the postfix greater-than operator for XLONGs. | |
INT32 CCAPI | operator<= (const xlong &, const xlong &) |
Overloading the postfix less-than--or-equal operator for XLONGs. | |
INT32 CCAPI | operator<= (const xlong &, INT32) |
Overloading the postfix less-than--or-equal operator for XLONGs. | |
INT32 CCAPI | operator<= (const xlong &, INT32) |
Overloading the postfix less-than--or-equal operator for XLONGs. | |
INT32 CCAPI | operator>= (const xlong &, const xlong &) |
Overloading the postfix greater-than--or-equal operator for XLONGs. | |
INT32 CCAPI | operator>= (const xlong &, INT32) |
Overloading the postfix greater-than--or-equal operator for XLONGs. | |
INT32 CCAPI | operator>= (const xlong &, INT32) |
Overloading the postfix greater-than--or-equal operator for XLONGs. |
Definition at line 135 of file xlong.h.
|
Definition at line 143 of file xlong.h.
|
|
Default Constructor for the XLONG class. Its do not actually do anything! Initialise an XLONG to a specific value.
Definition at line 275 of file xlong.h.
|
|
Initialise an XLONG to a specific value.
Definition at line 299 of file xlong.h. 00300 { 00301 xlong temp; 00302 00303 LongToXlong(initValue, temp); // convert initValue from INT32 to xlong 00304 00305 this->low = temp.low; 00306 this->high = temp.high; 00307 }
|
|
|
|
Used when serializing XLONGs.
Definition at line 428 of file xlong.h.
|
|
To convert an XLONG value to a double.
Definition at line 407 of file xlong.h. 00408 { 00409 return XlongToDouble(*this); 00410 }
|
|
To convert an XLONG value to a FIXED16.
Definition at line 1674 of file xlong.cpp. 01675 { 01676 return fixed16( (short)this->low ); 01677 }
|
|
To convert an XLONG value to an integer.
Definition at line 383 of file xlong.h.
|
|
To convert an XLONG value to a INT32.
Definition at line 357 of file xlong.h. 00358 { 00359 return XlongToLong( *this ); 00360 }
|
|
|
|
Overloading the times-equals operator for XLONGs.
Definition at line 882 of file xlong.cpp. 00883 { 00884 xlong temp; 00885 00886 LongToXlong(operand, temp); 00887 00888 XMul64One(temp, *this); 00889 00890 return *this; 00891 }
|
|
Overloading the times-equals operator for XLONGs.
Definition at line 856 of file xlong.cpp. 00857 { 00858 XMul64One(operand, *this); 00859 00860 return *this; 00861 }
|
|
Definition at line 235 of file xlong.h.
|
|
Overloading the postfix plus-plus operator for XLONGs.
Definition at line 1074 of file xlong.cpp. 01075 { 01076 xlong result = *this; 01077 01078 XlongIncrement(*this); 01079 01080 return result; 01081 }
|
|
Overloading the prefix plus-plus operator for XLONGs.
Definition at line 1048 of file xlong.cpp. 01049 { 01050 XlongIncrement(*this); 01051 01052 return *this; 01053 }
|
|
Overloading the plus-equals operator for XLONGs.
Definition at line 769 of file xlong.cpp. 00770 { 00771 xlong temp; 00772 00773 LongToXlong(operand, temp); 00774 00775 XlongAddOne(temp, *this); 00776 00777 return *this; 00778 }
|
|
Overloading the plus-equals operator for XLONGs.
Definition at line 742 of file xlong.cpp. 00743 { 00744 XlongAddOne(operand, *this); 00745 00746 return *this; 00747 }
|
|
Overloading the postfix minus-minus operator for XLONGs.
Definition at line 1128 of file xlong.cpp. 01129 { 01130 xlong result = *this; 01131 01132 XlongDecrement(*this); 01133 01134 return result; 01135 }
|
|
Overloading the prefix minus-minus operator for XLONGs.
Definition at line 1102 of file xlong.cpp. 01103 { 01104 XlongDecrement(*this); 01105 01106 return *this; 01107 }
|
|
Overloading the minus-equals operator for XLONGs.
Definition at line 826 of file xlong.cpp. 00827 { 00828 xlong temp; 00829 00830 LongToXlong(operand, temp); 00831 00832 XlongSubOne(temp, *this); 00833 00834 return *this; 00835 }
|
|
Overloading the minus-equals operator for XLONGs.
Definition at line 800 of file xlong.cpp. 00801 { 00802 XlongSubOne(operand, *this); 00803 00804 return *this; 00805 }
|
|
Overloading the divide-equals operator for XLONGs.
Definition at line 964 of file xlong.cpp. 00965 { 00966 xlong temp; 00967 00968 LongToXlong(operand, temp); 00969 00970 XDiv64One(temp, *this); 00971 00972 return *this; 00973 }
|
|
Overloading the divide-equals operator for XLONGs.
Definition at line 938 of file xlong.cpp. 00939 { 00940 XDiv64One(operand, *this); 00941 00942 return *this; 00943 }
|
|
Overloading the left-shift-equals operator for XLONGs.
Definition at line 994 of file xlong.cpp. 00995 { 00996 XlongAsl64One(shift, *this); 00997 00998 return *this; 00999 }
|
|
Overloading the assignment operator for XLONGs.
Definition at line 710 of file xlong.cpp. 00711 { 00712 xlong temp; 00713 00714 LongToXlong(operand, temp); 00715 00716 this->low = temp.low; 00717 this->high = temp.high; 00718 00719 return *this; 00720 }
|
|
Overloading the assignment operator for XLONGs.
Definition at line 683 of file xlong.cpp. 00684 { 00685 this->low = operand.low; 00686 this->high = operand.high; 00687 00688 return *this; 00689 }
|
|
Overloading the right-shift-equals operator for XLONGs.
Definition at line 1020 of file xlong.cpp. 01021 { 01022 XlongAsr64One(shift, *this); 01023 01024 return *this; 01025 }
|
|
Used when serializing XLONGs.
Definition at line 449 of file xlong.h.
|
|
Converts value of XLONG into an ASCII string representing it.
Definition at line 128 of file xlong.cpp. 00129 { 00130 TCHAR s[21]; 00131 00132 XlongToAscii(*this, s); 00133 00134 *out = s; 00135 }
|
|
Overloading the multiplication operator for XLONGs and FIXED16s.
Definition at line 464 of file xlong.cpp. 00465 { 00466 xlong temp = operand1; 00467 00468 XlongByFixed16One( &temp, operand2 ); // more efficient to pass 1 ptr than 2 00469 00470 return temp; 00471 }
|
|
Overloading the multiplication operator for XLONGs.
Definition at line 402 of file xlong.cpp. 00403 { 00404 xlong result = operand1; 00405 xlong temp; 00406 00407 LongToXlong(operand2, temp); 00408 00409 XMul64One(temp, result); 00410 00411 return result; 00412 }
|
|
Overloading the multiplication operator for XLONGs.
Definition at line 402 of file xlong.cpp. 00403 { 00404 xlong result = operand1; 00405 xlong temp; 00406 00407 LongToXlong(operand2, temp); 00408 00409 XMul64One(temp, result); 00410 00411 return result; 00412 }
|
|
Overloading the multiplication operator for XLONGs.
Definition at line 373 of file xlong.cpp. 00374 { 00375 xlong result = operand1; 00376 00377 XMul64One(operand2, result); 00378 00379 return result; 00380 }
|
|
Overloading the postfix inequality operator for XLONGs.
Definition at line 1272 of file xlong.cpp. 01273 { 01274 xlong temp; 01275 01276 LongToXlong(second, temp); 01277 01278 return XlongCmpNE(first, temp); 01279 }
|
|
Overloading the postfix inequality operator for XLONGs.
Definition at line 1272 of file xlong.cpp. 01273 { 01274 xlong temp; 01275 01276 LongToXlong(second, temp); 01277 01278 return XlongCmpNE(first, temp); 01279 }
|
|
Overloading the postfix inequality operator for XLONGs.
Definition at line 1246 of file xlong.cpp. 01247 { 01248 return XlongCmpNE(first, second); 01249 }
|
|
Overloading the addition operator for XLONGs.
Definition at line 191 of file xlong.cpp. 00192 { 00193 xlong result = operand1; 00194 xlong temp; 00195 00196 LongToXlong(operand2, temp); 00197 00198 XlongAddOne(temp, result); 00199 00200 return result; 00201 }
|
|
Overloading the addition operator for XLONGs.
Definition at line 191 of file xlong.cpp. 00192 { 00193 xlong result = operand1; 00194 xlong temp; 00195 00196 LongToXlong(operand2, temp); 00197 00198 XlongAddOne(temp, result); 00199 00200 return result; 00201 }
|
|
Overloading the addition operator for XLONGs.
Definition at line 161 of file xlong.cpp. 00162 { 00163 xlong result = operand1; 00164 00165 XlongAddOne(operand2, result); 00166 00167 return result; 00168 }
|
|
Overloading the negation operator for XLONGs.
Definition at line 345 of file xlong.cpp. 00346 { 00347 xlong temp; 00348 00349 XlongNegOne( temp = input ); 00350 return temp; 00351 }
|
|
Overloading the subtract operator for XLONGs.
Definition at line 285 of file xlong.cpp. 00286 { 00287 xlong result = operand1; 00288 xlong temp; 00289 00290 LongToXlong(operand2, temp); 00291 00292 XlongSubOne(temp, result); 00293 00294 return result; 00295 }
|
|
Overloading the subtract operator for XLONGs.
Definition at line 285 of file xlong.cpp. 00286 { 00287 xlong result = operand1; 00288 xlong temp; 00289 00290 LongToXlong(operand2, temp); 00291 00292 XlongSubOne(temp, result); 00293 00294 return result; 00295 }
|
|
Overloading the subtract operator for XLONGs.
Definition at line 256 of file xlong.cpp. 00257 { 00258 xlong result = operand1; 00259 00260 XlongSubOne(operand2, result); 00261 00262 return result; 00263 }
|
|
Overloading the division operator for XLONGs.
Definition at line 524 of file xlong.cpp. 00525 { 00526 xlong result = operand1; 00527 xlong temp; 00528 00529 LongToXlong(operand2, temp); 00530 00531 XDiv64One(temp, result); 00532 00533 return result; 00534 }
|
|
Overloading the division operator for XLONGs.
Definition at line 524 of file xlong.cpp. 00525 { 00526 xlong result = operand1; 00527 xlong temp; 00528 00529 LongToXlong(operand2, temp); 00530 00531 XDiv64One(temp, result); 00532 00533 return result; 00534 }
|
|
Overloading the division operator for XLONGs.
Definition at line 495 of file xlong.cpp. 00496 { 00497 xlong result = operand1; 00498 00499 XDiv64One(operand2, result); 00500 00501 return result; 00502 }
|
|
Overloading the postfix less-than operator for XLONGs.
Definition at line 1358 of file xlong.cpp. 01359 { 01360 xlong temp; 01361 01362 LongToXlong(second, temp); 01363 01364 return XlongCmpLT(first, temp); 01365 }
|
|
Overloading the postfix less-than operator for XLONGs.
Definition at line 1358 of file xlong.cpp. 01359 { 01360 xlong temp; 01361 01362 LongToXlong(second, temp); 01363 01364 return XlongCmpLT(first, temp); 01365 }
|
|
Overloading the postfix less-than operator for XLONGs.
Definition at line 1332 of file xlong.cpp. 01333 { 01334 return XlongCmpLT(first, second); 01335 }
|
|
Overloading the << operator to mean shift left for XLONGs.
Definition at line 654 of file xlong.cpp. 00655 { 00656 xlong result = operand; 00657 00658 XlongAsl64One(shift, result); 00659 00660 return result; 00661 }
|
|
Overloading the postfix less-than--or-equal operator for XLONGs.
Definition at line 1530 of file xlong.cpp. 01531 { 01532 xlong temp; 01533 01534 LongToXlong(second, temp); 01535 01536 return XlongCmpLE(first, temp); 01537 }
|
|
Overloading the postfix less-than--or-equal operator for XLONGs.
Definition at line 1530 of file xlong.cpp. 01531 { 01532 xlong temp; 01533 01534 LongToXlong(second, temp); 01535 01536 return XlongCmpLE(first, temp); 01537 }
|
|
Overloading the postfix less-than--or-equal operator for XLONGs.
Definition at line 1504 of file xlong.cpp. 01505 { 01506 return XlongCmpLE(first, second); 01507 }
|
|
Overloading the postfix equality operator for XLONGs.
Definition at line 1186 of file xlong.cpp. 01187 { 01188 xlong temp; 01189 01190 LongToXlong(second, temp); 01191 01192 return XlongCmpEQ(first, temp); 01193 }
|
|
Overloading the postfix equality operator for XLONGs.
Definition at line 1186 of file xlong.cpp. 01187 { 01188 xlong temp; 01189 01190 LongToXlong(second, temp); 01191 01192 return XlongCmpEQ(first, temp); 01193 }
|
|
Overloading the postfix equality operator for XLONGs.
Definition at line 1160 of file xlong.cpp. 01161 { 01162 return XlongCmpEQ(first, second); 01163 }
|
|
Overloading the postfix greater-than operator for XLONGs.
Definition at line 1444 of file xlong.cpp. 01445 { 01446 xlong temp; 01447 01448 LongToXlong(second, temp); 01449 01450 return XlongCmpGT(first, temp); 01451 }
|
|
Overloading the postfix greater-than operator for XLONGs.
Definition at line 1444 of file xlong.cpp. 01445 { 01446 xlong temp; 01447 01448 LongToXlong(second, temp); 01449 01450 return XlongCmpGT(first, temp); 01451 }
|
|
Overloading the postfix greater-than operator for XLONGs.
Definition at line 1418 of file xlong.cpp. 01419 { 01420 return XlongCmpGT(first, second); 01421 }
|
|
Overloading the postfix greater-than--or-equal operator for XLONGs.
Definition at line 1616 of file xlong.cpp. 01617 { 01618 xlong temp; 01619 01620 LongToXlong(second, temp); 01621 01622 return XlongCmpGE(first, temp); 01623 }
|
|
Overloading the postfix greater-than--or-equal operator for XLONGs.
Definition at line 1616 of file xlong.cpp. 01617 { 01618 xlong temp; 01619 01620 LongToXlong(second, temp); 01621 01622 return XlongCmpGE(first, temp); 01623 }
|
|
Overloading the postfix greater-than--or-equal operator for XLONGs.
Definition at line 1590 of file xlong.cpp. 01591 { 01592 return XlongCmpGE(first, second); 01593 }
|
|
Overloading the >> operator to mean shift right for XLONGs.
Definition at line 625 of file xlong.cpp. 00626 { 00627 xlong result = operand; 00628 00629 XlongAsr64One(shift, result); 00630 00631 return result; 00632 }
|
|
|
|
|