GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
vector/diglib/update.c File Reference

Vector library - update topology (lower level functions) More...

#include <stdlib.h>
#include <grass/vector.h>
Include dependency graph for vector/diglib/update.c:

Go to the source code of this file.

Functions

void dig_line_reset_updated (struct Plus_head *Plus)
 Reset number of updated lines. More...
 
void dig_line_add_updated (struct Plus_head *Plus, int line, off_t offset)
 Add new line to updated. More...
 
void dig_node_reset_updated (struct Plus_head *Plus)
 Reset number of updated nodes. More...
 
void dig_node_add_updated (struct Plus_head *Plus, int node)
 Add node to updated. More...
 

Detailed Description

Vector library - update topology (lower level functions)

Lower level functions for reading/writing/manipulating vectors.

(C) 2001 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Radim Blazek

Definition in file vector/diglib/update.c.

Function Documentation

◆ dig_line_add_updated()

void dig_line_add_updated ( struct Plus_head Plus,
int  line,
off_t  offset 
)

Add new line to updated.

Parameters
Pluspointer to Plus_head structure
lineline id
offsetline offset (negative offset is ignored)

Definition at line 37 of file vector/diglib/update.c.

◆ dig_line_reset_updated()

void dig_line_reset_updated ( struct Plus_head Plus)

Reset number of updated lines.

Parameters
Pluspointer to Plus_head structure

Definition at line 25 of file vector/diglib/update.c.

References Plus_head::n_uplines, and Plus_head::uplist.

◆ dig_node_add_updated()

void dig_node_add_updated ( struct Plus_head Plus,
int  node 
)

Add node to updated.

Parameters
Pluspointer to Plus_head structure
nodenode id

Definition at line 87 of file vector/diglib/update.c.

References Plus_head::alloc_upnodes, G_debug(), G_realloc, Plus_head::n_upnodes, Plus_head::uplist, and Plus_head::upnodes.

◆ dig_node_reset_updated()

void dig_node_reset_updated ( struct Plus_head Plus)

Reset number of updated nodes.

Parameters
Pluspointer to Plus_head structure

Definition at line 76 of file vector/diglib/update.c.

References Plus_head::n_upnodes, and Plus_head::uplist.