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
;
29
}
generic_pair_t
;
30
31
//******************************************************************************
32
// Constructor
33
//******************************************************************************
34
35
generic_pair_t
*
36
generic_pair_t_new
(
void
*
first
,
void
*
second
,
mem_alloc
m_alloc);
37
38
39
void
40
generic_pair_t_tostr
(
generic_pair_t
* gen_pair,
41
val_tostr
first_tostr,
char
firststr[],
42
val_tostr
second_tostr,
char
secondstr[],
char
str[]);
43
44
#endif
/* __GENERIC_PAIR_H__ */
mem_alloc
void *(* mem_alloc)(size_t size)
Definition:
mem_manager.h:17
generic_pair_t_tostr
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
val_tostr
void(* val_tostr)(void *val, char str[])
Definition:
generic_val.h:22
generic_pair_t_new
generic_pair_t * generic_pair_t_new(void *first, void *second, mem_alloc m_alloc)
Definition:
generic_pair.c:22
generic_pair_s
Definition:
generic_pair.h:26
mem_manager.h
generic_pair_s::second
void * second
Definition:
generic_pair.h:28
generic_val.h
generic_pair_s::first
void * first
Definition:
generic_pair.h:27
generic_pair_t
struct generic_pair_s generic_pair_t
src
lib
prof-lean
generic_pair.h
Generated by
1.8.13