VAT  3.0
Video Analysis Tool
GA_alloc.h
Go to the documentation of this file.
1 #ifndef GA_ALLOC
2 #define GA_ALLOC
3 /* ----------------------------------------------------------------------------
4  * R package for graph alignment
5  * ----------------------------------------------------------------------------
6  *
7  * Author: Joern P. Meier <mail@ionflux.org>
8  *
9  * The package can be used freely for non-commercial purposes. If you use this
10  * package, the appropriate paper to cite is J. Berg and M. Laessig,
11  * "Cross-species analysis of biological networks by Bayesian alignment",
12  * PNAS 103 (29), 10967-10972 (2006)
13  *
14  * This software is made available in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16  * or FITNESS FOR A PARTICULAR PURPOSE.
17  *
18  * This software contains code for solving linear assignment problems which was
19  * written by Roy Jonker, MagicLogic Optimization Inc.. Please note that this
20  * code is copyrighted, (c) 2003 MagicLogic Systems Inc., Canada and may be
21  * used for non-commercial purposes only. See
22  * http://www.magiclogic.com/assignment.html for the latest version of the LAP
23  * code and details on licensing.
24  *
25  * ----------------------------------------------------------------------------
26  * Memory alllocation.
27  * ----------------------------------------------------------------------------
28  */
29 
37 #include <stdlib.h>
38 
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43 
49 typedef char* (*GAAllocFunc)(size_t, int);
50 
56 typedef void (*GAFreeFunc)(char*);
57 
65 void GA_set_alloc_funcs(GAAllocFunc allocFunc, GAFreeFunc freeFunc);
66 
76 char* GA_alloc(size_t numElem, int eltSize);
77 
84 void GA_free(char* memLoc);
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 #endif
void GA_set_alloc_funcs(GAAllocFunc allocFunc, GAFreeFunc freeFunc)
Definition: GA_alloc.c:44
char *(* GAAllocFunc)(size_t, int)
Definition: GA_alloc.h:49
void(* GAFreeFunc)(char *)
Definition: GA_alloc.h:56
char * GA_alloc(size_t numElem, int eltSize)
Definition: GA_alloc.c:50
void GA_free(char *memLoc)
Definition: GA_alloc.c:55