49 void remove(
int val
TM_ARG);
93 while (curr != NULL) {
101 if ((p->
m_next) != curr) {
113 while (curr != NULL) {
121 if ((n->
m_prev) != curr) {
141 while (curr != NULL) {
151 Node* before =
const_cast<Node*
>(prev);
152 Node* after =
const_cast<Node*
>(curr);
156 between->
m_val = val;
173 while (curr != NULL) {
178 found = ((curr != NULL) && (
TM_READ(curr->
m_val) == val));
191 while (curr != NULL) {
194 Node* before =
const_cast<Node*
>(prev);
200 TM_FREE(const_cast<Node*>(curr));
220 while (curr !=
tail) {
233 while (curr !=
head) {
248 for (
int i = 0; i <
start; i++) {
254 while (curr !=
tail) {
276 for (
int i = 0; i <
start; i++) {
282 while (curr !=
head) {
300 int startpoint = chunk_num * chunk_size;
303 Node* chunk_start(NULL);
309 while (curr !=
tail) {
311 if (ctr++ == startpoint)
312 chunk_start =
const_cast<Node*
>(curr);
320 if (chunk_start != NULL) {
322 Node* wr(chunk_start);
324 for (
int i = 0; i < chunk_size; i++) {
326 if (chunk_start ==
tail)
335 #endif // DLIST_HPP__
#define TM_CALLABLE
Definition: cxxtm.hpp:32
#define TM_ARG_ALONE
Definition: cxxtm.hpp:41
#define TM_WRITE(x, y)
Definition: cxxtm.hpp:46
static void * start(jsw_avltrav_t *trav, jsw_avltree_t *tree, long dir)
Definition: avltree.c:681
Node(int val)
Definition: DList.hpp:28
TM_CALLABLE void remove(int val TM_ARG)
Definition: DList.hpp:185
TM_CALLABLE void increment_forward_pattern(int start, int seq TM_ARG)
Definition: DList.hpp:242
static const int cw
Definition: point.hpp:23
#define TM_ARG
Definition: cxxtm.hpp:40
Node * head
Definition: DList.hpp:34
TM_CALLABLE void increment_backward_pattern(int start, int seq TM_ARG)
Definition: DList.hpp:270
TM_CALLABLE bool lookup(int val TM_ARG) const
Definition: DList.hpp:167
#define TM_READ(x)
Definition: cxxtm.hpp:45
TM_CALLABLE void increment_backward(TM_ARG_ALONE)
Definition: DList.hpp:228
Node * tail
Definition: DList.hpp:35
DList()
Definition: DList.hpp:78
TM_CALLABLE void increment_chunk(int chunk_num, int chunk_size TM_ARG)
Definition: DList.hpp:298
#define TM_ALLOC
Definition: library.hpp:294
Node * m_next
Definition: DList.hpp:25
bool isSane() const
Definition: DList.hpp:85
TM_CALLABLE void insert(int val TM_ARG)
Definition: DList.hpp:135
Node * m_prev
Definition: DList.hpp:24
#define TM_FREE
Definition: library.hpp:295
TM_CALLABLE void increment_forward(TM_ARG_ALONE)
Definition: DList.hpp:215
int m_val
Definition: DList.hpp:23