HPCToolkit
generic_pair.h
Go to the documentation of this file.
1 /*
2  * generic_pair.h
3  *
4  * Author: dxnguyen
5  */
6 
7 #ifndef __GENERIC_PAIR_H__
8 #define __GENERIC_PAIR_H__
9 
10 //******************************************************************************
11 // local include files
12 //******************************************************************************
13 #include "mem_manager.h"
14 #include "generic_val.h"
15 
16 //******************************************************************************
17 // macro
18 //******************************************************************************
19 
20 #define MAX_GENERICPAIR_STR 65536
21 
22 //******************************************************************************
23 // type
24 //******************************************************************************
25 
26 typedef struct generic_pair_s {
27  void* first;
28  void* second;
30 
31 //******************************************************************************
32 // Constructor
33 //******************************************************************************
34 
36 generic_pair_t_new(void* first, void* second, mem_alloc m_alloc);
37 
38 
39 void
41  val_tostr first_tostr, char firststr[],
42  val_tostr second_tostr, char secondstr[], char str[]);
43 
44 #endif /* __GENERIC_PAIR_H__ */
void *(* mem_alloc)(size_t size)
Definition: mem_manager.h:17
void generic_pair_t_tostr(generic_pair_t *gen_pair, val_tostr first_tostr, char firststr[], val_tostr second_tostr, char secondstr[], char str[])
Definition: generic_pair.c:31
void(* val_tostr)(void *val, char str[])
Definition: generic_val.h:22
generic_pair_t * generic_pair_t_new(void *first, void *second, mem_alloc m_alloc)
Definition: generic_pair.c:22
struct generic_pair_s generic_pair_t