#include <sint.h>
Public Methods | |
void | chop () |
sint (const char *) | |
sint (int) | |
sint (real) | |
sint (const sint &) | |
~sint () | |
void | operator= (const sint &) |
sint | operator+ (const sint &) |
bool | LessThan (const sint &rhs) const |
void | print (ostream &s=cerr) const |
sint (const char *) | |
sint (int) | |
sint (const sint &) | |
void | operator= (const sint &) |
sint | operator+ (const sint &) |
void | print () |
~sint () | |
sint () | |
sint (int) | |
sint (const sint &) | |
~sint () | |
void | operator+= (const sint &) |
void | operator *= (const sint &) |
sint& | operator= (const sint &) |
Protected Types | |
enum | { negative, positive } |
Protected Methods | |
sint (char *d, int n) | |
bool | is_negative () const |
bool | is_positive () const |
bool | equal (const sint &rhs) const |
int | NumDigits () const |
int | GetDigit (int k) const |
int | set_digit (int k) const |
sint (char *d, int n) | |
Protected Attributes | |
enum sint:: { ... } | sign |
char* | digits |
int | ndigits |
friend | digit_stream |
Private Methods | |
void | grow (int size) |
Private Attributes | |
int | capacity |
int | numDigits |
int* | digits |
Static Private Attributes | |
const int | INTDIGITS |
Friends | |
ostream& | operator<< (ostream &, const sint &) |
ostream& | operator<< (ostream &, const sint &) |
int | operator== (const sint &, const sint &) |
int | operator< (const sint &, const sint &) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 17 of file Version_1/sint.h. |
|
|
|
|
|
|
|
Definition at line 31 of file Version_1/sint.h. |
|
|
|
|
|
|
|
|
|
|
|
Referenced by operator<(). |
|
Referenced by operator<<(). |
|
Referenced by main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 89 of file Version_2/sint.h. |
|
Definition at line 91 of file Version_2/sint.h. |
|
Definition at line 21 of file Version_1/sint.h. |
|
Definition at line 93 of file Version_2/sint.h. |
|
Definition at line 14 of file Version_1/sint.h. |
|
Definition at line 15 of file Version_1/sint.h. |
|
Definition at line 92 of file Version_2/sint.h. |
|
|