mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
25f062528b
The file docs/indexing.dox tries to provide design information for the refactoring. The primary change is to replace all walking of linked lists with the use of the NCindex data structure. Ncindex is a combination of a hash table (for name-based lookup) and a vector (for walking the elements in the index). Additionally, global vectors are added to NC_HDF5_FILE_INFO_T to support direct mapping of an e.g. dimid to the NC_DIM_INFO_T object. These global vectors exist for dimensions, types, and groups because they have globally unique id numbers. WARNING: 1. since libsrc4 and libsrchdf4 share code, there are also changes in libsrchdf4. 2. Any outstanding pull requests that change libsrc4 or libhdf4 are likely to cause conflicts with this code. 3. The original reason for doing this was for performance improvements, but as noted elsewhere, this may not be significant because the meta-data read performance apparently is being dominated by the hdf5 library because we do bulk meta-data reading rather than lazy reading.
55 lines
1.9 KiB
C
55 lines
1.9 KiB
C
/*********************************************************************
|
|
* Copyright 1993 - 2005, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
* $Header: /upc/share/CVS/netcdf-3/nctest/tests.h,v 1.8 2006/10/31 16:23:47 ed Exp $
|
|
*********************************************************************/
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern int current_format;
|
|
|
|
extern int test_nccreate(const char*);
|
|
extern int test_ncopen(const char*);
|
|
extern int test_ncredef(const char*);
|
|
extern int test_ncendef(const char*);
|
|
extern int test_ncclose(const char*);
|
|
extern int test_ncinquire(const char*);
|
|
extern int test_ncsync(const char*);
|
|
extern int test_ncabort(const char*);
|
|
extern int test_ncdimdef(const char*);
|
|
extern int test_ncdimid(const char*);
|
|
extern int test_ncdiminq(const char*);
|
|
extern int test_ncdimrename(const char*);
|
|
extern int test_ncvardef(const char*);
|
|
extern int test_ncvarid(const char*);
|
|
extern int test_ncvarinq(const char*);
|
|
extern int test_ncvarput1(const char*);
|
|
extern int test_ncvarget1(const char*);
|
|
extern int test_ncvarput(const char*);
|
|
extern int test_ncvarget(const char*);
|
|
extern int test_ncvarputg(const char*);
|
|
extern int test_ncvargetg(const char*);
|
|
extern int test_ncrecinq(const char*);
|
|
extern int test_ncrecput(const char*);
|
|
extern int test_ncrecget(const char*);
|
|
extern int test_ncvarrename(const char*);
|
|
extern int test_ncattput(const char*);
|
|
extern int test_ncattinq(const char*);
|
|
extern int test_ncattget(const char*);
|
|
extern int test_ncattcopy(const char*, const char*);
|
|
extern int test_ncattname(const char*);
|
|
extern int test_ncattrename(const char*);
|
|
extern int test_ncattdel(const char*);
|
|
extern int test_nctypelen(void);
|
|
extern int test_varputget(int);
|
|
extern int test_varputgetg(int);
|
|
extern int test_slabs(int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|