[Bf-committers] LinkLa, the abstract lLinked list.
Ton Roosendaal
ton at blender.org
Sat Oct 2 16:40:43 CEST 2004
Hi,
The Blender ListBase serves fine for this purpose too. Just construct
your own structs starting with a *next and *prev pointer, and add
anything you like to it. I add datapointers to such linked lists all
the time, but for each purpose it needs different handling (freeing,
copying), so didnt see a reason for making that general.
-Ton-
On 1 Oct 2004, at 06:45, joeedh wrote:
> To facilitate a more abstracted linked-list system, I've created a
> small set of functions to manipulate what I call lLists, which I'm
> using the store pointers to the surrounding faces and edges for each
> EditVert (which should allow me to make some more Wings3D extrusion
> functions).
>
> Essentially lLists are linked lists of a structure called lLink, which
> has *next, *prev, and *data members. It's designed to allow insertion
> of data in more then one double-linked list.
>
> However. . .is there anything already in Blender to do this? Putting
> data in multiple lists is a very useful thing, but under the current
> list system most everything can only be in one list.
>
> joeedh
> P.S.: And by the way, which include file has all the vector
> manipulation functions? Just a little hint. .
> P.P.S.: And don't ask me why, but for some reason I'm calling the
> whole thing Real LinkLa. Ehh, I guess this is what comes from having a
> cold for the last three weeks :) . I suppose BLI_LinkData or
> BLI_AbstractLink would be better.
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
------------------------------------------------------------------------
--
Ton Roosendaal Blender Foundation ton at blender.org
http://www.blender.org
More information about the Bf-committers
mailing list