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

📄 tree.h

📁 cfd求解器使用与gmsh网格的求解
💻 H
字号:
/* * Copyright (C) 1997-2006 P. Dular, C. Geuzaine * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. * * Please report all bugs and problems to <getdp@geuz.org>. * * Contributor(s): *   Marc Ume */#ifndef _TREE_H_#define _TREE_H_#include "avl.h"typedef struct {  int size;  avl_tree *root;} Tree_T;Tree_T *Tree_Create(int size, int (*fcmp)(const void *a, const void *b));void    Tree_Delete(Tree_T *Tree);void    Tree_Add(Tree_T *tree, void *data);void   *Tree_AddP(Tree_T *tree, void *data);int     Tree_Nbr(Tree_T *Tree);void    Tree_Insert(Tree_T *Tree, void *data);int     Tree_Replace(Tree_T *Tree, void *data);int     Tree_Search(Tree_T *Tree, void *data);int     Tree_Query(Tree_T *Tree, void *data);void   *Tree_PQuery(Tree_T *Tree, void *data);int     Tree_Suppress(Tree_T *Tree, void *data);int     Tree_Left(Tree_T *tree, void *data);int     Tree_Right(Tree_T *tree, void *data);void    Tree_Action(Tree_T *tree, void (*action) (void *data, void *dummy));int     Tree_Size(Tree_T *tree) ;#endif

⌨️ 快捷键说明

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