2016-06-05 20:29:40 +00:00
|
|
|
// SONIC ROBO BLAST 2
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
// Copyright (C) 1998-2000 by DooM Legacy Team.
|
2018-11-25 12:35:38 +00:00
|
|
|
// Copyright (C) 1999-2018 by Sonic Team Junior.
|
2016-06-05 20:29:40 +00:00
|
|
|
//
|
|
|
|
// This program is free software distributed under the
|
|
|
|
// terms of the GNU General Public License, version 2.
|
|
|
|
// See the 'LICENSE' file for more details.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
/// \file m_aatree.h
|
|
|
|
/// \brief AA trees code
|
|
|
|
|
|
|
|
#ifndef __M_AATREE__
|
|
|
|
#define __M_AATREE__
|
|
|
|
|
|
|
|
#include "doomtype.h"
|
|
|
|
|
|
|
|
// Flags for AA trees.
|
|
|
|
#define AATREE_ZUSER 1 // Treat values as z_zone-allocated blocks and set their user fields
|
|
|
|
|
|
|
|
typedef struct aatree_s aatree_t;
|
|
|
|
typedef void (*aatree_iter_t)(INT32 key, void *value);
|
|
|
|
|
|
|
|
aatree_t *M_AATreeAlloc(UINT32 flags);
|
|
|
|
void M_AATreeFree(aatree_t *aatree);
|
|
|
|
void M_AATreeSet(aatree_t *aatree, INT32 key, void* value);
|
|
|
|
void *M_AATreeGet(aatree_t *aatree, INT32 key);
|
|
|
|
void M_AATreeIterate(aatree_t *aatree, aatree_iter_t callback);
|
|
|
|
|
2016-12-23 00:39:37 +00:00
|
|
|
#endif
|