globals.cpp File Reference

Global constant definitions and some memory management code. More...

#include <limits.h>
#include <stdlib.h>
#include "globals.h"

Functions

void * DefaultValueAsVoidPtr (TBaseType _type) throw ()
void * GoblinRealloc (void *p, size_t size) throw (std::bad_alloc)
THandle NewObjectHandle () throw ()

Variables

const TNode NoNode = 50000
const TArc NoArc = 2000000000
const TCap InfCap = 1000000000
const TFloat InfFloat = 1.0e+50
const THandle NoHandle = 2000000000
const TIndex NoIndex = 2000000000
const TDim NoCoord = UCHAR_MAX
const TVar NoVar = 2000000000
const TRestr NoRestr = 2000000000
size_t goblinHeapSize = 0
size_t goblinMaxSize = 0
size_t goblinNFragments = 0
size_t goblinNAllocs = 0
size_t goblinNObjects = 0


Detailed Description

Global constant definitions and some memory management code.


Function Documentation

THandle NewObjectHandle  )  throw ()
 


Variable Documentation

const TCap InfCap = 1000000000
 

const TFloat InfFloat = 1.0e+50
 

const TArc NoArc = 2000000000
 

const TDim NoCoord = UCHAR_MAX
 

const THandle NoHandle = 2000000000
 

const TIndex NoIndex = 2000000000
 

const TNode NoNode = 50000
 

const TRestr NoRestr = 2000000000
 

const TVar NoVar = 2000000000