summaryrefslogtreecommitdiff
path: root/src/include/util_Table.h
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-08-25 14:18:10 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-08-25 14:18:10 +0000
commit54304e71740f558d3d8258a96bc2f1a7e9634cc9 (patch)
tree13e928c5210cb77435cc2e28d857e4d3c1c69834 /src/include/util_Table.h
parent96615e830e211991fb1fac2704fc9d97fbc26738 (diff)
Add Cactus variable type CCTK_POINTER_TO_CONST
Complete the implementation of the Cactus variable type CCTK_POINTER_TO_CONST. Define a constant CCTK_VARIABLE_POINTER_TO_CONST. Handle this variable when asking for its name and its size. Allow values of this type in tables. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4113 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/util_Table.h')
-rw-r--r--src/include/util_Table.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/util_Table.h b/src/include/util_Table.h
index db1d0102..b21a44cb 100644
--- a/src/include/util_Table.h
+++ b/src/include/util_Table.h
@@ -178,6 +178,9 @@ int Util_TableGetGenericArray(int handle,
/* pointers */
int Util_TableSetPointer(int handle, CCTK_POINTER value, const char *key);
+int Util_TableSetPointerToConst(int handle,
+ CCTK_POINTER_TO_CONST value,
+ const char *key);
int Util_TableSetFPointer(int handle, CCTK_FPOINTER value, const char *key);
/*
* ... the following function (an alias for the previous one) is for
@@ -234,6 +237,10 @@ int Util_TableSetComplex32(int handle, CCTK_COMPLEX32 value, const char *key);
int Util_TableSetPointerArray(int handle,
int N_elements, const CCTK_POINTER array[],
const char *key);
+int Util_TableSetPointerToConstArray(int handle,
+ int N_elements,
+ const CCTK_POINTER_TO_CONST array[],
+ const char *key);
int Util_TableSetFPointerArray(int handle,
int N_elements, const CCTK_FPOINTER array[],
const char *key);
@@ -327,6 +334,10 @@ int Util_TableSetComplex32Array(int handle,
/* pointers */
int Util_TableGetPointer(int handle, CCTK_POINTER *value, const char *key);
+int Util_TableGetPointerToConst(int handle,
+ CCTK_POINTER_TO_CONST *value,
+ const char *key);
+
int Util_TableGetFPointer(int handle, CCTK_FPOINTER *value, const char *key);
/*
* ... the following function (an alias for the previous one) is for
@@ -383,6 +394,11 @@ int Util_TableGetComplex32(int handle, CCTK_COMPLEX32 *value, const char *key);
int Util_TableGetPointerArray(int handle,
int N_elements, CCTK_POINTER array[],
const char *key);
+int Util_TableGetPointerToConstArray(int handle,
+ int N_elements,
+ CCTK_POINTER_TO_CONST array[],
+ const char *key);
+
int Util_TableGetFPointerArray(int handle,
int N_elements, CCTK_FPOINTER array[],
const char *key);