23 #ifndef _LAX_LINKEDLIST_H
24 #define _LAX_LINKEDLIST_H
38 T *next_node,*prev_node;
42 virtual T *disconnectNode();
58 node() { next=prev=NULL; data=NULL; dataislocal=0; }
59 node(T *nd,
char istobelocal) {next=prev=NULL; data=nd; dataislocal=istobelocal; }
63 PtrList() { num=0; first=NULL; }
67 virtual int howmany() {
return num; }
68 virtual int push(T *nd,
char local=1,
int where=-1);
69 virtual int pop(T *&popped,
int which=-1,
char *local=NULL);
70 virtual T *
pop(
int which=-1);
72 virtual int remove(
int which=-1);
79 #ifndef LAX_DONT_INCLUDE_LINKEDLIST_CC
80 #include <lax/linkedlist.cc>