Scippy

SoPlex

Sequential object-oriented simPlex

cring.h File Reference

Go to the source code of this file.

Macros

#define initDR(ring)   ((ring).prev = (ring).next = &(ring))
 
#define init2DR(elem, ring)
 
#define removeDR(ring)
 

Macro Definition Documentation

◆ init2DR

#define init2DR (   elem,
  ring 
)
Value:
{ \
(elem).next = (ring).next; \
(elem).next->prev = &(elem); \
(elem).prev = &(ring); \
(ring).next = &(elem); \
}

Definition at line 25 of file cring.h.

◆ initDR

#define initDR (   ring)    ((ring).prev = (ring).next = &(ring))

Definition at line 23 of file cring.h.

◆ removeDR

#define removeDR (   ring)
Value:
{ \
(ring).next->prev = (ring).prev; \
(ring).prev->next = (ring).next; \
}

Definition at line 33 of file cring.h.