#include "common.h"
#include <stdio.h>
#include <strings.h>
#include "machine.h"
#include "bu.h"
#include "noalias.h"
Include dependency graph for ptbl.c:
Go to the source code of this file.
Functions | |
void | bu_ptbl_init (struct bu_ptbl *b, int len, const char *str) |
void | bu_ptbl_reset (struct bu_ptbl *b) |
int | bu_ptbl_ins (struct bu_ptbl *b, long int *p) |
int | bu_ptbl_locate (const struct bu_ptbl *b, const long int *p) |
void | bu_ptbl_zero (struct bu_ptbl *b, const long int *p) |
int | bu_ptbl_ins_unique (struct bu_ptbl *b, long int *p) |
int | bu_ptbl_rm (struct bu_ptbl *b, const long int *p) |
void | bu_ptbl_cat (struct bu_ptbl *dest, const struct bu_ptbl *src) |
void | bu_ptbl_cat_uniq (struct bu_ptbl *dest, const struct bu_ptbl *src) |
void | bu_ptbl_free (struct bu_ptbl *b) |
int | bu_ptbl (struct bu_ptbl *b, int func, long int *p) |
void | bu_pr_ptbl (const char *title, const struct bu_ptbl *tbl, int verbose) |
void | bu_ptbl_trunc (struct bu_ptbl *tbl, int end) |
Support for generalized "pointer tables", kept compactly in a dynamic array.
The table is currently un-ordered, and is merely a array of pointers. The support routine nmg_tbl manipulates the array for you. Pointers to be operated on (inserted, deleted, searched for) are passed as a "pointer to long".
Michael John Muuss
Definition in file ptbl.c.