Re: Newbie



Hello.

GNode is really a simple structure with 4 pointers to nodes (parent,
first child, previous and next sibling), which allow you move inside
tree, and one pointer to user data. You can store just about anything
inside user data pointer, but most applications store pointer to some
heap-allocated structure that holds real data.

I don't think there is a sample code specifically about GNode present
anywhere, since setting-up a tree is not much more difficult than
setting up a doubly-linked list.

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]