GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
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 36 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 24 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 85 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 74 of file vector/diglib/update.c.

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