World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
tree.h
См. документацию.
1 /*
2  * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
27 #ifndef AVUTIL_TREE_H
28 #define AVUTIL_TREE_H
29 
30 #include "attributes.h"
31 #include "version.h"
32 
45 struct AVTreeNode;
46 extern const int av_tree_node_size;
47 
51 struct AVTreeNode *av_tree_node_alloc(void);
52 
67 void *av_tree_find(const struct AVTreeNode *root, void *key,
68  int (*cmp)(const void *key, const void *b), void *next[2]);
69 
114 void *av_tree_insert(struct AVTreeNode **rootp, void *key,
115  int (*cmp)(const void *key, const void *b),
116  struct AVTreeNode **next);
117 
118 void av_tree_destroy(struct AVTreeNode *t);
119 
130 void av_tree_enumerate(struct AVTreeNode *t, void *opaque,
131  int (*cmp)(void *opaque, void *elem),
132  int (*enu)(void *opaque, void *elem));
133 
138 #endif /* AVUTIL_TREE_H */
av_tree_insert
void * av_tree_insert(struct AVTreeNode **rootp, void *key, int(*cmp)(const void *key, const void *b), struct AVTreeNode **next)
av_tree_node_alloc
struct AVTreeNode * av_tree_node_alloc(void)
av_tree_enumerate
void av_tree_enumerate(struct AVTreeNode *t, void *opaque, int(*cmp)(void *opaque, void *elem), int(*enu)(void *opaque, void *elem))
av_tree_node_size
const int av_tree_node_size
av_tree_destroy
void av_tree_destroy(struct AVTreeNode *t)
attributes.h
t
GLdouble GLdouble t
Definition: SDL_opengl.h:2071
av_tree_find
void * av_tree_find(const struct AVTreeNode *root, void *key, int(*cmp)(const void *key, const void *b), void *next[2])
b
GLboolean GLboolean GLboolean b
Definition: SDL_opengl_glext.h:1112