ABA_ABACUSROOT Class Reference

base class of all other classes of ABACUS More...

#include <abacusroot.h>

Inheritance diagram for ABA_ABACUSROOT:

ABA_ACTIVE< BaseType, CoType > ABA_ARRAY< Type > ABA_BHEAP< Type, Key > ABA_BPRIOQUEUE< Type, Key > ABA_BRANCHRULE ABA_BSTACK< Type > ABA_BUFFER< Type > ABA_CONCLASS ABA_CONVAR ABA_CSENSE ABA_CUTBUFFER< BaseType, CoType > ABA_DICTIONARY< KeyType, ItemType > ABA_DLIST< Type > ABA_DLISTITEM< Type > ABA_FIXCAND ABA_FSVARSTAT ABA_GLOBAL ABA_HASH< KeyType, ItemType > ABA_HASHITEM< KeyType, ItemType > ABA_HISTORY ABA_ID ABA_IDMAP< Type > ABA_INFEASCON ABA_LIST< Type > ABA_LISTITEM< Type > ABA_LP ABA_LPMASTER ABA_LPSOLUTION< BaseType, CoType > ABA_LPVARSTAT ABA_MTSERVER ABA_OPENSUB ABA_OPTSENSE ABA_OSTREAM ABA_PARMASTER ABA_POOL< BaseType, CoType > ABA_POOLSLOT< BaseType, CoType > ABA_POOLSLOTREF< BaseType, CoType > ABA_RING< Type > ABA_SEPARATOR< BaseType, CoType > ABA_SET ABA_SLACKSTAT ABA_SORTER< ItemType, KeyType > ABA_SPARVEC ABA_STRING ABA_SUB ABA_TAILOFF ABA_TIMER ABA_VARTYPE List of all members.

Public Types

enum  EXITCODES { Ok, Fatal }
 This enumeration defines the codes used be the function exit(). More...

Public Member Functions

virtual ~ABA_ABACUSROOT ()
virtual void exit (enum EXITCODES code) const
 terminates the program and returns code to the environment from which the program was called.
const char * onOff (bool value)
 converts a boolean variable to the strings "on" and "off".
double fracPart (double x) const

Detailed Description

base class of all other classes of ABACUS

Definition at line 81 of file abacusroot.h.


Member Enumeration Documentation

enum ABA_ABACUSROOT::EXITCODES

This enumeration defines the codes used be the function exit().

Parameters:
Ok The program terminates without error.
Fatal A severe error occurred leading to an immediate termination of the program.
Enumerator:
Ok 
Fatal 

Definition at line 95 of file abacusroot.h.


Constructor & Destructor Documentation

virtual ABA_ABACUSROOT::~ABA_ABACUSROOT (  )  [virtual]

The destructor is only implemented since it should be virtual function.


Member Function Documentation

virtual void ABA_ABACUSROOT::exit ( enum EXITCODES  code  )  const [virtual]

terminates the program and returns code to the environment from which the program was called.

We overload the function exit() that in a debugger a break point can be easily set within this function in order to investigate the error. We also observed that for some reason it can be impossible to set a break point within a template. Here this function exit() was quite helpful during the debugging process.
Exception handling could substitute many calls to the function exit(). However, in version 2.6.3 of the GNU / compiler only a prototypical implementation of exception handling is available. As soon as a the GNU compiler provides a stable implementation of exception handling we will use this technique in future releases of this software.
Parameters:
code The exit code given to the environment.

const char* ABA_ABACUSROOT::onOff ( bool  value  ) 

converts a boolean variable to the strings "on" and "off".

Returns:
"on" if value is true

"off" otherwise

Parameters:
value The boolean variable being converted.

double ABA_ABACUSROOT::fracPart ( double  x  )  const

Returns:
The absolute value of the fractional part of the value x. E.g., it holds fracPart(2.33) == 0.33 and fracPart(-1.77) == 0.77.
Parameters:
x The value of which the fractional part is computed.


The documentation for this class was generated from the following file:
Generated on Tue Aug 14 18:09:56 2007 for ABACUS by  doxygen 1.5.1