#include <limits.h>
actionlist::actionlist() :
- head(NULL),
- tail(NULL),
- _size(0)
+ head(NULL),
+ tail(NULL),
+ _size(0)
{
- root.parent = NULL;
+ root.parent = NULL;
}
actionlist::~actionlist() {
} else {
//found non-null...
if (totalshift == 0)
- return reinterpret_cast<sllnode<ModelAction *> *>(((uintptr_t)ptr->children[currindex])& ACTMASK);
+ return reinterpret_cast<sllnode<ModelAction *> *>(((uintptr_t)ptr->children[currindex])& ACTMASK);
//need to increment here...
ptr = ptr->children[currindex];
increment = increment >> ALLBITS;
//see if we are the new tail
if (llnode->next != NULL)
- llnode->next->prev = llnode;
+ llnode->next->prev = llnode;
else
- tail = llnode;
+ tail = llnode;
llnodeprev->next = llnode;
} else {
//We are the begining
llnode->next = llnodeprev->next;
llnode->prev = llnodeprev;
if (llnode->next != NULL)
- llnode->next->prev = llnode;
+ llnode->next->prev = llnode;
else
- tail = llnode;
+ tail = llnode;
llnodeprev->next = llnode;
ptr->children[index] = reinterpret_cast<allnode *>(((uintptr_t) llnode) | ISACT);
}