GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
dig_macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LINE_ALIVE(p)   ((p)->type<16) /* assume DEAD are .GT. 1 << 3 */
 
#define NODE_ALIVE(p)   ((p)->alive) /* simple enuf */
 
#define AREA_LABELED(p)   ((p)->alive && (p)->att)
 
#define LINE_LABELED(p)   (LINE_ALIVE (p) && (p)->att)
 
#define AREA_ALIVE(p)   ((p)->alive)
 
#define ISLE_ALIVE(p)   ((p)->alive)
 
#define ATT_ALIVE(p)   ((p)->type<16) /* see LINE_ALIVE */
 
#define LESSER(x, y)   ((x) < (y) ? (x) : (y))
 
#define GREATER(x, y)   ((x) > (y) ? (x) : (y))
 

Macro Definition Documentation

◆ AREA_ALIVE

#define AREA_ALIVE (   p)    ((p)->alive)

Definition at line 13 of file dig_macros.h.

◆ AREA_LABELED

#define AREA_LABELED (   p)    ((p)->alive && (p)->att)

Definition at line 11 of file dig_macros.h.

◆ ATT_ALIVE

#define ATT_ALIVE (   p)    ((p)->type<16) /* see LINE_ALIVE */

Definition at line 15 of file dig_macros.h.

◆ GREATER

#define GREATER (   x,
 
)    ((x) > (y) ? (x) : (y))

Definition at line 18 of file dig_macros.h.

◆ ISLE_ALIVE

#define ISLE_ALIVE (   p)    ((p)->alive)

Definition at line 14 of file dig_macros.h.

◆ LESSER

#define LESSER (   x,
 
)    ((x) < (y) ? (x) : (y))

Definition at line 17 of file dig_macros.h.

◆ LINE_ALIVE

#define LINE_ALIVE (   p)    ((p)->type<16) /* assume DEAD are .GT. 1 << 3 */

Definition at line 9 of file dig_macros.h.

◆ LINE_LABELED

#define LINE_LABELED (   p)    (LINE_ALIVE (p) && (p)->att)

Definition at line 12 of file dig_macros.h.

◆ NODE_ALIVE

#define NODE_ALIVE (   p)    ((p)->alive) /* simple enuf */

Definition at line 10 of file dig_macros.h.