ARB
Macros | Typedefs | Enumerations | Functions
gb_memory.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MEMORY_TEST   0
 
#define GB_RESOLVE(typ, struct_add, member_name)
 
#define GB_SETREL(struct_add, member_name, address)
 

Typedefs

typedef long GB_REL_ADD
 
typedef long GB_REL_STRING
 
typedef long GB_REL_GBDATA
 
typedef long GB_REL_CONTAINER
 
typedef long GB_REL_HLS
 
typedef long GB_REL_IFES
 
typedef long GB_REL_IFS
 
typedef long GB_REL_PIFES
 

Enumerations

enum  ARB_MEMORY_INDEX {
  GBM_CB_INDEX = -1, GBM_HASH_INDEX = -2, GBM_HEADER_INDEX = -3, GBM_UNDO = -4,
  GBM_DICT_INDEX = -5, GBM_USER_INDEX = -6
}
 

Functions

void * gbmGetMemImpl (size_t size, long index)
 
void gbmFreeMemImpl (void *data, size_t size, long index)
 
void * gbm_get_mem (size_t size, long index)
 
void gbm_free_mem (void *block, size_t size, long index)
 

Macro Definition Documentation

#define MEMORY_TEST   0

Definition at line 20 of file gb_memory.h.

#define GB_RESOLVE (   typ,
  struct_add,
  member_name 
)
Value:
((typ)(((struct_add)->member_name) \
? (typ) (((char*)(struct_add))+((struct_add)->member_name)) \
: NULp))
#define NULp
Definition: cxxforward.h:116

Definition at line 77 of file gb_memory.h.

Referenced by GB_DATA_LIST_HEADER(), GB_FATHER(), GB_HEADER_LIST_GBD(), GB_IF_ENTRIES_GBD(), GB_IF_ENTRIES_NEXT(), GB_INDEX_FILES_ENTRIES(), GB_INDEX_FILES_NEXT(), GBCONTAINER_IFS(), and gb_extern_data::get_data().

#define GB_SETREL (   struct_add,
  member_name,
  address 
)
Value:
do { \
char *pntr = (char *)(address); \
if (pntr) { \
(struct_add)->member_name = (char*)(pntr)-(char*)(struct_add); \
} \
else { \
(struct_add)->member_name = 0; \
} \
} while (0)
GB_write_int const char GB_write_autoconv_string WRITE_SKELETON(write_pointer, GBDATA *,"%p", GB_write_pointer) char *AW_awa if)(!gb_var) return strdup("")
Definition: AW_awar.cxx:163

Definition at line 82 of file gb_memory.h.

Referenced by gb_extern_data::set_data(), SET_GB_DATA_LIST_HEADER(), SET_GB_FATHER(), SET_GB_HEADER_LIST_GBD(), SET_GB_IF_ENTRIES_GBD(), SET_GB_IF_ENTRIES_NEXT(), SET_GB_INDEX_FILES_ENTRIES(), SET_GB_INDEX_FILES_NEXT(), and SET_GBCONTAINER_IFS().

Typedef Documentation

typedef long GB_REL_ADD

Definition at line 37 of file gb_memory.h.

Definition at line 55 of file gb_memory.h.

Definition at line 56 of file gb_memory.h.

Definition at line 57 of file gb_memory.h.

typedef long GB_REL_HLS

Definition at line 58 of file gb_memory.h.

typedef long GB_REL_IFES

Definition at line 59 of file gb_memory.h.

typedef long GB_REL_IFS

Definition at line 60 of file gb_memory.h.

typedef long GB_REL_PIFES

Definition at line 61 of file gb_memory.h.

Enumeration Type Documentation

Enumerator
GBM_CB_INDEX 
GBM_HASH_INDEX 
GBM_HEADER_INDEX 
GBM_UNDO 
GBM_DICT_INDEX 
GBM_USER_INDEX 

Definition at line 99 of file gb_memory.h.

Function Documentation

void* gbmGetMemImpl ( size_t  size,
long  index 
)
void gbmFreeMemImpl ( void *  data,
size_t  size,
long  index 
)
void* gbm_get_mem ( size_t  size,
long  index 
)
inline
void gbm_free_mem ( void *  block,
size_t  size,
long  index 
)
inline