|
Zero
0.1.0
|
Link structure for membership in any class to be put on a w_list*. More...
#include <w_list.h>
Public Member Functions | |
| w_link_t () | |
| ~w_link_t () | |
| w_link_t (const w_link_t &) | |
| w_link_t & | operator= (const w_link_t &) |
| void | attach (w_link_t *prev_link) |
| void | check () |
| w_link_t * | detach () |
| remove containing object from the list. More... | |
| w_list_base_t * | member_of () const |
| w_link_t * | next () const |
| w_link_t * | prev () const |
Private Attributes | |
| w_list_base_t * | _list |
| w_link_t * | _next |
| w_link_t * | _prev |
Friends | |
| class | w_list_base_t |
Link structure for membership in any class to be put on a w_list*.
Classes that will always be on one or more lists may contain a member of type w_link_t. This contains the next and prev pointers for putting the class instance into a doubly-linked list.
Embedding the w_link_t structures in the objects to be linked together into a list avoids heap activity for list insertion and removal.
|
inline |
|
inline |
|
inline |
| void w_link_t::attach | ( | w_link_t * | prev_link | ) |
insert object containing this link into the list of which prev_link is a member. Insert after prev_link.
|
inline |
| w_link_t * w_link_t::detach | ( | ) |
remove containing object from the list.
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
|
private |
|
private |
1.8.12