GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-112dd97adf
calc.h File Reference
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/defs/calc.h>
Include dependency graph for calc.h:

Go to the source code of this file.

Data Structures

struct  func_desc
 

Macros

#define IS_NULL_C(x)   (Rast_is_c_null_value((x)))
 
#define IS_NULL_F(x)   (Rast_is_f_null_value((x)))
 
#define IS_NULL_D(x)   (Rast_is_d_null_value((x)))
 
#define SET_NULL_C(x)   (Rast_set_c_null_value((x), 1))
 
#define SET_NULL_F(x)   (Rast_set_f_null_value((x), 1))
 
#define SET_NULL_D(x)   (Rast_set_d_null_value((x), 1))
 

Typedefs

typedef int func_t(int argc, const int *argt, void **args)
 
typedef int args_t(int argc, int *argt)
 
typedef struct func_desc func_desc
 

Enumerations

enum  {
  E_ARG_LO = 1 , E_ARG_HI = 2 , E_ARG_TYPE = 3 , E_RES_TYPE = 4 ,
  E_INV_TYPE = 5 , E_ARG_NUM = 6 , E_WTF = 99
}
 

Variables

volatile int floating_point_exception
 
volatile int floating_point_exception_occurred
 
int columns
 
func_desc calc_func_descs []
 

Macro Definition Documentation

◆ IS_NULL_C

#define IS_NULL_C (   x)    (Rast_is_c_null_value((x)))

Definition at line 26 of file calc.h.

◆ IS_NULL_D

#define IS_NULL_D (   x)    (Rast_is_d_null_value((x)))

Definition at line 28 of file calc.h.

◆ IS_NULL_F

#define IS_NULL_F (   x)    (Rast_is_f_null_value((x)))

Definition at line 27 of file calc.h.

◆ SET_NULL_C

#define SET_NULL_C (   x)    (Rast_set_c_null_value((x), 1))

Definition at line 30 of file calc.h.

◆ SET_NULL_D

#define SET_NULL_D (   x)    (Rast_set_d_null_value((x), 1))

Definition at line 32 of file calc.h.

◆ SET_NULL_F

#define SET_NULL_F (   x)    (Rast_set_f_null_value((x), 1))

Definition at line 31 of file calc.h.

Typedef Documentation

◆ args_t

typedef int args_t(int argc, int *argt)

Definition at line 8 of file calc.h.

◆ func_desc

typedef struct func_desc func_desc

◆ func_t

typedef int func_t(int argc, const int *argt, void **args)

Definition at line 7 of file calc.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
E_ARG_LO 
E_ARG_HI 
E_ARG_TYPE 
E_RES_TYPE 
E_INV_TYPE 
E_ARG_NUM 
E_WTF 

Definition at line 10 of file calc.h.

Variable Documentation

◆ calc_func_descs

func_desc calc_func_descs[]
extern

Definition at line 3 of file function.c.

◆ columns

◆ floating_point_exception

volatile int floating_point_exception
extern

Definition at line 8 of file calc.c.

Referenced by f_acos(), f_asin(), f_atan(), f_cos(), f_div(), f_exp(), f_log(), f_mod(), f_sin(), f_sqrt(), and f_tan().

◆ floating_point_exception_occurred

volatile int floating_point_exception_occurred
extern

Definition at line 9 of file calc.c.