CoCoALib-0.9905 date: 23 May 2007


CoCoA::MachineInteger Class Reference

#include <MachineInteger.H>

Collaboration diagram for CoCoA::MachineInteger:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MachineInteger (signed char n)
 MachineInteger (unsigned char n)
 MachineInteger (short n)
 MachineInteger (unsigned short n)
 MachineInteger (int n)
 MachineInteger (unsigned int n)
 MachineInteger (long n)
 MachineInteger (unsigned long n)

Private Attributes

unsigned long myValue
bool IamNegative

Friends

bool IsNegative (const MachineInteger &n)
unsigned long AsUnsignedLong (const MachineInteger &n)
long AsSignedLong (const MachineInteger &n)
unsigned long abs (const MachineInteger &n)

Detailed Description

Definition at line 34 of file MachineInteger.H.


Constructor & Destructor Documentation

CoCoA::MachineInteger::MachineInteger signed char  n  )  [inline]
 

Definition at line 37 of file MachineInteger.H.

CoCoA::MachineInteger::MachineInteger unsigned char  n  )  [inline]
 

Definition at line 38 of file MachineInteger.H.

CoCoA::MachineInteger::MachineInteger short  n  )  [inline]
 

Definition at line 39 of file MachineInteger.H.

CoCoA::MachineInteger::MachineInteger unsigned short  n  )  [inline]
 

Definition at line 40 of file MachineInteger.H.

CoCoA::MachineInteger::MachineInteger int  n  )  [inline]
 

Definition at line 41 of file MachineInteger.H.

CoCoA::MachineInteger::MachineInteger unsigned int  n  )  [inline]
 

Definition at line 42 of file MachineInteger.H.

CoCoA::MachineInteger::MachineInteger long  n  )  [inline]
 

Definition at line 43 of file MachineInteger.H.

CoCoA::MachineInteger::MachineInteger unsigned long  n  )  [inline]
 

Definition at line 44 of file MachineInteger.H.


Friends And Related Function Documentation

bool IsNegative const MachineInteger n  )  [friend]
 

Definition at line 54 of file MachineInteger.H.

unsigned long AsUnsignedLong const MachineInteger n  )  [friend]
 

Definition at line 57 of file MachineInteger.H.

long AsSignedLong const MachineInteger n  )  [friend]
 

Definition at line 63 of file MachineInteger.H.

unsigned long abs const MachineInteger n  )  [friend]
 

Definition at line 69 of file MachineInteger.H.


Member Data Documentation

unsigned long CoCoA::MachineInteger::myValue [private]
 

Definition at line 50 of file MachineInteger.H.

Referenced by CoCoA::abs(), CoCoA::AsSignedLong(), and CoCoA::AsUnsignedLong().

bool CoCoA::MachineInteger::IamNegative [private]
 

Definition at line 51 of file MachineInteger.H.

Referenced by CoCoA::abs(), CoCoA::AsSignedLong(), CoCoA::AsUnsignedLong(), and CoCoA::IsNegative().


The documentation for this class was generated from the following file:
Generated on Wed May 23 13:44:28 2007 for CoCoALib by  doxygen 1.4.6