⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htbtree.h

📁 www工具包
💻 H
字号:
/*					W3C Sample Code Library libwww Balanced Binary Tree!Balanced Binary Tree!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*Tree creation, traversal and freeing. User-supplied comparisonroutine.This module is implemented by HTBTree.c, andit is a part of the  W3CSample Code Library.*/#ifndef HTBTTEE_H#define HTBTREE_H#include "HTArray.h"/**/typedef struct _HTBTree HTBTree;typedef struct _HTBTree_element HTBTElement;/*.Create a Binary Tree.This function creates a new binary tree and uses the comparisonfunction when building the tree.*/extern HTBTree * HTBTree_new (HTComparer * comp);/*.Free storage of the tree but not of the objects.*/extern void HTBTree_free (HTBTree * tree);/*.Free storage of the tree and of the objects.*/extern void HTBTreeAndObject_free (HTBTree * tree);/*.Add an object to a binary tree.*/extern void HTBTree_add (HTBTree* tree, void * object);/*.Return an Object.*/extern void * HTBTree_object (HTBTElement * element);/*.Find next element in depth-first order.(On entry,)If element is NULL then start with leftmost element. ifnot NULL then give next object to the right. The function returns apointer to element or NULL if none left.*/extern HTBTElement * HTBTree_next (HTBTree * tree, HTBTElement * element);/**/#endif/*@(#) $Id: HTBTree.html,v 2.19 1998/05/14 02:10:16 frystyk Exp $*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -