/dmagick/c/splayTree.d
D | 37 lines | 27 code | 10 blank | 0 comment | 1 complexity | 731bb173e9616786a4ea4b4f902e922b MD5 | raw file
1module dmagick.c.splayTree; 2 3import dmagick.c.magickType; 4import dmagick.c.magickVersion; 5 6extern(C) 7{ 8 struct SplayTreeInfo {} 9 10 MagickBooleanType AddValueToSplayTree(SplayTreeInfo*, const(void)*, const(void)*); 11 MagickBooleanType DeleteNodeByValueFromSplayTree(SplayTreeInfo*, const(void)*); 12 MagickBooleanType DeleteNodeFromSplayTree(SplayTreeInfo*, const(void)*); 13 14 const(void)* GetNextKeyInSplayTree(SplayTreeInfo*); 15 const(void)* GetNextValueInSplayTree(SplayTreeInfo*); 16 17 static if ( MagickLibVersion >= 0x699 ) 18 { 19 const(void)* GetRootValueFromSplayTree(SplayTreeInfo*); 20 } 21 22 const(void)* GetValueFromSplayTree(SplayTreeInfo*, const(void)*); 23 24 int CompareSplayTreeString(const(void)*, const(void)*); 25 int CompareSplayTreeStringInfo(const(void)*, const(void)*); 26 27 SplayTreeInfo* CloneSplayTree(SplayTreeInfo*, void* function(void*), void* function(void*)); 28 SplayTreeInfo* DestroySplayTree(SplayTreeInfo*); 29 SplayTreeInfo* NewSplayTree(int function(const(void)*, const(void)*), void* function(void*), void* function(void*)); 30 31 size_t GetNumberOfNodesInSplayTree(const(SplayTreeInfo)*); 32 33 void* RemoveNodeByValueFromSplayTree(SplayTreeInfo*, const(void)*); 34 void* RemoveNodeFromSplayTree(SplayTreeInfo*, const(void)*); 35 void ResetSplayTree(SplayTreeInfo*); 36 void ResetSplayTreeIterator(SplayTreeInfo*); 37}