Tree-like Datastructure (for use with VirtualTreeview)

前端 未结 6 474
遥遥无期
遥遥无期 2020-12-15 14:20

I have come to the point where I need to stop storing my data in a VCL component, and have an \"underlying datastructure\", as Mr. Rob Kennedy suggested.

First of al

6条回答
  •  隐瞒了意图╮
    2020-12-15 15:19

    If I understand correctly, you need a datastructure for your tree. Each individual node requires a record to hold its data. But the underlying heirarchy can be managed in a few different ways. Im guessing this is all to be managed in some sort of database - This has already been talked about on this site, so i will point you to:

    Implementing a hierarchical data structure in a database

    and here:

    What is the most efficient/elegant way to parse a flat table into a tree?

    and here:

    SQL - How to store and navigate hierarchies?

    Nested Set Model:

    http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/

提交回复
热议问题