mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +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.
34 lines
1.0 KiB
C
34 lines
1.0 KiB
C
/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
|
|
See the COPYRIGHT dap for more information. */
|
|
|
|
/*
|
|
Internal library debugging interface
|
|
(undocumented)
|
|
*/
|
|
|
|
#ifndef OCX_H
|
|
#define OCX_H
|
|
|
|
/**************************************************/
|
|
/* Flags defining the structure of an OCdata object */
|
|
|
|
/* Must be consistent with ocutil.c.ocdtmodestring */
|
|
typedef unsigned int OCDT;
|
|
#define OCDT_FIELD ((OCDT)(1)) /* field of a container */
|
|
#define OCDT_ELEMENT ((OCDT)(2)) /* element of a structure array */
|
|
#define OCDT_RECORD ((OCDT)(4)) /* record of a sequence */
|
|
#define OCDT_ARRAY ((OCDT)(8)) /* is structure array */
|
|
#define OCDT_SEQUENCE ((OCDT)(16)) /* is sequence */
|
|
#define OCDT_ATOMIC ((OCDT)(32)) /* is atomic leaf */
|
|
|
|
/* Return mode for this data */
|
|
extern OCerror oc_data_mode(OClink, OCdatanode, OCDT* modep);
|
|
|
|
extern OCerror oc_dds_dd(OClink, OCddsnode, int);
|
|
extern OCerror oc_dds_ddnode(OClink, OCddsnode);
|
|
extern OCerror oc_data_ddpath(OClink, OCdatanode, char**);
|
|
extern OCerror oc_data_ddtree(OClink, OCdatanode root);
|
|
|
|
#endif /*OCX_H*/
|
|
|