您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ HDassert函数代码示例

51自学网 2021-06-01 21:22:46
  C++
这篇教程C++ HDassert函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中HDassert函数的典型用法代码示例。如果您正苦于以下问题:C++ HDassert函数的具体用法?C++ HDassert怎么用?C++ HDassert使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了HDassert函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: H5O_sdspace_free

/*------------------------------------------------------------------------- * Function:	H5O_sdsdpace_free * * Purpose:	Free's the message * * Return:	Non-negative on success/Negative on failure * * Programmer:	Quincey Koziol *              Thursday, March 30, 2000 * *------------------------------------------------------------------------- */static herr_tH5O_sdspace_free(void *mesg){    FUNC_ENTER_NOAPI_NOINIT_NOERR    HDassert(mesg);    mesg = H5FL_FREE(H5S_extent_t, mesg);    FUNC_LEAVE_NOAPI(SUCCEED)} /* end H5O_sdspace_free() */
开发者ID:Andy-Sun,项目名称:VTK,代码行数:23,


示例2: H5O__ginfo_free

/*------------------------------------------------------------------------- * Function:	H5O__ginfo_free * * Purpose:	Frees the message * * Return:	Non-negative on success/Negative on failure * * Programmer:	Quincey Koziol *              Tuesday, August 30, 2005 * *------------------------------------------------------------------------- */static herr_tH5O__ginfo_free(void *mesg){    FUNC_ENTER_NOAPI_NOINIT_NOERR    HDassert(mesg);    mesg = H5FL_FREE(H5O_ginfo_t, mesg);    FUNC_LEAVE_NOAPI(SUCCEED)} /* end H5O__ginfo_free() */
开发者ID:soumagne,项目名称:hdf5,代码行数:23,


示例3: H5D__single_idx_init

/*------------------------------------------------------------------------- * Function:    H5D__single_idx_init * * Purpose:     Initialize the indexing information for a dataset. * * Return:      Non-negative on success/Negative on failure * * Programmer:  Vailin Choi *              July, 2011 * *------------------------------------------------------------------------- */static herr_tH5D__single_idx_init(const H5D_chk_idx_info_t *idx_info,    const H5S_t H5_ATTR_UNUSED *space, haddr_t H5_ATTR_UNUSED dset_ohdr_addr){    FUNC_ENTER_STATIC_NOERR    /* Check args */    HDassert(idx_info);    HDassert(idx_info->f);    HDassert(idx_info->pline);    HDassert(idx_info->layout);    HDassert(idx_info->storage);    if(idx_info->pline->nused)	idx_info->layout->flags |= H5O_LAYOUT_CHUNK_SINGLE_INDEX_WITH_FILTER;    else	idx_info->layout->flags = 0;    FUNC_LEAVE_NOAPI(SUCCEED)} /* end H5D__single_idx_init() */
开发者ID:aleph7,项目名称:HDF5Kit,代码行数:32,


示例4: H5G_traverse_ud

/*------------------------------------------------------------------------- * Function:	H5G_traverse_link_ud * * Purpose:	Callback for user-defined link traversal.  Sets up a *              location ID and passes it to the user traversal callback. * * Return:	Non-negative on success/Negative on failure * * Programmer:	Quincey Koziol *              Tuesday, September 13, 2005 * *------------------------------------------------------------------------- */static herr_tH5G_traverse_ud(const H5G_loc_t *grp_loc/*in,out*/, const H5O_link_t *lnk,    H5G_loc_t *obj_loc/*in,out*/, size_t *nlinks/*in,out*/, hid_t _lapl_id,    hid_t dxpl_id){    const H5L_class_t   *link_class;       /* User-defined link class */    hid_t               cb_return = -1;         /* The ID the user-defined callback returned */    H5G_loc_t           grp_loc_copy;    H5G_name_t          grp_path_copy;    H5O_loc_t           grp_oloc_copy;    H5O_loc_t          *new_oloc = NULL;    H5F_t              *temp_file = NULL;    H5G_t              *grp;    hid_t               lapl_id = (-1);         /* LAPL local to this routine */    H5P_genplist_t     *lapl;                   /* LAPL with nlinks set */    hid_t               cur_grp = (-1);    herr_t              ret_value = SUCCEED;    /* Return value */    FUNC_ENTER_NOAPI_NOINIT(H5G_traverse_ud)    /* Sanity check */    HDassert(grp_loc);    HDassert(lnk);    HDassert(lnk->type >= H5L_TYPE_UD_MIN);    HDassert(obj_loc);    HDassert(nlinks);    HDassert(_lapl_id >= 0);    /* Reset the object's path information, because we can't detect any changes     * in the "path" the user-defined callback takes */    H5G_name_free(obj_loc->path);    /* Get the link class for this type of link. */    if(NULL == (link_class = H5L_find_class(lnk->type)))        HGOTO_ERROR(H5E_LINK, H5E_NOTREGISTERED, FAIL, "unable to get UD link class")    /* Set up location for user-defined callback.  Use a copy of our current     * grp_loc. */    grp_loc_copy.path = &grp_path_copy;    grp_loc_copy.oloc = &grp_oloc_copy;    H5G_loc_reset(&grp_loc_copy);    if(H5G_loc_copy(&grp_loc_copy, grp_loc, H5_COPY_DEEP) < 0)        HGOTO_ERROR(H5E_FILE, H5E_CANTCOPY, FAIL, "unable to copy object location")    /* Create a group to pass to the user-defined callback */    if((grp = H5G_open(&grp_loc_copy, dxpl_id)) == NULL)        HGOTO_ERROR(H5E_SYM, H5E_CANTOPENOBJ, FAIL, "unable to open group")    if((cur_grp = H5I_register(H5I_GROUP, grp)) < 0)        HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to register group")    /* Check for generic default property list and use link access default if so */    if(_lapl_id == H5P_DEFAULT) {        HDassert(H5P_LINK_ACCESS_DEFAULT != -1);        if(NULL == (lapl = H5I_object(H5P_LINK_ACCESS_DEFAULT)))            HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "unable to get default property list")    } /* end if */
开发者ID:ekjstm,项目名称:permafrost,代码行数:69,


示例5: H5HF_man_iter_ready

/*------------------------------------------------------------------------- * Function:	H5HF_man_iter_ready * * Purpose:	Query if iterator is ready to use * * Return:	SUCCEED/FAIL * * Programmer:	Quincey Koziol *		[email
C++ HDfprintf函数代码示例
C++ HD_TRACE_FUNCTION函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。