GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
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

◆ IS_NULL_D

◆ IS_NULL_F

◆ SET_NULL_C

◆ SET_NULL_D

◆ SET_NULL_F

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

Typedef Documentation

◆ args_t

typedef int args_t(int argc, int *argt)

Definition at line 9 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 8 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 11 of file calc.h.

Variable Documentation

◆ calc_func_descs

func_desc calc_func_descs[]

Definition at line 4 of file function.c.

◆ columns

◆ floating_point_exception

volatile int floating_point_exception

Definition at line 9 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

Definition at line 10 of file calc.c.