[fpc-pascal] Tree data structure

Sven Barth pascaldragon at googlemail.com
Sat Jun 1 15:58:15 CEST 2013


On 01.06.2013 15:51, Xiangrong Fang wrote:
> Hello,
>
> Is there any built-in general Tree data structure in FPC/Lazarus 
> library?  "General" means:
>
> 1) it is a "generic" class or its "node" is a pointer which is 
> suitable for general use
>
> 2) it is NOT balanced tree or binary tree, but just like a file system 
> tree.
>
> In another word, I am looking for a lightweight, pure "data" class 
> that is TTreeView without a GUI binding.
If you are using 2.7.1 you can take a look at the gtree unit from 
fcl-stl: 
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-stl/src/gtree.pp?revision=23453&view=markup

Regards,
Sven



More information about the fpc-pascal mailing list