gnetlist

s_traverse.c File Reference

#include <config.h>
#include <missing.h>
#include <stdio.h>
#include <math.h>
#include <libgeda/libgeda.h>
#include "../include/globals.h"
#include "../include/prototype.h"
Include dependency graph for s_traverse.c:

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

Function Documentation

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void s_traverse_init ( void  )

Definition at line 84 of file s_traverse.c.

Here is the call graph for this function:

void s_traverse_start ( TOPLEVEL *  pr_current)

Definition at line 118 of file s_traverse.c.

Here is the call graph for this function:

void s_traverse_sheet ( TOPLEVEL *  pr_current,
const GList *  obj_list,
char *  hierarchy_tag 
)

Definition at line 152 of file s_traverse.c.

Here is the call graph for this function:

CPINLIST* s_traverse_component ( TOPLEVEL *  pr_current,
OBJECT *  component,
char *  hierarchy_tag 
)

Definition at line 263 of file s_traverse.c.

Here is the call graph for this function:

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 
)

Definition at line 330 of file s_traverse.c.

Here is the call graph for this function:


Variable Documentation

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.

 All Data Structures Files Functions Variables Defines