HDF5  1.12.0
Typedefs | Functions | Variables
H5EA.c File Reference
#include "H5EAmodule.h"
#include "H5private.h"
#include "H5Eprivate.h"
#include "H5EApkg.h"
#include "H5FLprivate.h"
#include "H5MMprivate.h"
#include "H5VMprivate.h"

Typedefs

typedef herr_t(* H5EA__unprotect_func_t) (void *thing, unsigned cache_flags)
 

Functions

 H5FL_DEFINE_STATIC (H5EA_t)
 
 H5FL_BLK_DEFINE (ea_native_elmt)
 
 BEGIN_FUNC (STATIC, CATCH if(hdr &&H5EA__hdr_unprotect(ERR, CATCH if(hdr &&H5EA__hdr_unprotect(H5EA_t *, H5EA_t *ea=NULL, H5EA_t *ea=NULL, H5EA__new(H5F_t *f, haddr_t ea_addr, hbool_t from_open, void *ctx_udata))
 
 if (NULL==(iblock=H5EA__iblock_protect(hdr, thing_acc)))
 
 if (sblk_idx< iblock->nsblks)
 
 if (!H5F_addr_defined(iblock->sblk_addrs[sblk_off]))
 
 if (sblock->dblk_npages)
 
CATCH if (ret_value< 0)
 
 if (stats_changed)
 
CATCH H5EA_get (const H5EA_t *ea, hsize_t idx, void *elmt)) H5EA_hdr_t *hdr
 
 HDassert (ea)
 
 HDassert (hdr)
 
 if (idx >=hdr->stats.stored.max_idx_set)
 
CATCH H5EA_depend (H5EA_t *ea, H5AC_proxy_entry_t *parent)) H5EA_hdr_t *hdr
 
 HDassert (parent)
 
CATCH END_FUNC (BEGIN_FUNC(PRIV)
 
CATCH H5EA_iterate (H5EA_t *ea, H5EA_operator_t op, void *udata)) uint8_t *elmt
 
 HDassert (op)
 
 HDassert (udata)
 

Variables

hbool_t H5_PKG_INIT_VAR = FALSE
 
const H5EA_class_t *const H5EA_client_class_g []
 
 else
 
size_t dblk_idx
 
hsize_t elmt_idx = idx - (hdr->cparam.idx_blk_elmts + hdr->sblk_info[sblk_idx].start_idx)
 
 sblk_idx = H5EA__dblock_sblk_idx(hdr, idx)
 
 sblk_off = sblk_idx - iblock->nsblks
 
thing_elmt_buf = (uint8_t *)dblock->elmts
 
thing_elmt_idx = elmt_idx
 
thing_unprot_func = (H5EA__unprotect_func_t)H5EA__dblock_unprotect
 
HDassertthing = NULL
 
CATCH ERR
 
CATCH herr_t
 
CATCH SUCCEED
 
CATCH FAIL
 
hdr f = ea->f
 
 ea = (H5EA_t *)H5FL_FREE(H5EA_t, ea)
 
CATCH int
 
CATCH H5_ITER_CONT
 
CATCH H5_ITER_ERROR
 
hsize_t u
 
int cb_ret = H5_ITER_CONT
 

Typedef Documentation

◆ H5EA__unprotect_func_t

typedef herr_t(* H5EA__unprotect_func_t) (void *thing, unsigned cache_flags)

Function Documentation

◆ BEGIN_FUNC()

BEGIN_FUNC ( STATIC  ,
CATCH if(hdr && H5EA__hdr_unprotect ERR,
CATCH if(hdr && H5EA__hdr_unprotect H5EA_t *,
H5EA_t *ea NULL,
H5EA_t *ea NULL,
H5EA__new(H5F_t *f, haddr_t ea_addr, hbool_t from_open, void *ctx_udata)   
)

◆ END_FUNC()

CATCH END_FUNC ( BEGIN_FUNC PRIV)

◆ H5EA_depend()

CATCH H5EA_depend ( H5EA_t ea,
H5AC_proxy_entry_t parent 
)

◆ H5EA_get()

CATCH H5EA_get ( const H5EA_t ea,
hsize_t  idx,
void *  elmt 
)

◆ H5EA_iterate()

CATCH H5EA_iterate ( H5EA_t ea,
H5EA_operator_t  op,
void *  udata 
)

◆ H5FL_BLK_DEFINE()

H5FL_BLK_DEFINE ( ea_native_elmt  )

◆ H5FL_DEFINE_STATIC()

H5FL_DEFINE_STATIC ( H5EA_t  )

◆ HDassert() [1/5]

HDassert ( ea  )

◆ HDassert() [2/5]

HDassert ( hdr  )

◆ HDassert() [3/5]

HDassert ( op  )

◆ HDassert() [4/5]

HDassert ( parent  )

◆ HDassert() [5/5]

HDassert ( udata  )

◆ if() [1/7]

if ( H5F_addr_definediblock->sblk_addrs[sblk_off])

◆ if() [2/7]

if ( idx >=hdr->stats.stored.  max_idx_set)

◆ if() [3/7]

if ( NULL  = = (iblock = H5EA__iblock_protect(hdr, thing_acc)))

◆ if() [4/7]

if ( )
Initial value:
== thing) {
if((hdr->cparam.cls->fill)(elmt, (size_t)1) < 0)
}
else
H5MM_memcpy(elmt, thing_elmt_buf + (hdr->cparam.cls->nat_elmt_size * thing_elmt_idx), hdr->cparam.cls->nat_elmt_size)

◆ if() [5/7]

if ( sblk_idx< iblock->  nsblks)

◆ if() [6/7]

if ( sblock->  dblk_npages)

◆ if() [7/7]

if ( stats_changed  )

Variable Documentation

◆ cb_ret

int cb_ret = H5_ITER_CONT

◆ dblk_idx

size_t dblk_idx

◆ ea

ea = (H5EA_t *)H5FL_FREE(H5EA_t, ea)

◆ elmt_idx

elmt_idx = idx - (hdr->cparam.idx_blk_elmts + hdr->sblk_info[sblk_idx].start_idx)

◆ else

else
Initial value:
{
unsigned sblk_idx

◆ ERR

CATCH ERR

◆ f

hdr f = ea->f

◆ FAIL

CATCH FAIL

◆ H5_ITER_CONT

CATCH H5_ITER_CONT

◆ H5_ITER_ERROR

CATCH H5_ITER_ERROR

◆ H5_PKG_INIT_VAR

hbool_t H5_PKG_INIT_VAR = FALSE

◆ H5EA_client_class_g

const H5EA_class_t* const H5EA_client_class_g[]

◆ herr_t

◆ int

CATCH int

◆ sblk_idx

sblk_idx = H5EA__dblock_sblk_idx(hdr, idx)

◆ sblk_off

sblk_off = sblk_idx - iblock->nsblks

◆ SUCCEED

CATCH SUCCEED

◆ thing

void * thing = NULL

◆ thing_elmt_buf

* thing_elmt_buf = (uint8_t *)dblock->elmts

◆ thing_elmt_idx

hsize_t thing_elmt_idx = elmt_idx

◆ thing_unprot_func

◆ u

thing
HDassert * thing
Definition: H5EA.c:616
H5EA_CLS_TEST
H5_DLLVAR const H5EA_class_t H5EA_CLS_TEST[1]
Definition: H5EApkg.h:380
thing_elmt_idx
* thing_elmt_idx
Definition: H5EA.c:609
hdr
hdr
Definition: H5EAhdr.c:821
H5EA_CLS_FILT_CHUNK
const H5EA_class_t H5EA_CLS_FILT_CHUNK[1]
Definition: H5Dearray.c:192
size_t
size_t
Definition: H5overflow.txt:41
H5MM_memcpy
H5MM_memcpy(heap->dblk_image+offset, buf, buf_size)
H5EA_CLS_CHUNK
const H5EA_class_t H5EA_CLS_CHUNK[1]
Definition: H5Dearray.c:177
thing_elmt_buf
* thing_elmt_buf
Definition: H5EA.c:608
sblk_idx
sblk_idx
Definition: H5EA.c:425