|
| 1 | +// typesUmpire.h |
| 2 | +// This file is generated by Shroud 0.12.2. Do not edit. |
| 3 | +// Copyright (c) 2016-25, Lawrence Livermore National Security, LLC and Umpire |
| 4 | +// project contributors. See the COPYRIGHT file for details. |
| 5 | +// |
| 6 | +// SPDX-License-Identifier: (MIT) |
| 7 | +// For C users and C++ implementation |
| 8 | + |
| 9 | +#ifndef TYPESUMPIRE_H |
| 10 | +#define TYPESUMPIRE_H |
| 11 | + |
| 12 | +#include <stddef.h> |
| 13 | + |
| 14 | + |
| 15 | +#ifdef __cplusplus |
| 16 | +extern "C" { |
| 17 | +#endif |
| 18 | + |
| 19 | +// helper capsule_data_helper |
| 20 | +struct s_umpire_SHROUD_capsule_data { |
| 21 | + void *addr; /* address of C++ memory */ |
| 22 | + int idtor; /* index of destructor */ |
| 23 | +}; |
| 24 | +typedef struct s_umpire_SHROUD_capsule_data umpire_SHROUD_capsule_data; |
| 25 | + |
| 26 | +/* helper ShroudTypeDefines */ |
| 27 | +/* Shroud type defines */ |
| 28 | +#define SH_TYPE_SIGNED_CHAR 1 |
| 29 | +#define SH_TYPE_SHORT 2 |
| 30 | +#define SH_TYPE_INT 3 |
| 31 | +#define SH_TYPE_LONG 4 |
| 32 | +#define SH_TYPE_LONG_LONG 5 |
| 33 | +#define SH_TYPE_SIZE_T 6 |
| 34 | + |
| 35 | +#define SH_TYPE_UNSIGNED_SHORT SH_TYPE_SHORT + 100 |
| 36 | +#define SH_TYPE_UNSIGNED_INT SH_TYPE_INT + 100 |
| 37 | +#define SH_TYPE_UNSIGNED_LONG SH_TYPE_LONG + 100 |
| 38 | +#define SH_TYPE_UNSIGNED_LONG_LONG SH_TYPE_LONG_LONG + 100 |
| 39 | + |
| 40 | +#define SH_TYPE_INT8_T 7 |
| 41 | +#define SH_TYPE_INT16_T 8 |
| 42 | +#define SH_TYPE_INT32_T 9 |
| 43 | +#define SH_TYPE_INT64_T 10 |
| 44 | + |
| 45 | +#define SH_TYPE_UINT8_T SH_TYPE_INT8_T + 100 |
| 46 | +#define SH_TYPE_UINT16_T SH_TYPE_INT16_T + 100 |
| 47 | +#define SH_TYPE_UINT32_T SH_TYPE_INT32_T + 100 |
| 48 | +#define SH_TYPE_UINT64_T SH_TYPE_INT64_T + 100 |
| 49 | + |
| 50 | +/* least8 least16 least32 least64 */ |
| 51 | +/* fast8 fast16 fast32 fast64 */ |
| 52 | +/* intmax_t intptr_t ptrdiff_t */ |
| 53 | + |
| 54 | +#define SH_TYPE_FLOAT 22 |
| 55 | +#define SH_TYPE_DOUBLE 23 |
| 56 | +#define SH_TYPE_LONG_DOUBLE 24 |
| 57 | +#define SH_TYPE_FLOAT_COMPLEX 25 |
| 58 | +#define SH_TYPE_DOUBLE_COMPLEX 26 |
| 59 | +#define SH_TYPE_LONG_DOUBLE_COMPLEX 27 |
| 60 | + |
| 61 | +#define SH_TYPE_BOOL 28 |
| 62 | +#define SH_TYPE_CHAR 29 |
| 63 | +#define SH_TYPE_CPTR 30 |
| 64 | +#define SH_TYPE_STRUCT 31 |
| 65 | +#define SH_TYPE_OTHER 32 |
| 66 | + |
| 67 | +// helper array_context |
| 68 | +struct s_umpire_SHROUD_array { |
| 69 | + umpire_SHROUD_capsule_data cxx; /* address of C++ memory */ |
| 70 | + union { |
| 71 | + const void * base; |
| 72 | + const char * ccharp; |
| 73 | + } addr; |
| 74 | + int type; /* type of element */ |
| 75 | + size_t elem_len; /* bytes-per-item or character len in c++ */ |
| 76 | + size_t size; /* size of data in c++ */ |
| 77 | + int rank; /* number of dimensions, 0=scalar */ |
| 78 | + long shape[7]; |
| 79 | +}; |
| 80 | +typedef struct s_umpire_SHROUD_array umpire_SHROUD_array; |
| 81 | + |
| 82 | +// helper capsule_umpire_allocator |
| 83 | +struct s_umpire_allocator { |
| 84 | + void *addr; /* address of C++ memory */ |
| 85 | + int idtor; /* index of destructor */ |
| 86 | +}; |
| 87 | +typedef struct s_umpire_allocator umpire_allocator; |
| 88 | + |
| 89 | +// helper capsule_umpire_resourcemanager |
| 90 | +struct s_umpire_resourcemanager { |
| 91 | + void *addr; /* address of C++ memory */ |
| 92 | + int idtor; /* index of destructor */ |
| 93 | +}; |
| 94 | +typedef struct s_umpire_resourcemanager umpire_resourcemanager; |
| 95 | + |
| 96 | +// helper capsule_umpire_strategy_alignedallocator |
| 97 | +struct s_umpire_strategy_alignedallocator { |
| 98 | + void *addr; /* address of C++ memory */ |
| 99 | + int idtor; /* index of destructor */ |
| 100 | +}; |
| 101 | +typedef struct s_umpire_strategy_alignedallocator umpire_strategy_alignedallocator; |
| 102 | + |
| 103 | +// helper capsule_umpire_strategy_allocationadvisor |
| 104 | +struct s_umpire_strategy_allocationadvisor { |
| 105 | + void *addr; /* address of C++ memory */ |
| 106 | + int idtor; /* index of destructor */ |
| 107 | +}; |
| 108 | +typedef struct s_umpire_strategy_allocationadvisor umpire_strategy_allocationadvisor; |
| 109 | + |
| 110 | +// helper capsule_umpire_strategy_allocationprefetcher |
| 111 | +struct s_umpire_strategy_allocationprefetcher { |
| 112 | + void *addr; /* address of C++ memory */ |
| 113 | + int idtor; /* index of destructor */ |
| 114 | +}; |
| 115 | +typedef struct s_umpire_strategy_allocationprefetcher umpire_strategy_allocationprefetcher; |
| 116 | + |
| 117 | +// helper capsule_umpire_strategy_dynamicpoollist |
| 118 | +struct s_umpire_strategy_dynamicpoollist { |
| 119 | + void *addr; /* address of C++ memory */ |
| 120 | + int idtor; /* index of destructor */ |
| 121 | +}; |
| 122 | +typedef struct s_umpire_strategy_dynamicpoollist umpire_strategy_dynamicpoollist; |
| 123 | + |
| 124 | +// helper capsule_umpire_strategy_fixedpool |
| 125 | +struct s_umpire_strategy_fixedpool { |
| 126 | + void *addr; /* address of C++ memory */ |
| 127 | + int idtor; /* index of destructor */ |
| 128 | +}; |
| 129 | +typedef struct s_umpire_strategy_fixedpool umpire_strategy_fixedpool; |
| 130 | + |
| 131 | +// helper capsule_umpire_strategy_namedallocationstrategy |
| 132 | +struct s_umpire_strategy_namedallocationstrategy { |
| 133 | + void *addr; /* address of C++ memory */ |
| 134 | + int idtor; /* index of destructor */ |
| 135 | +}; |
| 136 | +typedef struct s_umpire_strategy_namedallocationstrategy umpire_strategy_namedallocationstrategy; |
| 137 | + |
| 138 | +// helper capsule_umpire_strategy_quickpool |
| 139 | +struct s_umpire_strategy_quickpool { |
| 140 | + void *addr; /* address of C++ memory */ |
| 141 | + int idtor; /* index of destructor */ |
| 142 | +}; |
| 143 | +typedef struct s_umpire_strategy_quickpool umpire_strategy_quickpool; |
| 144 | + |
| 145 | +// helper capsule_umpire_strategy_threadsafeallocator |
| 146 | +struct s_umpire_strategy_threadsafeallocator { |
| 147 | + void *addr; /* address of C++ memory */ |
| 148 | + int idtor; /* index of destructor */ |
| 149 | +}; |
| 150 | +typedef struct s_umpire_strategy_threadsafeallocator umpire_strategy_threadsafeallocator; |
| 151 | + |
| 152 | +void umpire_SHROUD_memory_destructor(umpire_SHROUD_capsule_data *cap); |
| 153 | + |
| 154 | +#ifdef __cplusplus |
| 155 | +} |
| 156 | +#endif |
| 157 | + |
| 158 | +#endif // TYPESUMPIRE_H |
0 commit comments