diff options
author | rideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-03 06:28:47 +0000 |
---|---|---|
committer | rideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-03 06:28:47 +0000 |
commit | c23ed018c1916d96720e5c2e7c21844dc1958635 (patch) | |
tree | 04d13d1df1dacec558ac7669bc55f0546d51e450 /src/include/util_Table.h | |
parent | ca019314ea14ab5aedfe881f1e91a71eeeb9486b (diff) |
[[from Jonathan Thornburg]]
src/util/Table.c
src/include/util_Table.h
* add new functions (cf my E-mail of 30 Mar 2002)
Util_TableClone()
Util_TableItClone()
* add new functions (cf Erik Schnetter's E-mails of 5 Feb 2002)
Util_Table{Set,Get}Generic()
Util_Table{Set,Get}GenericArray()
* add tests for new functions
* fix a memory leak in Util_TableDestroy()
* fixed some assert( variable = value ) bugs (yikes!!)
* refactor some code to better modularize the implementation
* add some more const qualifiers to local vars
* reformat code to match flesh standard indentation and { } conventions
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2683 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/util_Table.h')
-rw-r--r-- | src/include/util_Table.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/util_Table.h b/src/include/util_Table.h index d2303d76..03c5d02e 100644 --- a/src/include/util_Table.h +++ b/src/include/util_Table.h @@ -117,6 +117,7 @@ extern "C" /* create/destroy */ int Util_TableCreate(int flags); +int Util_TableClone(int handle); int Util_TableDestroy(int handle); /* query */ @@ -142,6 +143,20 @@ int Util_TableGetString(int handle, int buffer_length, char buffer[], const char *key); +/* set/get generic types described by CCTK_VARIABLE_* type codes */ +int Util_TableSetGeneric(int handle, + int type_code, const void *value_ptr, + const char *key); +int Util_TableSetGenericArray(int handle, + int type_code, int N_elements, const void *array, + const char *key); +int Util_TableGetGeneric(int handle, + int type_code, void *value_ptr, + const char *key); +int Util_TableGetGenericArray(int handle, + int type_code, int N_elements, void *array, + const char *key); + /**************************************/ /* @@ -398,6 +413,7 @@ int Util_TableGetComplex32Array(int handle, /* create/destroy */ int Util_TableItCreate(int handle); +int Util_TableItClone(int ihandle); int Util_TableItDestroy(int ihandle); /* test for "null-pointer" state */ |