Classes | Defines | Typedefs | Functions

tab.h File Reference

#include "maxheap.h"
#include <malloc.h>
#include <stdlib.h>
#include <wtypes.h>
#include "utilexp.h"
#include "assert1.h"

Go to the source code of this file.

Classes

struct   TabHdr
class   TabHd< T >
class   Tab< T >
  Generic container class. More...

Defines

#define  NoExport
#define  __tab_name2(a, b)   a##b
#define  MakeTab(TYPE)   typedef Tab<TYPE> __tab_name2(TYPE, Tab);

Typedefs

typedef int  CNT
typedef const void *  elem2

Functions

UtilExport int  TBMakeSize (TabHdr **pth, int num, int elsize)
UtilExport int  TBInsertAt (TabHdr **pth, int at, int num, void *el, int elsize, int extra)
UtilExport int  TBCopy (TabHdr **pth, int at, int num, void *el, int elsize)
UtilExport int  TBDelete (TabHdr **pth, int starting, int num, int elsize)
UtilExport void  TBSetCount (TabHdr **pth, int n, int elsize, BOOL resize)
UtilExport void  zfree (void **p)
typedef  int (__cdecl *CompareFnc)(const void *elem1
UtilExport void  TabStartRecording ()
UtilExport void  TabStopRecording ()
UtilExport void  TabPrintAllocs ()
UtilExport void  TabAssertAllocNum (int i)

Define Documentation

#define NoExport

Definition at line 69 of file tab.h.

#define __tab_name2 (   a,
 
)    a##b

Definition at line 327 of file tab.h.

#define MakeTab (   TYPE )    typedef Tab<TYPE> __tab_name2(TYPE, Tab);

Definition at line 331 of file tab.h.


Typedef Documentation

typedef int CNT

Definition at line 50 of file tab.h.

typedef const void* elem2

Definition at line 89 of file tab.h.


Function Documentation

UtilExport int TBMakeSize ( TabHdr **  pth,
int  num,
int  elsize 
)
UtilExport int TBInsertAt ( TabHdr **  pth,
int  at,
int  num,
void *  el,
int  elsize,
int  extra 
)
UtilExport int TBCopy ( TabHdr **  pth,
int  at,
int  num,
void *  el,
int  elsize 
)
UtilExport int TBDelete ( TabHdr **  pth,
int  starting,
int  num,
int  elsize 
)
UtilExport void TBSetCount ( TabHdr **  pth,
int  n,
int  elsize,
BOOL  resize 
)
UtilExport void zfree ( void **  p )
typedef int ( __cdecl *  CompareFnc ) const
UtilExport void TabStartRecording ( )
UtilExport void TabStopRecording ( )
UtilExport void TabPrintAllocs ( )
UtilExport void TabAssertAllocNum ( int  i )