pcb 4.1.1
An interactive printed circuit board layout editor.

container.c File Reference

#include "gts.h"
Include dependency graph for container.c:

Go to the source code of this file.

Functions

static void containee_class_init (GtsContaineeClass *klass)
GtsContaineeClassgts_containee_class (void)
GtsContaineegts_containee_new (GtsContaineeClass *klass)
gboolean gts_containee_is_contained (GtsContainee *item, GtsContainer *c)
void gts_containee_replace (GtsContainee *item, GtsContainee *with)
static void slist_containee_destroy (GtsObject *object)
static void slist_containee_remove_container (GtsContainee *i, GtsContainer *c)
static void slist_containee_add_container (GtsContainee *i, GtsContainer *c)
static void slist_containee_foreach (GtsContainee *c, GtsFunc func, gpointer data)
static gboolean slist_containee_is_contained (GtsContainee *i, GtsContainer *c)
static void slist_containee_class_init (GtsSListContaineeClass *klass)
static void slist_containee_init (GtsSListContainee *object)
GtsSListContaineeClassgts_slist_containee_class (void)
static void remove_container (GtsContainee *item, GtsContainer *c)
static void container_destroy (GtsObject *object)
static void container_add (GtsContainer *c, GtsContainee *item)
static void container_remove (GtsContainer *c, GtsContainee *item)
static void container_clone_add (GtsContainee *item, GtsContainer *clone)
static void container_clone (GtsObject *clone, GtsObject *object)
static void container_class_init (GtsContainerClass *klass)
GtsContainerClassgts_container_class (void)
GtsContainergts_container_new (GtsContainerClass *klass)
void gts_container_add (GtsContainer *c, GtsContainee *item)
void gts_container_remove (GtsContainer *c, GtsContainee *item)
void gts_container_foreach (GtsContainer *c, GtsFunc func, gpointer data)
guint gts_container_size (GtsContainer *c)
static void hash_container_destroy (GtsObject *object)
static void hash_container_add (GtsContainer *c, GtsContainee *item)
static void hash_container_remove (GtsContainer *c, GtsContainee *item)
static void hash_foreach (GtsContainee *item, gpointer item_data, gpointer *info)
static void hash_container_foreach (GtsContainer *c, GtsFunc func, gpointer data)
static guint hash_container_size (GtsContainer *c)
static void hash_container_class_init (GtsHashContainerClass *klass)
static void hash_container_init (GtsHashContainer *object)
GtsHashContainerClassgts_hash_container_class (void)
static void slist_container_destroy (GtsObject *object)
static void slist_container_add (GtsContainer *c, GtsContainee *item)
static void slist_container_remove (GtsContainer *c, GtsContainee *item)
static void slist_container_foreach (GtsContainer *c, GtsFunc func, gpointer data)
static guint slist_container_size (GtsContainer *c)
static void slist_container_class_init (GtsSListContainerClass *klass)
static void slist_container_init (GtsSListContainer *object)
GtsSListContainerClassgts_slist_container_class (void)

Function Documentation

static void container_add ( GtsContainer c,
GtsContainee item 
) [static]

Definition at line 203 of file container.c.

References GTS_CONTAINEE_CLASS, and GTS_OBJECT.

Referenced by container_class_init().

static void container_class_init ( GtsContainerClass klass) [static]
static void container_clone ( GtsObject clone,
GtsObject object 
) [static]

Definition at line 222 of file container.c.

References container_clone_add(), GTS_CONTAINER, gts_container_foreach(), gts_object_init(), and _GtsObject::klass.

Referenced by container_class_init().

Here is the call graph for this function:

static void container_clone_add ( GtsContainee item,
GtsContainer clone 
) [static]

Definition at line 217 of file container.c.

References gts_container_add().

Referenced by container_clone().

Here is the call graph for this function:

static void container_destroy ( GtsObject object) [static]

Definition at line 193 of file container.c.

References c, GTS_CONTAINER, gts_container_class(), gts_container_foreach(), GTS_OBJECT_CLASS, and remove_container().

Referenced by container_class_init().

Here is the call graph for this function:

static void container_remove ( GtsContainer c,
GtsContainee item 
) [static]

Definition at line 210 of file container.c.

References GTS_CONTAINEE_CLASS, GTS_OBJECT, and remove_container().

Referenced by container_class_init().

Here is the call graph for this function:

GtsContaineeClass* gts_containee_class ( void  )

Definition at line 33 of file container.c.

References containee_class_init(), gts_object_class(), and gts_object_class_new().

Referenced by gts_gedge_class(), and gts_slist_containee_class().

Here is the call graph for this function:

GtsContainee* gts_containee_new ( GtsContaineeClass klass)

Definition at line 54 of file container.c.

References GTS_CONTAINEE, GTS_OBJECT_CLASS, and gts_object_new().

Here is the call graph for this function:

void gts_containee_replace ( GtsContainee item,
GtsContainee with 
)

Definition at line 76 of file container.c.

References GTS_CONTAINEE_CLASS, gts_container_add(), gts_container_remove(), and GTS_OBJECT.

Here is the call graph for this function:

GtsContainerClass* gts_container_class ( void  )

Definition at line 240 of file container.c.

References container_class_init(), GTS_OBJECT_CLASS, gts_object_class_new(), and gts_slist_containee_class().

Referenced by container_destroy(), gts_hash_container_class(), and gts_slist_container_class().

Here is the call graph for this function:

GtsContainer* gts_container_new ( GtsContainerClass klass)

Definition at line 262 of file container.c.

References GTS_CONTAINER, GTS_OBJECT_CLASS, and gts_object_new().

Here is the call graph for this function:

GtsHashContainerClass* gts_hash_container_class ( void  )
GtsSListContaineeClass* gts_slist_containee_class ( void  )

Definition at line 163 of file container.c.

References gts_containee_class(), GTS_OBJECT_CLASS, gts_object_class_new(), slist_containee_class_init(), and slist_containee_init().

Referenced by gts_container_class(), and slist_containee_destroy().

Here is the call graph for this function:

GtsSListContainerClass* gts_slist_container_class ( void  )
static void hash_container_add ( GtsContainer c,
GtsContainee item 
) [static]

Definition at line 323 of file container.c.

References FALSE, GTS_CONTAINER_CLASS, GTS_HASH_CONTAINER, gts_hash_container_class(), and GTS_OBJECT_CLASS.

Referenced by hash_container_class_init().

Here is the call graph for this function:

static void hash_container_class_init ( GtsHashContainerClass klass) [static]
static void hash_container_destroy ( GtsObject object) [static]

Definition at line 313 of file container.c.

References GTS_HASH_CONTAINER, gts_hash_container_class(), and GTS_OBJECT_CLASS.

Referenced by hash_container_class_init().

Here is the call graph for this function:

static void hash_container_foreach ( GtsContainer c,
GtsFunc  func,
gpointer  data 
) [static]

Definition at line 348 of file container.c.

References FALSE, GTS_HASH_CONTAINER, hash_foreach(), and TRUE.

Referenced by hash_container_class_init().

Here is the call graph for this function:

static void hash_container_init ( GtsHashContainer object) [static]

Definition at line 378 of file container.c.

References FALSE.

Referenced by gts_hash_container_class().

static void hash_container_remove ( GtsContainer c,
GtsContainee item 
) [static]

Definition at line 332 of file container.c.

References FALSE, GTS_CONTAINER_CLASS, GTS_HASH_CONTAINER, gts_hash_container_class(), and GTS_OBJECT_CLASS.

Referenced by hash_container_class_init().

Here is the call graph for this function:

static guint hash_container_size ( GtsContainer c) [static]

Definition at line 363 of file container.c.

References GTS_HASH_CONTAINER.

Referenced by hash_container_class_init().

static void hash_foreach ( GtsContainee item,
gpointer  item_data,
gpointer *  info 
) [static]

Definition at line 341 of file container.c.

Referenced by hash_container_foreach().

static void remove_container ( GtsContainee item,
GtsContainer c 
) [static]

Definition at line 186 of file container.c.

References GTS_CONTAINEE_CLASS, and GTS_OBJECT.

Referenced by container_destroy(), and container_remove().

static void slist_containee_add_container ( GtsContainee i,
GtsContainer c 
) [static]

Definition at line 116 of file container.c.

References _GtsSListContainee::containers, and GTS_SLIST_CONTAINEE.

Referenced by slist_containee_class_init().

static void slist_containee_class_init ( GtsSListContaineeClass klass) [static]
static void slist_containee_destroy ( GtsObject object) [static]

Definition at line 91 of file container.c.

References _GtsSListContainee::containers, GTS_CONTAINEE, gts_container_remove(), GTS_OBJECT_CLASS, GTS_SLIST_CONTAINEE, and gts_slist_containee_class().

Referenced by slist_containee_class_init().

Here is the call graph for this function:

static void slist_containee_foreach ( GtsContainee c,
GtsFunc  func,
gpointer  data 
) [static]

Definition at line 124 of file container.c.

References GTS_SLIST_CONTAINEE.

Referenced by slist_containee_class_init().

static void slist_containee_init ( GtsSListContainee object) [static]

Definition at line 158 of file container.c.

Referenced by gts_slist_containee_class().

static gboolean slist_containee_is_contained ( GtsContainee i,
GtsContainer c 
) [static]

Definition at line 138 of file container.c.

References FALSE, GTS_SLIST_CONTAINEE, and TRUE.

Referenced by slist_containee_class_init().

static void slist_containee_remove_container ( GtsContainee i,
GtsContainer c 
) [static]

Definition at line 109 of file container.c.

References _GtsSListContainee::containers, and GTS_SLIST_CONTAINEE.

Referenced by slist_containee_class_init().

static void slist_container_add ( GtsContainer c,
GtsContainee item 
) [static]

Definition at line 417 of file container.c.

References FALSE, GTS_CONTAINER_CLASS, GTS_OBJECT_CLASS, GTS_SLIST_CONTAINER, and gts_slist_container_class().

Referenced by slist_container_class_init().

Here is the call graph for this function:

static void slist_container_class_init ( GtsSListContainerClass klass) [static]
static void slist_container_destroy ( GtsObject object) [static]

Definition at line 407 of file container.c.

References GTS_OBJECT_CLASS, GTS_SLIST_CONTAINER, and gts_slist_container_class().

Referenced by slist_container_class_init().

Here is the call graph for this function:

static void slist_container_foreach ( GtsContainer c,
GtsFunc  func,
gpointer  data 
) [static]

Definition at line 438 of file container.c.

References GTS_SLIST_CONTAINER.

Referenced by slist_container_class_init().

static void slist_container_init ( GtsSListContainer object) [static]

Definition at line 468 of file container.c.

References FALSE.

Referenced by gts_slist_container_class().

static void slist_container_remove ( GtsContainer c,
GtsContainee item 
) [static]

Definition at line 428 of file container.c.

References FALSE, GTS_CONTAINER_CLASS, GTS_OBJECT_CLASS, GTS_SLIST_CONTAINER, and gts_slist_container_class().

Referenced by slist_container_class_init().

Here is the call graph for this function:

static guint slist_container_size ( GtsContainer c) [static]

Definition at line 453 of file container.c.

References GTS_SLIST_CONTAINER.

Referenced by slist_container_class_init().