AGENT++  4.0.3
Macros | Functions
oidx_defs.h File Reference
#include <agent_pp/oidx_ptr.h>

Go to the source code of this file.

Macros

#define OidxPtrEQ(a, b)   ((*a) == (*b))
 
#define OidxPtrLE(a, b)   ((*a) <= (*b))
 
#define OidxPtrCMP(a, b)   ( ((*a) <= (*b))? (((*a) == (*b))? 0 : -1) : 1 )
 
#define OidxPtrHASH(x)   hash(x)
 
#define DEFAULT_INITIAL_CAPACITY   100
 
#define HASHTABLE_TOO_CROWDED(COUNT, SIZE)   ((SIZE) - ((SIZE) >> 3) <= (COUNT))
 

Functions

unsigned int hash (OidxPtr)
 

Macro Definition Documentation

#define DEFAULT_INITIAL_CAPACITY   100
#define HASHTABLE_TOO_CROWDED (   COUNT,
  SIZE 
)    ((SIZE) - ((SIZE) >> 3) <= (COUNT))
#define OidxPtrCMP (   a,
 
)    ( ((*a) <= (*b))? (((*a) == (*b))? 0 : -1) : 1 )
#define OidxPtrEQ (   a,
 
)    ((*a) == (*b))
#define OidxPtrHASH (   x)    hash(x)
#define OidxPtrLE (   a,
 
)    ((*a) <= (*b))

Function Documentation

unsigned int hash ( OidxPtr  )