Re: [lazarus] Class to store pointer values indexed by pointers
Mattias Gaertner wrote: On Fri, 07 Dec 2007 22:52:29 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's another class that comes with fpc/lazarus? unit avglvltree TPointerToPointerTree BTW: i found the TAVLTree/AVL_Tree unit in fpc code base. It's similar to TAvgLvlTree/AvgLvlTree found in LCL (even the author is the same = Mattias) Is there any reason to not use the fpc (TAVLTree) version like being buggy or with less performance? I would prefer using fpc to avoid LCL dependency. Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Class to store pointer values indexed by pointers
On Sat, 08 Dec 2007 09:53:53 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Fri, 07 Dec 2007 22:52:29 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's another class that comes with fpc/lazarus? unit avglvltree TPointerToPointerTree BTW: i found the TAVLTree/AVL_Tree unit in fpc code base. It's similar to TAvgLvlTree/AvgLvlTree found in LCL (even the author is the same = Mattias) Is there any reason to not use the fpc (TAVLTree) version like being buggy or with less performance? No. The LCL version has just a few more properties, like a compare method and some nice to have wrapper classes. Maybe the LCL goodies code should be copied to the FCL version. I would prefer using fpc to avoid LCL dependency. No problem. Just copy the TPointerToPointerTree code and adjust it to use the AVL_Tree unit. I hope that someday the fpc generics are good enough to create a generic AVL tree. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Class to store pointer values indexed by pointers
Hi, There is a licencing difference : fpc/AVL_Tree is GPL 2 ( or above ) while lcl/AvgLvlTree is _modified_ LGPL . Is there a reason for this ? Best regards. 2007/12/8, Mattias Gaertner [EMAIL PROTECTED]: On Sat, 08 Dec 2007 09:53:53 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Fri, 07 Dec 2007 22:52:29 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's another class that comes with fpc/lazarus? unit avglvltree TPointerToPointerTree BTW: i found the TAVLTree/AVL_Tree unit in fpc code base. It's similar to TAvgLvlTree/AvgLvlTree found in LCL (even the author is the same = Mattias) Is there any reason to not use the fpc (TAVLTree) version like being buggy or with less performance? No. The LCL version has just a few more properties, like a compare method and some nice to have wrapper classes. Maybe the LCL goodies code should be copied to the FCL version. I would prefer using fpc to avoid LCL dependency. No problem. Just copy the TPointerToPointerTree code and adjust it to use the AVL_Tree unit. I hope that someday the fpc generics are good enough to create a generic AVL tree. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Inoussa O. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Class to store pointer values indexed by pointers
On Fri, 07 Dec 2007 22:52:29 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's another class that comes with fpc/lazarus? unit avglvltree TPointerToPointerTree Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Class to store pointer values indexed by pointers
I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's another class that comes with fpc/lazarus? Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Class to store pointer values indexed by pointers
Mattias Gaertner wrote: On Fri, 07 Dec 2007 22:52:29 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's another class that comes with fpc/lazarus? unit avglvltree TPointerToPointerTree Many thanks. Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives