VirtualBox

Ignore:
Timestamp:
Jun 21, 2009 2:09:28 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48856
Message:

iprt: More RTDbg coding; added a new AVL tree for RTUINPTR.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/table/avluintptr.cpp

    • Property svn:keywords changed from Id to Author Date Id Revision
    r20739 r20740  
    11/* $Id$ */
    22/** @file
    3  * IPRT - AVL tree, RTUINTPTR, range, unique keys.
     3 * IPRT - AVL tree, RTUINTPTR, unique keys.
    44 */
    55
     
    3939 * AVL configuration.
    4040 */
    41 #define KAVL_FN(a)                  RTAvlrUIntPtr##a
     41#define KAVL_FN(a)                  RTAvlUIntPtr##a
    4242#define KAVL_MAX_STACK              27  /* Up to 2^24 nodes. */
    4343#define KAVL_CHECK_FOR_EQUAL_INSERT 1   /* No duplicate keys! */
    44 #define KAVLNODECORE                AVLRUINTPTRNODECORE
    45 #define PKAVLNODECORE               PAVLRUINTPTRNODECORE
    46 #define PPKAVLNODECORE              PPAVLRUINTPTRNODECORE
     44#define KAVLNODECORE                AVLUINTPTRNODECORE
     45#define PKAVLNODECORE               PAVLUINTPTRNODECORE
     46#define PPKAVLNODECORE              PPAVLUINTPTRNODECORE
    4747#define KAVLKEY                     RTUINTPTR
    4848#define PKAVLKEY                    PRTUINTPTR
    49 #define KAVLENUMDATA                AVLRUINTPTRENUMDATA
    50 #define PKAVLENUMDATA               PAVLRUINTPTRENUMDATA
    51 #define PKAVLCALLBACK               PAVLRUINTPTRCALLBACK
    52 #define KAVL_RANGE                  1
     49#define KAVLENUMDATA                AVLUINTPTRENUMDATA
     50#define PKAVLENUMDATA               PAVLUINTPTRENUMDATA
     51#define PKAVLCALLBACK               PAVLUINTPTRCALLBACK
    5352
    5453
     
    5958#define KAVL_E( key1, key2)         ( (RTGCUINTPTR)(key1) == (RTGCUINTPTR)(key2) )
    6059#define KAVL_NE(key1, key2)         ( (RTGCUINTPTR)(key1) != (RTGCUINTPTR)(key2) )
    61 #define KAVL_R_IS_IDENTICAL(key1B, key2B, key1E, key2E)     ( (RTGCUINTPTR)(key1B) == (RTGCUINTPTR)(key2B) && (RTGCUINTPTR)(key1E) == (RTGCUINTPTR)(key2E) )
    62 #define KAVL_R_IS_INTERSECTING(key1B, key2B, key1E, key2E)  ( (RTGCUINTPTR)(key1B) <= (RTGCUINTPTR)(key2E) && (RTGCUINTPTR)(key1E) >= (RTGCUINTPTR)(key2B) )
    63 #define KAVL_R_IS_IN_RANGE(key1B, key1E, key2)              KAVL_R_IS_INTERSECTING(key1B, key2, key1E, key2)
    64 
    6560
    6661
     
    7974#include "avl_Base.cpp.h"
    8075#include "avl_Get.cpp.h"
    81 #include "avl_Range.cpp.h"
    8276#include "avl_DoWithAll.cpp.h"
    8377#include "avl_Destroy.cpp.h"
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette