My Project
Classes | Macros | Typedefs | Functions
empty.h File Reference

Go to the source code of this file.

Classes

struct  SquareList
 

Macros

#define foreach_empty(empty, list)    for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next)
 
#define foreach_even_empty(empty, list, parity)    for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if ((parity & empty->quadrant) == 0)
 
#define foreach_odd_empty(empty, list, parity)    for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if (parity & empty->quadrant)
 

Typedefs

typedef struct SquareList SquareList
 

Functions

static void empty_remove (SquareList *empty)
 remove an empty square from the list. More...
 
static void empty_restore (SquareList *empty)
 restore the list of empty squares More...
 

Detailed Description

List of empty squares.

Date
1998 - 2017
Author
Richard Delorme
Version
4.4

Macro Definition Documentation

◆ foreach_empty

#define foreach_empty (   empty,
  list 
)     for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next)

Loop over all empty squares

◆ foreach_even_empty

#define foreach_even_empty (   empty,
  list,
  parity 
)     for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if ((parity & empty->quadrant) == 0)

Loop over all empty squares on even quadrants

◆ foreach_odd_empty

#define foreach_odd_empty (   empty,
  list,
  parity 
)     for ((empty) = (list)->next; (empty)->next; (empty) = (empty)->next) if (parity & empty->quadrant)

Loop over all empty squares on odd quadrants

Typedef Documentation

◆ SquareList

typedef struct SquareList SquareList

double linked list of squares

Function Documentation

◆ empty_remove()

static void empty_remove ( SquareList empty)
inlinestatic

remove an empty square from the list.

Parameters
emptyempty square.

◆ empty_restore()

static void empty_restore ( SquareList empty)
inlinestatic

restore the list of empty squares

Parameters
emptyempty square.