gnetlist
|
#include <config.h>
#include <missing.h>
#include <stdio.h>
#include <math.h>
#include <libgeda/libgeda.h>
#include "../include/globals.h"
#include "../include/prototype.h"
Go to the source code of this file.
Functions | |
static gboolean | returns_true (gpointer key, gpointer value, gpointer user_data) |
static gint | is_visited (OBJECT *obj) |
static gint | visit (OBJECT *obj) |
static void | s_traverse_clear_all_visited (const GList *obj_list) |
void | s_traverse_init (void) |
void | s_traverse_start (TOPLEVEL *pr_current) |
void | s_traverse_sheet (TOPLEVEL *pr_current, const GList *obj_list, char *hierarchy_tag) |
CPINLIST * | s_traverse_component (TOPLEVEL *pr_current, OBJECT *component, char *hierarchy_tag) |
static int | connection_type (OBJECT *object) |
NET * | s_traverse_net (TOPLEVEL *pr_current, NET *nets, int starting, OBJECT *object, char *hierarchy_tag, int type) |
Variables | |
static GHashTable * | visit_table = NULL |
static gboolean returns_true | ( | gpointer | key, |
gpointer | value, | ||
gpointer | user_data | ||
) | [static] |
Trivial function used when clearing visit_table.
Definition at line 48 of file s_traverse.c.
static gint is_visited | ( | OBJECT * | obj | ) | [inline, static] |
Retrieve the current visit count for a particular OBJECT.
Definition at line 55 of file s_traverse.c.
static gint visit | ( | OBJECT * | obj | ) | [inline, static] |
Increment the current visit count for a particular OBJECT.
Definition at line 68 of file s_traverse.c.
static void s_traverse_clear_all_visited | ( | const GList * | obj_list | ) | [inline, static] |
Reset all visit counts. Simply clears the hashtable completely.
Definition at line 77 of file s_traverse.c.
void s_traverse_init | ( | void | ) |
void s_traverse_start | ( | TOPLEVEL * | pr_current | ) |
void s_traverse_sheet | ( | TOPLEVEL * | pr_current, |
const GList * | obj_list, | ||
char * | hierarchy_tag | ||
) |
CPINLIST* s_traverse_component | ( | TOPLEVEL * | pr_current, |
OBJECT * | component, | ||
char * | hierarchy_tag | ||
) |
static int connection_type | ( | OBJECT * | object | ) | [static] |
Definition at line 317 of file s_traverse.c.
NET* s_traverse_net | ( | TOPLEVEL * | pr_current, |
NET * | nets, | ||
int | starting, | ||
OBJECT * | object, | ||
char * | hierarchy_tag, | ||
int | type | ||
) |
GHashTable* visit_table = NULL [static] |
Tracks which OBJECTs have been visited so far, and how many times.
The keys of the table are the OBJECT pointers, and the visit count is stored directly in the value pointers.
Definition at line 44 of file s_traverse.c.