GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
Main Page
Related Pages
+
Data Structures
Data Structures
Class Hierarchy
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
z
+
Enumerations
a
c
d
e
h
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
▼
GRASS GIS 7 Programmer's Manual
Libraries
Core libraries
►
Further libraries
File structure of GRASS Location
►
Compiling and Installing GRASS Modules
Multiple-Architecture Conventions
►
Vector modules and their parameters/flags
►
GRASS Array Statistics Library
btree2 library
►
GRASS Cairo Display Driver
►
GRASS testing normality & exponentiality Library
►
GRASS Cluster analysis statistics Library
►
GRASS DataBase Management Interface
►
GRASS Display Library
►
CCMATH mathematics library source code
►
GRASS GIS General Library (aka GIS Library)
►
GRASS Numerical math interface
►
GRASS Partial differential equations Library (GPDE)
►
GRASS Imagery Library
►
GRASS Data Elements Manage Library
►
GRASS Nviz Library
►
GRASS GIS OGSF Library
GRASS GIS PNG Display Driver Library
►
GRASS and the PROJ projection library
GRASS Postscript Display Driver Library
►
GRASS Raster Library
►
GRASS 3D Raster Volume Library
GRASS Row Input/Output Library
GRASS Library for interpolation with regularized splines with tension
►
GRASS Segment Library
►
GRASS Directed Graph Library
►
GRASS Vector Library
Todo List
Deprecated List
Bug List
►
Data Structures
▼
Files
►
File List
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
flush.c
Go to the documentation of this file.
1
2
/**
3
* \file flush.c
4
*
5
* \brief Segment flush routines.
6
*
7
* This program is free software under the GNU General Public License
8
* (>=v2). Read the file COPYING that comes with GRASS for details.
9
*
10
* \author GRASS GIS Development Team
11
*
12
* \date 2005-2009
13
*/
14
15
#include "local_proto.h"
16
17
18
/**
19
* \fn int Segment_flush (SEGMENT *SEG)
20
*
21
* \brief Flush pending updates to disk.
22
*
23
* Forces all pending updates generated by <i>Segment_put()</i> to be
24
* written to the segment file <b>seg</b>. Must be called after the
25
* final <i>Segment_put()</i> to force all pending updates to disk. Must
26
* also be called before the first call to <i>Segment_get_row</i>.
27
*
28
* \param[in] SEG segment
29
* \return always returns 0
30
*/
31
32
int
Segment_flush
(
SEGMENT
* SEG)
33
{
34
int
i;
35
36
if
(SEG->
scb
) {
37
for
(i = 0; i < SEG->
nseg
; i++)
38
if
(SEG->
scb
[i].
n
>= 0 && SEG->
scb
[i].
dirty
)
39
seg_pageout
(SEG, i);
40
}
41
42
return
0;
43
}
SEGMENT::nseg
int nseg
Definition:
segment.h:58
SEGMENT::scb::n
int n
Definition:
segment.h:50
Segment_flush
int Segment_flush(SEGMENT *SEG)
Flush pending updates to disk.
Definition:
flush.c:32
SEGMENT::scb::dirty
char dirty
Definition:
segment.h:48
SEGMENT
Definition:
segment.h:19
seg_pageout
int seg_pageout(SEGMENT *SEG, int i)
Internal use only.
Definition:
pageout.c:37
SEGMENT::scb
struct SEGMENT::scb * scb
lib
segment
flush.c
Generated on Mon May 31 2021 05:21:29 for GRASS GIS 7 Programmer's Manual by
1.8.13