GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72274
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dig_macros.h File Reference

Macros for diglib (part of vector library. More...

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))
 

Detailed Description

Macros for diglib (part of vector library.

Definition in file dig_macros.h.

Macro Definition Documentation

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

Definition at line 13 of file dig_macros.h.

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

Definition at line 11 of file dig_macros.h.

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

Definition at line 15 of file dig_macros.h.

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

Definition at line 18 of file dig_macros.h.

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

Definition at line 14 of file dig_macros.h.

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

Definition at line 17 of file dig_macros.h.

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

Definition at line 9 of file dig_macros.h.

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

Definition at line 12 of file dig_macros.h.

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

Definition at line 10 of file dig_macros.h.