| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
#ifndef ___iprt_avl_h |
|---|
| 31 |
#define ___iprt_avl_h |
|---|
| 32 |
|
|---|
| 33 |
#include <iprt/cdefs.h> |
|---|
| 34 |
#include <iprt/types.h> |
|---|
| 35 |
|
|---|
| 36 |
__BEGIN_DECLS |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
typedef void * AVLPVKEY; |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
typedef struct _AVLPVNodeCore |
|---|
| 57 |
{ |
|---|
| 58 |
AVLPVKEY Key; |
|---|
| 59 |
struct _AVLPVNodeCore *pLeft; |
|---|
| 60 |
struct _AVLPVNodeCore *pRight; |
|---|
| 61 |
unsigned char uchHeight; |
|---|
| 62 |
} AVLPVNODECORE, *PAVLPVNODECORE, **PPAVLPVNODECORE; |
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
typedef PAVLPVNODECORE AVLPVTREE; |
|---|
| 66 |
|
|---|
| 67 |
typedef PPAVLPVNODECORE PAVLPVTREE; |
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 |
typedef DECLCALLBACK(int) AVLPVCALLBACK(PAVLPVNODECORE, void *); |
|---|
| 71 |
|
|---|
| 72 |
typedef AVLPVCALLBACK *PAVLPVCALLBACK; |
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 |
RTDECL(bool) RTAvlPVInsert(PAVLPVTREE ppTree, PAVLPVNODECORE pNode); |
|---|
| 78 |
RTDECL(PAVLPVNODECORE) RTAvlPVRemove(PAVLPVTREE ppTree, AVLPVKEY Key); |
|---|
| 79 |
RTDECL(PAVLPVNODECORE) RTAvlPVGet(PAVLPVTREE ppTree, AVLPVKEY Key); |
|---|
| 80 |
RTDECL(PAVLPVNODECORE) RTAvlPVGetBestFit(PAVLPVTREE ppTree, AVLPVKEY Key, bool fAbove); |
|---|
| 81 |
RTDECL(PAVLPVNODECORE) RTAvlPVRemoveBestFit(PAVLPVTREE ppTree, AVLPVKEY Key, bool fAbove); |
|---|
| 82 |
RTDECL(int) RTAvlPVDoWithAll(PAVLPVTREE ppTree, int fFromLeft, PAVLPVCALLBACK pfnCallBack, void *pvParam); |
|---|
| 83 |
RTDECL(int) RTAvlPVDestroy(PAVLPVTREE ppTree, PAVLPVCALLBACK pfnCallBack, void *pvParam); |
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
typedef unsigned long AVLULKEY; |
|---|
| 96 |
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 |
typedef struct _AVLULNodeCore |
|---|
| 101 |
{ |
|---|
| 102 |
AVLULKEY Key; |
|---|
| 103 |
struct _AVLULNodeCore *pLeft; |
|---|
| 104 |
struct _AVLULNodeCore *pRight; |
|---|
| 105 |
unsigned char uchHeight; |
|---|
| 106 |
} AVLULNODECORE, *PAVLULNODECORE, **PPAVLULNODECORE; |
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
typedef DECLCALLBACK(int) AVLULCALLBACK(PAVLULNODECORE, void*); |
|---|
| 111 |
|
|---|
| 112 |
typedef AVLULCALLBACK *PAVLULCALLBACK; |
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 |
|
|---|
| 118 |
RTDECL(bool) RTAvlULInsert(PPAVLULNODECORE ppTree, PAVLULNODECORE pNode); |
|---|
| 119 |
RTDECL(PAVLULNODECORE) RTAvlULRemove(PPAVLULNODECORE ppTree, AVLULKEY Key); |
|---|
| 120 |
RTDECL(PAVLULNODECORE) RTAvlULGet(PPAVLULNODECORE ppTree, AVLULKEY Key); |
|---|
| 121 |
RTDECL(PAVLULNODECORE) RTAvlULGetBestFit(PPAVLULNODECORE ppTree, AVLULKEY Key, bool fAbove); |
|---|
| 122 |
RTDECL(PAVLULNODECORE) RTAvlULRemoveBestFit(PPAVLULNODECORE ppTree, AVLULKEY Key, bool fAbove); |
|---|
| 123 |
RTDECL(int) RTAvlULDoWithAll(PPAVLULNODECORE ppTree, int fFromLeft, PAVLULCALLBACK pfnCallBack, void *pvParam); |
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
typedef uint32_t AVLU32KEY; |
|---|
| 135 |
|
|---|
| 136 |
|
|---|
| 137 |
typedef struct _AVLU32NodeCore |
|---|
| 138 |
{ |
|---|
| 139 |
AVLU32KEY Key; |
|---|
| 140 |
struct _AVLU32NodeCore *pLeft; |
|---|
| 141 |
struct _AVLU32NodeCore *pRight; |
|---|
| 142 |
unsigned char uchHeight; |
|---|
| 143 |
} AVLU32NODECORE, *PAVLU32NODECORE, **PPAVLU32NODECORE; |
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
typedef DECLCALLBACK(int) AVLU32CALLBACK(PAVLU32NODECORE, void*); |
|---|
| 147 |
|
|---|
| 148 |
typedef AVLU32CALLBACK *PAVLU32CALLBACK; |
|---|
| 149 |
|
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| 154 |
RTDECL(bool) RTAvlU32Insert(PPAVLU32NODECORE ppTree, PAVLU32NODECORE pNode); |
|---|
| 155 |
RTDECL(PAVLU32NODECORE) RTAvlU32Remove(PPAVLU32NODECORE ppTree, AVLU32KEY Key); |
|---|
| 156 |
RTDECL(PAVLU32NODECORE) RTAvlU32Get(PPAVLU32NODECORE ppTree, AVLU32KEY Key); |
|---|
| 157 |
RTDECL(PAVLU32NODECORE) RTAvlU32GetBestFit(PPAVLU32NODECORE ppTree, AVLU32KEY Key, bool fAbove); |
|---|
| 158 |
RTDECL(PAVLU32NODECORE) RTAvlU32RemoveBestFit(PPAVLU32NODECORE ppTree, AVLU32KEY Key, bool fAbove); |
|---|
| 159 |
RTDECL(int) RTAvlU32DoWithAll(PPAVLU32NODECORE ppTree, int fFromLeft, PAVLU32CALLBACK pfnCallBack, void *pvParam); |
|---|
| 160 |
RTDECL(int) RTAvlU32Destroy(PPAVLU32NODECORE pTree, PAVLU32CALLBACK pfnCallBack, void *pvParam); |
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 |
|
|---|
| 166 |
|
|---|
| 167 |
typedef int32_t AVLOU32; |
|---|
| 168 |
|
|---|
| 169 |
typedef uint32_t AVLOU32KEY; |
|---|
| 170 |
|
|---|
| 171 |
|
|---|
| 172 |
|
|---|
| 173 |
|
|---|
| 174 |
typedef struct _AVLOU32NodeCore |
|---|
| 175 |
{ |
|---|
| 176 |
|
|---|
| 177 |
AVLOU32KEY Key; |
|---|
| 178 |
|
|---|
| 179 |
AVLOU32 pLeft; |
|---|
| 180 |
|
|---|
| 181 |
AVLOU32 pRight; |
|---|
| 182 |
|
|---|
| 183 |
unsigned char uchHeight; |
|---|
| 184 |
} AVLOU32NODECORE, *PAVLOU32NODECORE; |
|---|
| 185 |
|
|---|
| 186 |
|
|---|
| 187 |
typedef AVLOU32 AVLOU32TREE; |
|---|
| 188 |
|
|---|
| 189 |
typedef AVLOU32TREE *PAVLOU32TREE; |
|---|
| 190 |
|
|---|
| 191 |
|
|---|
| 192 |
|
|---|
| 193 |
typedef AVLOU32TREE *PPAVLOU32NODECORE; |
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 |
typedef DECLCALLBACK(int) AVLOU32CALLBACK(PAVLOU32NODECORE pNode, void *pvUser); |
|---|
| 197 |
|
|---|
| 198 |
typedef AVLOU32CALLBACK *PAVLOU32CALLBACK; |
|---|
| 199 |
|
|---|
| 200 |
RTDECL(bool) RTAvloU32Insert(PAVLOU32TREE pTree, PAVLOU32NODECORE pNode); |
|---|
| 201 |
RTDECL(PAVLOU32NODECORE) RTAvloU32Remove(PAVLOU32TREE pTree, AVLOU32KEY Key); |
|---|
| 202 |
RTDECL(PAVLOU32NODECORE) RTAvloU32Get(PAVLOU32TREE pTree, AVLOU32KEY Key); |
|---|
| 203 |
RTDECL(int) RTAvloU32DoWithAll(PAVLOU32TREE pTree, int fFromLeft, PAVLOU32CALLBACK pfnCallBack, void *pvParam); |
|---|
| 204 |
RTDECL(PAVLOU32NODECORE) RTAvloU32GetBestFit(PAVLOU32TREE ppTree, AVLOU32KEY Key, bool fAbove); |
|---|
| 205 |
RTDECL(PAVLOU32NODECORE) RTAvloU32RemoveBestFit(PAVLOU32TREE ppTree, AVLOU32KEY Key, bool fAbove); |
|---|
| 206 |
RTDECL(int) RTAvloU32Destroy(PAVLOU32TREE pTree, PAVLOU32CALLBACK pfnCallBack, void *pvParam); |
|---|
| 207 |
|
|---|
| 208 |
|
|---|
| 209 |
|
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 |
|
|---|
| 213 |
|
|---|
| 214 |
|
|---|
| 215 |
|
|---|
| 216 |
typedef uint32_t AVLLU32KEY; |
|---|
| 217 |
|
|---|
| 218 |
|
|---|
| 219 |
typedef struct _AVLLU32NodeCore |
|---|
| 220 |
{ |
|---|
| 221 |
AVLLU32KEY Key; |
|---|
| 222 |
unsigned char uchHeight; |
|---|
| 223 |
struct _AVLLU32NodeCore *pLeft; |
|---|
| 224 |
struct _AVLLU32NodeCore *pRight; |
|---|
| 225 |
struct _AVLLU32NodeCore *pList; |
|---|
| 226 |
} AVLLU32NODECORE, *PAVLLU32NODECORE, **PPAVLLU32NODECORE; |
|---|
| 227 |
|
|---|
| 228 |
|
|---|
| 229 |
typedef DECLCALLBACK(int) AVLLU32CALLBACK(PAVLLU32NODECORE, void*); |
|---|
| 230 |
|
|---|
| 231 |
typedef AVLLU32CALLBACK *PAVLLU32CALLBACK; |
|---|
| 232 |
|
|---|
| 233 |
|
|---|
| 234 |
|
|---|
| 235 |
|
|---|
| 236 |
|
|---|
| 237 |
RTDECL(bool) RTAvllU32Insert(PPAVLLU32NODECORE ppTree, PAVLLU32NODECORE pNode); |
|---|
| 238 |
RTDECL(PAVLLU32NODECORE) RTAvllU32Remove(PPAVLLU32NODECORE ppTree, AVLLU32KEY Key); |
|---|
| 239 |
RTDECL(PAVLLU32NODECORE) RTAvllU32Get(PPAVLLU32NODECORE ppTree, AVLLU32KEY Key); |
|---|
| 240 |
RTDECL(PAVLLU32NODECORE) RTAvllU32GetBestFit(PPAVLLU32NODECORE ppTree, AVLLU32KEY Key, bool fAbove); |
|---|
| 241 |
RTDECL(PAVLLU32NODECORE) RTAvllU32RemoveBestFit(PPAVLLU32NODECORE ppTree, AVLLU32KEY Key, bool fAbove); |
|---|
| 242 |
RTDECL(int) RTAvllU32DoWithAll(PPAVLLU32NODECORE ppTree, int fFromLeft, PAVLLU32CALLBACK pfnCallBack, void *pvParam); |
|---|
| 243 |
RTDECL(int) RTAvllU32Destroy(PPAVLLU32NODECORE pTree, PAVLLU32CALLBACK pfnCallBack, void *pvParam); |
|---|
| 244 |
|
|---|
| 245 |
|
|---|
| 246 |
|
|---|
| 247 |
|
|---|
| 248 |
|
|---|
| 249 |
|
|---|
| 250 |
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 |
|
|---|
| 254 |
|
|---|
| 255 |
|
|---|
| 256 |
typedef int32_t AVLOGCPHYS; |
|---|
| 257 |
|
|---|
| 258 |
|
|---|
| 259 |
|
|---|
| 260 |
|
|---|
| 261 |
typedef struct _AVLOGCPhysNodeCore |
|---|
| 262 |
{ |
|---|
| 263 |
|
|---|
| 264 |
RTGCPHYS Key; |
|---|
| 265 |
|
|---|
| 266 |
AVLOGCPHYS pLeft; |
|---|
| 267 |
|
|---|
| 268 |
AVLOGCPHYS pRight; |
|---|
| 269 |
|
|---|
| 270 |
unsigned char uchHeight; |
|---|
| 271 |
|
|---|
| 272 |
unsigned char Padding[7]; |
|---|
| 273 |
} AVLOGCPHYSNODECORE, *PAVLOGCPHYSNODECORE; |
|---|
| 274 |
|
|---|
| 275 |
|
|---|
| 276 |
typedef AVLOGCPHYS AVLOGCPHYSTREE; |
|---|
| 277 |
|
|---|
| 278 |
typedef AVLOGCPHYSTREE *PAVLOGCPHYSTREE; |
|---|
| 279 |
|
|---|
| 280 |
|
|---|
| 281 |
|
|---|
| 282 |
typedef AVLOGCPHYSTREE *PPAVLOGCPHYSNODECORE; |
|---|
| 283 |
|
|---|
| 284 |
|
|---|
| 285 |
typedef DECLCALLBACK(int) AVLOGCPHYSCALLBACK(PAVLOGCPHYSNODECORE pNode, void *pvUser); |
|---|
| 286 |
|
|---|
| 287 |
typedef AVLOGCPHYSCALLBACK *PAVLOGCPHYSCALLBACK; |
|---|
| 288 |
|
|---|
| 289 |
RTDECL(bool) RTAvloGCPhysInsert(PAVLOGCPHYSTREE pTree, PAVLOGCPHYSNODECORE pNode); |
|---|
| 290 |
RTDECL(PAVLOGCPHYSNODECORE) RTAvloGCPhysRemove(PAVLOGCPHYSTREE pTree, RTGCPHYS Key); |
|---|
| 291 |
RTDECL(PAVLOGCPHYSNODECORE) RTAvloGCPhysGet(PAVLOGCPHYSTREE pTree, RTGCPHYS Key); |
|---|
| 292 |
RTDECL(int) RTAvloGCPhysDoWithAll(PAVLOGCPHYSTREE pTree, int fFromLeft, PAVLOGCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 293 |
RTDECL(PAVLOGCPHYSNODECORE) RTAvloGCPhysGetBestFit(PAVLOGCPHYSTREE ppTree, RTGCPHYS Key, bool fAbove); |
|---|
| 294 |
RTDECL(PAVLOGCPHYSNODECORE) RTAvloGCPhysRemoveBestFit(PAVLOGCPHYSTREE ppTree, RTGCPHYS Key, bool fAbove); |
|---|
| 295 |
RTDECL(int) RTAvloGCPhysDestroy(PAVLOGCPHYSTREE pTree, PAVLOGCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 296 |
|
|---|
| 297 |
|
|---|
| 298 |
|
|---|
| 299 |
|
|---|
| 300 |
|
|---|
| 301 |
|
|---|
| 302 |
|
|---|
| 303 |
|
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 |
|
|---|
| 307 |
typedef int32_t AVLROGCPHYS; |
|---|
| 308 |
|
|---|
| 309 |
|
|---|
| 310 |
|
|---|
| 311 |
|
|---|
| 312 |
typedef struct _AVLROGCPhysNodeCore |
|---|
| 313 |
{ |
|---|
| 314 |
|
|---|
| 315 |
RTGCPHYS Key; |
|---|
| 316 |
|
|---|
| 317 |
RTGCPHYS KeyLast; |
|---|
| 318 |
|
|---|
| 319 |
AVLROGCPHYS pLeft; |
|---|
| 320 |
|
|---|
| 321 |
AVLROGCPHYS pRight; |
|---|
| 322 |
|
|---|
| 323 |
unsigned char uchHeight; |
|---|
| 324 |
|
|---|
| 325 |
unsigned char Padding[7]; |
|---|
| 326 |
} AVLROGCPHYSNODECORE, *PAVLROGCPHYSNODECORE; |
|---|
| 327 |
|
|---|
| 328 |
|
|---|
| 329 |
typedef AVLROGCPHYS AVLROGCPHYSTREE; |
|---|
| 330 |
|
|---|
| 331 |
typedef AVLROGCPHYSTREE *PAVLROGCPHYSTREE; |
|---|
| 332 |
|
|---|
| 333 |
|
|---|
| 334 |
|
|---|
| 335 |
typedef AVLROGCPHYSTREE *PPAVLROGCPHYSNODECORE; |
|---|
| 336 |
|
|---|
| 337 |
|
|---|
| 338 |
typedef DECLCALLBACK(int) AVLROGCPHYSCALLBACK(PAVLROGCPHYSNODECORE pNode, void *pvUser); |
|---|
| 339 |
|
|---|
| 340 |
typedef AVLROGCPHYSCALLBACK *PAVLROGCPHYSCALLBACK; |
|---|
| 341 |
|
|---|
| 342 |
RTDECL(bool) RTAvlroGCPhysInsert(PAVLROGCPHYSTREE pTree, PAVLROGCPHYSNODECORE pNode); |
|---|
| 343 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysRemove(PAVLROGCPHYSTREE pTree, RTGCPHYS Key); |
|---|
| 344 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysGet(PAVLROGCPHYSTREE pTree, RTGCPHYS Key); |
|---|
| 345 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysRangeGet(PAVLROGCPHYSTREE pTree, RTGCPHYS Key); |
|---|
| 346 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysRangeRemove(PAVLROGCPHYSTREE pTree, RTGCPHYS Key); |
|---|
| 347 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysGetBestFit(PAVLROGCPHYSTREE ppTree, RTGCPHYS Key, bool fAbove); |
|---|
| 348 |
RTDECL(int) RTAvlroGCPhysDoWithAll(PAVLROGCPHYSTREE pTree, int fFromLeft, PAVLROGCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 349 |
RTDECL(int) RTAvlroGCPhysDestroy(PAVLROGCPHYSTREE pTree, PAVLROGCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 350 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysGetRoot(PAVLROGCPHYSTREE pTree); |
|---|
| 351 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysGetLeft(PAVLROGCPHYSNODECORE pNode); |
|---|
| 352 |
RTDECL(PAVLROGCPHYSNODECORE) RTAvlroGCPhysGetRight(PAVLROGCPHYSNODECORE pNode); |
|---|
| 353 |
|
|---|
| 354 |
|
|---|
| 355 |
|
|---|
| 356 |
|
|---|
| 357 |
|
|---|
| 358 |
|
|---|
| 359 |
|
|---|
| 360 |
|
|---|
| 361 |
|
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 |
typedef struct _AVLGCPtrNodeCore |
|---|
| 365 |
{ |
|---|
| 366 |
|
|---|
| 367 |
RTGCPTR Key; |
|---|
| 368 |
|
|---|
| 369 |
struct _AVLGCPtrNodeCore *pLeft; |
|---|
| 370 |
|
|---|
| 371 |
struct _AVLGCPtrNodeCore *pRight; |
|---|
| 372 |
|
|---|
| 373 |
unsigned char uchHeight; |
|---|
| 374 |
} AVLGCPTRNODECORE, *PAVLGCPTRNODECORE, **PPAVLGCPTRNODECORE; |
|---|
| 375 |
|
|---|
| 376 |
|
|---|
| 377 |
typedef PAVLGCPTRNODECORE AVLGCPTRTREE; |
|---|
| 378 |
|
|---|
| 379 |
typedef PPAVLGCPTRNODECORE PAVLGCPTRTREE; |
|---|
| 380 |
|
|---|
| 381 |
|
|---|
| 382 |
typedef DECLCALLBACK(int) AVLGCPTRCALLBACK(PAVLGCPTRNODECORE pNode, void *pvUser); |
|---|
| 383 |
|
|---|
| 384 |
typedef AVLGCPTRCALLBACK *PAVLGCPTRCALLBACK; |
|---|
| 385 |
|
|---|
| 386 |
RTDECL(bool) RTAvlGCPtrInsert(PAVLGCPTRTREE pTree, PAVLGCPTRNODECORE pNode); |
|---|
| 387 |
RTDECL(PAVLGCPTRNODECORE) RTAvlGCPtrRemove(PAVLGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 388 |
RTDECL(PAVLGCPTRNODECORE) RTAvlGCPtrGet(PAVLGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 389 |
RTDECL(int) RTAvlGCPtrDoWithAll(PAVLGCPTRTREE pTree, int fFromLeft, PAVLGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 390 |
RTDECL(PAVLGCPTRNODECORE) RTAvlGCPtrGetBestFit(PAVLGCPTRTREE ppTree, RTGCPTR Key, bool fAbove); |
|---|
| 391 |
RTDECL(PAVLGCPTRNODECORE) RTAvlGCPtrRemoveBestFit(PAVLGCPTRTREE ppTree, RTGCPTR Key, bool fAbove); |
|---|
| 392 |
RTDECL(int) RTAvlGCPtrDestroy(PAVLGCPTRTREE pTree, PAVLGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 393 |
|
|---|
| 394 |
|
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
|
|---|
| 398 |
|
|---|
| 399 |
|
|---|
| 400 |
|
|---|
| 401 |
|
|---|
| 402 |
|
|---|
| 403 |
|
|---|
| 404 |
typedef int32_t AVLOGCPTR; |
|---|
| 405 |
|
|---|
| 406 |
|
|---|
| 407 |
|
|---|
| 408 |
|
|---|
| 409 |
typedef struct _AVLOGCPtrNodeCore |
|---|
| 410 |
{ |
|---|
| 411 |
|
|---|
| 412 |
RTGCPTR Key; |
|---|
| 413 |
|
|---|
| 414 |
AVLOGCPTR pLeft; |
|---|
| 415 |
|
|---|
| 416 |
AVLOGCPTR pRight; |
|---|
| 417 |
|
|---|
| 418 |
unsigned char uchHeight; |
|---|
| 419 |
unsigned char padding[GC_ARCH_BITS == 64 ? 7 : 3]; |
|---|
| 420 |
} AVLOGCPTRNODECORE, *PAVLOGCPTRNODECORE; |
|---|
| 421 |
|
|---|
| 422 |
|
|---|
| 423 |
typedef AVLOGCPTR AVLOGCPTRTREE; |
|---|
| 424 |
|
|---|
| 425 |
typedef AVLOGCPTRTREE *PAVLOGCPTRTREE; |
|---|
| 426 |
|
|---|
| 427 |
|
|---|
| 428 |
|
|---|
| 429 |
typedef AVLOGCPTRTREE *PPAVLOGCPTRNODECORE; |
|---|
| 430 |
|
|---|
| 431 |
|
|---|
| 432 |
typedef DECLCALLBACK(int) AVLOGCPTRCALLBACK(PAVLOGCPTRNODECORE pNode, void *pvUser); |
|---|
| 433 |
|
|---|
| 434 |
typedef AVLOGCPTRCALLBACK *PAVLOGCPTRCALLBACK; |
|---|
| 435 |
|
|---|
| 436 |
RTDECL(bool) RTAvloGCPtrInsert(PAVLOGCPTRTREE pTree, PAVLOGCPTRNODECORE pNode); |
|---|
| 437 |
RTDECL(PAVLOGCPTRNODECORE) RTAvloGCPtrRemove(PAVLOGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 438 |
RTDECL(PAVLOGCPTRNODECORE) RTAvloGCPtrGet(PAVLOGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 439 |
RTDECL(int) RTAvloGCPtrDoWithAll(PAVLOGCPTRTREE pTree, int fFromLeft, PAVLOGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 440 |
RTDECL(PAVLOGCPTRNODECORE) RTAvloGCPtrGetBestFit(PAVLOGCPTRTREE ppTree, RTGCPTR Key, bool fAbove); |
|---|
| 441 |
RTDECL(PAVLOGCPTRNODECORE) RTAvloGCPtrRemoveBestFit(PAVLOGCPTRTREE ppTree, RTGCPTR Key, bool fAbove); |
|---|
| 442 |
RTDECL(int) RTAvloGCPtrDestroy(PAVLOGCPTRTREE pTree, PAVLOGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 443 |
|
|---|
| 444 |
|
|---|
| 445 |
|
|---|
| 446 |
|
|---|
| 447 |
|
|---|
| 448 |
|
|---|
| 449 |
|
|---|
| 450 |
|
|---|
| 451 |
|
|---|
| 452 |
|
|---|
| 453 |
|
|---|
| 454 |
typedef struct _AVLRGCPtrNodeCore |
|---|
| 455 |
{ |
|---|
| 456 |
|
|---|
| 457 |
RTGCPTR Key; |
|---|
| 458 |
|
|---|
| 459 |
RTGCPTR KeyLast; |
|---|
| 460 |
|
|---|
| 461 |
struct _AVLRGCPtrNodeCore *pLeft; |
|---|
| 462 |
|
|---|
| 463 |
struct _AVLRGCPtrNodeCore *pRight; |
|---|
| 464 |
|
|---|
| 465 |
unsigned char uchHeight; |
|---|
| 466 |
} AVLRGCPTRNODECORE, *PAVLRGCPTRNODECORE; |
|---|
| 467 |
|
|---|
| 468 |
|
|---|
| 469 |
typedef PAVLRGCPTRNODECORE AVLRGCPTRTREE; |
|---|
| 470 |
|
|---|
| 471 |
typedef AVLRGCPTRTREE *PAVLRGCPTRTREE; |
|---|
| 472 |
|
|---|
| 473 |
|
|---|
| 474 |
|
|---|
| 475 |
typedef AVLRGCPTRTREE *PPAVLRGCPTRNODECORE; |
|---|
| 476 |
|
|---|
| 477 |
|
|---|
| 478 |
typedef DECLCALLBACK(int) AVLRGCPTRCALLBACK(PAVLRGCPTRNODECORE pNode, void *pvUser); |
|---|
| 479 |
|
|---|
| 480 |
typedef AVLRGCPTRCALLBACK *PAVLRGCPTRCALLBACK; |
|---|
| 481 |
|
|---|
| 482 |
RTDECL(bool) RTAvlrGCPtrInsert( PAVLRGCPTRTREE pTree, PAVLRGCPTRNODECORE pNode); |
|---|
| 483 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrRemove( PAVLRGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 484 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrGet( PAVLRGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 485 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrGetBestFit( PAVLRGCPTRTREE pTree, RTGCPTR Key, bool fAbove); |
|---|
| 486 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrRangeGet( PAVLRGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 487 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrRangeRemove( PAVLRGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 488 |
RTDECL(int) RTAvlrGCPtrDoWithAll( PAVLRGCPTRTREE pTree, int fFromLeft, PAVLRGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 489 |
RTDECL(int) RTAvlrGCPtrDestroy( PAVLRGCPTRTREE pTree, PAVLRGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 490 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrGetRoot( PAVLRGCPTRTREE pTree); |
|---|
| 491 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrGetLeft( PAVLRGCPTRNODECORE pNode); |
|---|
| 492 |
RTDECL(PAVLRGCPTRNODECORE) RTAvlrGCPtrGetRight( PAVLRGCPTRNODECORE pNode); |
|---|
| 493 |
|
|---|
| 494 |
|
|---|
| 495 |
|
|---|
| 496 |
|
|---|
| 497 |
|
|---|
| 498 |
|
|---|
| 499 |
|
|---|
| 500 |
|
|---|
| 501 |
|
|---|
| 502 |
|
|---|
| 503 |
|
|---|
| 504 |
typedef int32_t AVLROGCPTR; |
|---|
| 505 |
|
|---|
| 506 |
|
|---|
| 507 |
|
|---|
| 508 |
|
|---|
| 509 |
typedef struct _AVLROGCPtrNodeCore |
|---|
| 510 |
{ |
|---|
| 511 |
|
|---|
| 512 |
RTGCPTR Key; |
|---|
| 513 |
|
|---|
| 514 |
RTGCPTR KeyLast; |
|---|
| 515 |
|
|---|
| 516 |
AVLROGCPTR pLeft; |
|---|
| 517 |
|
|---|
| 518 |
AVLROGCPTR pRight; |
|---|
| 519 |
|
|---|
| 520 |
unsigned char uchHeight; |
|---|
| 521 |
unsigned char padding[GC_ARCH_BITS == 64 ? 7 : 7]; |
|---|
| 522 |
} AVLROGCPTRNODECORE, *PAVLROGCPTRNODECORE; |
|---|
| 523 |
|
|---|
| 524 |
|
|---|
| 525 |
typedef AVLROGCPTR AVLROGCPTRTREE; |
|---|
| 526 |
|
|---|
| 527 |
typedef AVLROGCPTRTREE *PAVLROGCPTRTREE; |
|---|
| 528 |
|
|---|
| 529 |
|
|---|
| 530 |
|
|---|
| 531 |
typedef AVLROGCPTRTREE *PPAVLROGCPTRNODECORE; |
|---|
| 532 |
|
|---|
| 533 |
|
|---|
| 534 |
typedef DECLCALLBACK(int) AVLROGCPTRCALLBACK(PAVLROGCPTRNODECORE pNode, void *pvUser); |
|---|
| 535 |
|
|---|
| 536 |
typedef AVLROGCPTRCALLBACK *PAVLROGCPTRCALLBACK; |
|---|
| 537 |
|
|---|
| 538 |
RTDECL(bool) RTAvlroGCPtrInsert(PAVLROGCPTRTREE pTree, PAVLROGCPTRNODECORE pNode); |
|---|
| 539 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrRemove(PAVLROGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 540 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrGet(PAVLROGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 541 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrGetBestFit(PAVLROGCPTRTREE ppTree, RTGCPTR Key, bool fAbove); |
|---|
| 542 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrRangeGet(PAVLROGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 543 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrRangeRemove(PAVLROGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 544 |
RTDECL(int) RTAvlroGCPtrDoWithAll(PAVLROGCPTRTREE pTree, int fFromLeft, PAVLROGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 545 |
RTDECL(int) RTAvlroGCPtrDestroy(PAVLROGCPTRTREE pTree, PAVLROGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 546 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrGetRoot(PAVLROGCPTRTREE pTree); |
|---|
| 547 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrGetLeft(PAVLROGCPTRNODECORE pNode); |
|---|
| 548 |
RTDECL(PAVLROGCPTRNODECORE) RTAvlroGCPtrGetRight(PAVLROGCPTRNODECORE pNode); |
|---|
| 549 |
|
|---|
| 550 |
|
|---|
| 551 |
|
|---|
| 552 |
|
|---|
| 553 |
|
|---|
| 554 |
|
|---|
| 555 |
|
|---|
| 556 |
|
|---|
| 557 |
|
|---|
| 558 |
|
|---|
| 559 |
|
|---|
| 560 |
typedef int32_t AVLROOGCPTR; |
|---|
| 561 |
|
|---|
| 562 |
|
|---|
| 563 |
|
|---|
| 564 |
|
|---|
| 565 |
typedef struct _AVLROOGCPtrNodeCore |
|---|
| 566 |
{ |
|---|
| 567 |
|
|---|
| 568 |
RTGCPTR Key; |
|---|
| 569 |
|
|---|
| 570 |
RTGCPTR KeyLast; |
|---|
| 571 |
|
|---|
| 572 |
AVLROOGCPTR pLeft; |
|---|
| 573 |
|
|---|
| 574 |
AVLROOGCPTR pRight; |
|---|
| 575 |
|
|---|
| 576 |
AVLROOGCPTR pList; |
|---|
| 577 |
|
|---|
| 578 |
unsigned char uchHeight; |
|---|
| 579 |
} AVLROOGCPTRNODECORE, *PAVLROOGCPTRNODECORE; |
|---|
| 580 |
|
|---|
| 581 |
|
|---|
| 582 |
typedef AVLROOGCPTR AVLROOGCPTRTREE; |
|---|
| 583 |
|
|---|
| 584 |
typedef AVLROOGCPTRTREE *PAVLROOGCPTRTREE; |
|---|
| 585 |
|
|---|
| 586 |
|
|---|
| 587 |
|
|---|
| 588 |
typedef AVLROOGCPTRTREE *PPAVLROOGCPTRNODECORE; |
|---|
| 589 |
|
|---|
| 590 |
|
|---|
| 591 |
typedef DECLCALLBACK(int) AVLROOGCPTRCALLBACK(PAVLROOGCPTRNODECORE pNode, void *pvUser); |
|---|
| 592 |
|
|---|
| 593 |
typedef AVLROOGCPTRCALLBACK *PAVLROOGCPTRCALLBACK; |
|---|
| 594 |
|
|---|
| 595 |
RTDECL(bool) RTAvlrooGCPtrInsert(PAVLROOGCPTRTREE pTree, PAVLROOGCPTRNODECORE pNode); |
|---|
| 596 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrRemove(PAVLROOGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 597 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrGet(PAVLROOGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 598 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrGetBestFit(PAVLROOGCPTRTREE ppTree, RTGCPTR Key, bool fAbove); |
|---|
| 599 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrRangeGet(PAVLROOGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 600 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrRangeRemove(PAVLROOGCPTRTREE pTree, RTGCPTR Key); |
|---|
| 601 |
RTDECL(int) RTAvlrooGCPtrDoWithAll(PAVLROOGCPTRTREE pTree, int fFromLeft, PAVLROOGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 602 |
RTDECL(int) RTAvlrooGCPtrDestroy(PAVLROOGCPTRTREE pTree, PAVLROOGCPTRCALLBACK pfnCallBack, void *pvParam); |
|---|
| 603 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrGetRoot(PAVLROOGCPTRTREE pTree); |
|---|
| 604 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrGetLeft(PAVLROOGCPTRNODECORE pNode); |
|---|
| 605 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrGetRight(PAVLROOGCPTRNODECORE pNode); |
|---|
| 606 |
RTDECL(PAVLROOGCPTRNODECORE) RTAvlrooGCPtrGetNextEqual(PAVLROOGCPTRNODECORE pNode); |
|---|
| 607 |
|
|---|
| 608 |
|
|---|
| 609 |
|
|---|
| 610 |
|
|---|
| 611 |
|
|---|
| 612 |
|
|---|
| 613 |
|
|---|
| 614 |
|
|---|
| 615 |
|
|---|
| 616 |
|
|---|
| 617 |
|
|---|
| 618 |
typedef int32_t AVLOHCPHYS; |
|---|
| 619 |
|
|---|
| 620 |
|
|---|
| 621 |
|
|---|
| 622 |
|
|---|
| 623 |
typedef struct _AVLOHCPhysNodeCore |
|---|
| 624 |
{ |
|---|
| 625 |
|
|---|
| 626 |
RTHCPHYS Key; |
|---|
| 627 |
|
|---|
| 628 |
AVLOHCPHYS pLeft; |
|---|
| 629 |
|
|---|
| 630 |
AVLOHCPHYS pRight; |
|---|
| 631 |
|
|---|
| 632 |
unsigned char uchHeight; |
|---|
| 633 |
#if HC_ARCH_BITS == 64 || GC_ARCH_BITS == 64 |
|---|
| 634 |
unsigned char Padding[7]; |
|---|
| 635 |
#endif |
|---|
| 636 |
} AVLOHCPHYSNODECORE, *PAVLOHCPHYSNODECORE; |
|---|
| 637 |
|
|---|
| 638 |
|
|---|
| 639 |
typedef AVLOHCPHYS AVLOHCPHYSTREE; |
|---|
| 640 |
|
|---|
| 641 |
typedef AVLOHCPHYSTREE *PAVLOHCPHYSTREE; |
|---|
| 642 |
|
|---|
| 643 |
|
|---|
| 644 |
|
|---|
| 645 |
typedef AVLOHCPHYSTREE *PPAVLOHCPHYSNODECORE; |
|---|
| 646 |
|
|---|
| 647 |
|
|---|
| 648 |
typedef DECLCALLBACK(int) AVLOHCPHYSCALLBACK(PAVLOHCPHYSNODECORE pNode, void *pvUser); |
|---|
| 649 |
|
|---|
| 650 |
typedef AVLOHCPHYSCALLBACK *PAVLOHCPHYSCALLBACK; |
|---|
| 651 |
|
|---|
| 652 |
RTDECL(bool) RTAvloHCPhysInsert(PAVLOHCPHYSTREE pTree, PAVLOHCPHYSNODECORE pNode); |
|---|
| 653 |
RTDECL(PAVLOHCPHYSNODECORE) RTAvloHCPhysRemove(PAVLOHCPHYSTREE pTree, RTHCPHYS Key); |
|---|
| 654 |
RTDECL(PAVLOHCPHYSNODECORE) RTAvloHCPhysGet(PAVLOHCPHYSTREE pTree, RTHCPHYS Key); |
|---|
| 655 |
RTDECL(int) RTAvloHCPhysDoWithAll(PAVLOHCPHYSTREE pTree, int fFromLeft, PAVLOHCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 656 |
RTDECL(PAVLOHCPHYSNODECORE) RTAvloHCPhysGetBestFit(PAVLOHCPHYSTREE ppTree, RTHCPHYS Key, bool fAbove); |
|---|
| 657 |
RTDECL(PAVLOHCPHYSNODECORE) RTAvloHCPhysRemoveBestFit(PAVLOHCPHYSTREE ppTree, RTHCPHYS Key, bool fAbove); |
|---|
| 658 |
RTDECL(int) RTAvloHCPhysDestroy(PAVLOHCPHYSTREE pTree, PAVLOHCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 659 |
|
|---|
| 660 |
|
|---|
| 661 |
|
|---|
| 662 |
|
|---|
| 663 |
|
|---|
| 664 |
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 |
|
|---|
| 668 |
|
|---|
| 669 |
|
|---|
| 670 |
|
|---|
| 671 |
typedef int32_t AVLOIOPORTPTR; |
|---|
| 672 |
|
|---|
| 673 |
|
|---|
| 674 |
|
|---|
| 675 |
|
|---|
| 676 |
typedef struct _AVLOIOPortNodeCore |
|---|
| 677 |
{ |
|---|
| 678 |
|
|---|
| 679 |
AVLOIOPORTPTR pLeft; |
|---|
| 680 |
|
|---|
| 681 |
AVLOIOPORTPTR pRight; |
|---|
| 682 |
|
|---|
| 683 |
RTIOPORT Key; |
|---|
| 684 |
|
|---|
| 685 |
unsigned char uchHeight; |
|---|
| 686 |
} AVLOIOPORTNODECORE, *PAVLOIOPORTNODECORE; |
|---|
| 687 |
|
|---|
| 688 |
|
|---|
| 689 |
typedef AVLOIOPORTPTR AVLOIOPORTTREE; |
|---|
| 690 |
|
|---|
| 691 |
typedef AVLOIOPORTTREE *PAVLOIOPORTTREE; |
|---|
| 692 |
|
|---|
| 693 |
|
|---|
| 694 |
|
|---|
| 695 |
typedef AVLOIOPORTTREE *PPAVLOIOPORTNODECORE; |
|---|
| 696 |
|
|---|
| 697 |
|
|---|
| 698 |
typedef DECLCALLBACK(int) AVLOIOPORTCALLBACK(PAVLOIOPORTNODECORE pNode, void *pvUser); |
|---|
| 699 |
|
|---|
| 700 |
typedef AVLOIOPORTCALLBACK *PAVLOIOPORTCALLBACK; |
|---|
| 701 |
|
|---|
| 702 |
RTDECL(bool) RTAvloIOPortInsert(PAVLOIOPORTTREE pTree, PAVLOIOPORTNODECORE pNode); |
|---|
| 703 |
RTDECL(PAVLOIOPORTNODECORE) RTAvloIOPortRemove(PAVLOIOPORTTREE pTree, RTIOPORT Key); |
|---|
| 704 |
RTDECL(PAVLOIOPORTNODECORE) RTAvloIOPortGet(PAVLOIOPORTTREE pTree, RTIOPORT Key); |
|---|
| 705 |
RTDECL(int) RTAvloIOPortDoWithAll(PAVLOIOPORTTREE pTree, int fFromLeft, PAVLOIOPORTCALLBACK pfnCallBack, void *pvParam); |
|---|
| 706 |
RTDECL(int) RTAvloIOPortDestroy(PAVLOIOPORTTREE pTree, PAVLOIOPORTCALLBACK pfnCallBack, void *pvParam); |
|---|
| 707 |
|
|---|
| 708 |
|
|---|
| 709 |
|
|---|
| 710 |
|
|---|
| 711 |
|
|---|
| 712 |
|
|---|
| 713 |
|
|---|
| 714 |
|
|---|
| 715 |
|
|---|
| 716 |
|
|---|
| 717 |
|
|---|
| 718 |
typedef int32_t AVLROIOPORTPTR; |
|---|
| 719 |
|
|---|
| 720 |
|
|---|
| 721 |
|
|---|
| 722 |
|
|---|
| 723 |
typedef struct _AVLROIOPortNodeCore |
|---|
| 724 |
{ |
|---|
| 725 |
|
|---|
| 726 |
RTIOPORT Key; |
|---|
| 727 |
|
|---|
| 728 |
RTIOPORT KeyLast; |
|---|
| 729 |
|
|---|
| 730 |
AVLROIOPORTPTR pLeft; |
|---|
| 731 |
|
|---|
| 732 |
AVLROIOPORTPTR pRight; |
|---|
| 733 |
|
|---|
| 734 |
unsigned char uchHeight; |
|---|
| 735 |
} AVLROIOPORTNODECORE, *PAVLROIOPORTNODECORE; |
|---|
| 736 |
|
|---|
| 737 |
|
|---|
| 738 |
typedef AVLROIOPORTPTR AVLROIOPORTTREE; |
|---|
| 739 |
|
|---|
| 740 |
typedef AVLROIOPORTTREE *PAVLROIOPORTTREE; |
|---|
| 741 |
|
|---|
| 742 |
|
|---|
| 743 |
|
|---|
| 744 |
typedef AVLROIOPORTTREE *PPAVLROIOPORTNODECORE; |
|---|
| 745 |
|
|---|
| 746 |
|
|---|
| 747 |
typedef DECLCALLBACK(int) AVLROIOPORTCALLBACK(PAVLROIOPORTNODECORE pNode, void *pvUser); |
|---|
| 748 |
|
|---|
| 749 |
typedef AVLROIOPORTCALLBACK *PAVLROIOPORTCALLBACK; |
|---|
| 750 |
|
|---|
| 751 |
RTDECL(bool) RTAvlroIOPortInsert(PAVLROIOPORTTREE pTree, PAVLROIOPORTNODECORE pNode); |
|---|
| 752 |
RTDECL(PAVLROIOPORTNODECORE) RTAvlroIOPortRemove(PAVLROIOPORTTREE pTree, RTIOPORT Key); |
|---|
| 753 |
RTDECL(PAVLROIOPORTNODECORE) RTAvlroIOPortGet(PAVLROIOPORTTREE pTree, RTIOPORT Key); |
|---|
| 754 |
RTDECL(PAVLROIOPORTNODECORE) RTAvlroIOPortRangeGet(PAVLROIOPORTTREE pTree, RTIOPORT Key); |
|---|
| 755 |
RTDECL(PAVLROIOPORTNODECORE) RTAvlroIOPortRangeRemove(PAVLROIOPORTTREE pTree, RTIOPORT Key); |
|---|
| 756 |
RTDECL(int) RTAvlroIOPortDoWithAll(PAVLROIOPORTTREE pTree, int fFromLeft, PAVLROIOPORTCALLBACK pfnCallBack, void *pvParam); |
|---|
| 757 |
RTDECL(int) RTAvlroIOPortDestroy(PAVLROIOPORTTREE pTree, PAVLROIOPORTCALLBACK pfnCallBack, void *pvParam); |
|---|
| 758 |
|
|---|
| 759 |
|
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 |
|
|---|
| 763 |
|
|---|
| 764 |
|
|---|
| 765 |
|
|---|
| 766 |
|
|---|
| 767 |
|
|---|
| 768 |
|
|---|
| 769 |
typedef struct _AVLHCPhysNodeCore *AVLHCPHYSPTR; |
|---|
| 770 |
|
|---|
| 771 |
|
|---|
| 772 |
|
|---|
| 773 |
|
|---|
| 774 |
typedef struct _AVLHCPhysNodeCore |
|---|
| 775 |
{ |
|---|
| 776 |
|
|---|
| 777 |
AVLHCPHYSPTR pLeft; |
|---|
| 778 |
|
|---|
| 779 |
AVLHCPHYSPTR pRight; |
|---|
| 780 |
|
|---|
| 781 |
RTHCPHYS Key; |
|---|
| 782 |
|
|---|
| 783 |
unsigned char uchHeight; |
|---|
| 784 |
} AVLHCPHYSNODECORE, *PAVLHCPHYSNODECORE; |
|---|
| 785 |
|
|---|
| 786 |
|
|---|
| 787 |
typedef AVLHCPHYSPTR AVLHCPHYSTREE; |
|---|
| 788 |
|
|---|
| 789 |
typedef AVLHCPHYSTREE *PAVLHCPHYSTREE; |
|---|
| 790 |
|
|---|
| 791 |
|
|---|
| 792 |
|
|---|
| 793 |
typedef AVLHCPHYSTREE *PPAVLHCPHYSNODECORE; |
|---|
| 794 |
|
|---|
| 795 |
|
|---|
| 796 |
typedef DECLCALLBACK(int) AVLHCPHYSCALLBACK(PAVLHCPHYSNODECORE pNode, void *pvUser); |
|---|
| 797 |
|
|---|
| 798 |
typedef AVLHCPHYSCALLBACK *PAVLHCPHYSCALLBACK; |
|---|
| 799 |
|
|---|
| 800 |
RTDECL(bool) RTAvlHCPhysInsert(PAVLHCPHYSTREE pTree, PAVLHCPHYSNODECORE pNode); |
|---|
| 801 |
RTDECL(PAVLHCPHYSNODECORE) RTAvlHCPhysRemove(PAVLHCPHYSTREE pTree, RTHCPHYS Key); |
|---|
| 802 |
RTDECL(PAVLHCPHYSNODECORE) RTAvlHCPhysGet(PAVLHCPHYSTREE pTree, RTHCPHYS Key); |
|---|
| 803 |
RTDECL(int) RTAvlHCPhysDoWithAll(PAVLHCPHYSTREE pTree, int fFromLeft, PAVLHCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 804 |
RTDECL(PAVLHCPHYSNODECORE) RTAvlHCPhysGetBestFit(PAVLHCPHYSTREE ppTree, RTHCPHYS Key, bool fAbove); |
|---|
| 805 |
RTDECL(PAVLHCPHYSNODECORE) RTAvlHCPhysRemoveBestFit(PAVLHCPHYSTREE ppTree, RTHCPHYS Key, bool fAbove); |
|---|
| 806 |
RTDECL(int) RTAvlHCPhysDestroy(PAVLHCPHYSTREE pTree, PAVLHCPHYSCALLBACK pfnCallBack, void *pvParam); |
|---|
| 807 |
|
|---|
| 808 |
|
|---|
| 809 |
|
|---|
| 810 |
|
|---|
| 811 |
|
|---|
| 812 |
|
|---|
| 813 |
__END_DECLS |
|---|
| 814 |
|
|---|
| 815 |
#endif |
|---|
| 816 |
|
|---|