/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/graph/attribs.c File Reference

#include <limits.h>
#include "libgraph.h"

Include dependency graph for attribs.c:

Go to the source code of this file.

Defines

#define EXTERN

Functions

Agdict_tagdictof (void *obj)
Agsym_tagNEWsym (Agdict_t *dict, char *name, char *value)
Agraph_tagprotograph ()
Agsym_tagraphattr (Agraph_t *g, char *name, char *value)
Agsym_tagnodeattr (Agraph_t *g, char *name, char *value)
Agsym_tagedgeattr (Agraph_t *g, char *name, char *value)
void agFREEdict (Agraph_t *g, Agdict_t *dict)
Agdict_tagNEWdict (char *name)
void agcopydict (Agdict_t *to_dict, Agdict_t *from_dict)
Agsym_tagfindattr (void *obj, char *name)
void aginitlib (int gs, int ns, int es)
char * agget (void *obj, char *attr)
int agset (void *obj, char *attr, char *value)
int agindex (void *obj, char *name)
char * agxget (void *obj, int index)
int agxset (void *obj, int index, char *buf)
int agsafeset (void *obj, char *name, char *value, char *def)
int agcopyattr (void *oldobj, void *newobj)


Define Documentation

#define EXTERN

Definition at line 19 of file attribs.c.


Function Documentation

int agcopyattr ( void *  oldobj,
void *  newobj 
)

Definition at line 375 of file attribs.c.

References agdictof(), agfindattr(), agxget(), agxset(), Agsym_t::index, KEYX, Agdict_t::list, Agsym_t::name, TAG_EDGE, and TAG_OF.

void agcopydict ( Agdict_t to_dict,
Agdict_t from_dict 
)

Definition at line 264 of file attribs.c.

References agNEWsym(), Agdict_t::dict, dtsize(), Agsym_t::fixed, Agdict_t::list, Agsym_t::name, Agsym_t::printed, and Agsym_t::value.

Agdict_t* agdictof ( void *  obj  ) 

Definition at line 26 of file attribs.c.

References NULL, TAG_EDGE, TAG_GRAPH, TAG_NODE, and TAG_OF.

Referenced by agcopyattr(), agfindattr(), agFREEedge(), and agFREEnode().

Agsym_t * agedgeattr ( Agraph_t g,
char *  name,
char *  value 
)

Definition at line 206 of file attribs.c.

References AG, Agproto_t::e, NULL, Agraph_t::proto, AG_s::proto_g, and Agraph_t::root.

Referenced by agsafeset(), attach_attrs_and_arrows(), dotneato_args_initialize(), main(), and setv().

Agsym_t* agfindattr ( void *  obj,
char *  name 
)

Definition at line 282 of file attribs.c.

References agdictof(), Agdict_t::dict, and dtmatch.

Referenced by agcopyattr(), agindex(), agsafeset(), do_graph_label(), dot_rank(), dot_sameports(), dotneato_args_initialize(), emit_graph(), fdp_init_graph(), fdp_init_node_edge(), fdp_initParams(), findattr(), getv(), graph_init(), init_info(), init_nop(), late_attr(), neato_init_graphn(), neato_init_node_edge(), safe_dcl(), and setv().

void agFREEdict ( Agraph_t g,
Agdict_t dict 
)

Definition at line 226 of file attribs.c.

References Agdict_t::dict, dtclose(), free(), and Agdict_t::list.

char* agget ( void *  obj,
char *  attr 
)

Definition at line 306 of file attribs.c.

References agindex(), and agxget().

Referenced by agwredge(), agwrnode(), attach_attrs_and_arrows(), bind_shape(), common_init_edge(), do_graph_label(), dot_layout(), dot_mincross(), emit_background(), emit_clusters(), emit_html_label(), epsf_init(), expFactor(), fdp_xLayout(), getdouble(), getPack(), getPackMode(), graph_init(), graphAdjustMode(), gvrender_begin_graph(), neatoLayout(), normalize(), rank(), removeOverlap(), scan_graph_mode(), setEdgeType(), setSeed(), splineEdges(), and twopi_layout().

int agindex ( void *  obj,
char *  name 
)

Definition at line 316 of file attribs.c.

References agfindattr(), and Agsym_t::index.

Referenced by agget(), agset(), and scan_graph_mode().

void aginitlib ( int  gs,
int  ns,
int  es 
)

Definition at line 292 of file attribs.c.

References AG, agerr(), AGWARN, AG_s::edge_nbytes, AG_s::graph_nbytes, AG_s::init_called, AG_s::node_nbytes, NULL, AG_s::proto_g, and TRUE.

Agdict_t* agNEWdict ( char *  name  ) 

Definition at line 242 of file attribs.c.

References Agdict_t::dict, dtopen(), Dttree, Agdict_t::list, Agdict_t::name, NEW, NULL, and offsetof.

Agsym_t* agNEWsym ( Agdict_t dict,
char *  name,
char *  value 
)

Definition at line 44 of file attribs.c.

References agstrdup(), ALLOC, Agdict_t::dict, dtinsert, dtsize(), Agsym_t::index, Agdict_t::list, Agsym_t::name, NEW, NULL, Agsym_t::printed, TRUE, and Agsym_t::value.

Referenced by agcopydict().

Agsym_t * agnodeattr ( Agraph_t g,
char *  name,
char *  value 
)

Definition at line 197 of file attribs.c.

References AG, Agproto_t::n, NULL, Agraph_t::proto, AG_s::proto_g, and Agraph_t::root.

Referenced by agopen(), agsafeset(), attach_attrs_and_arrows(), dotneato_args_initialize(), gvContext(), and setv().

Agraph_t* agprotograph ( void   ) 

Definition at line 165 of file attribs.c.

References AG, and AG_s::proto_g.

Referenced by dotneato_args_initialize().

Agsym_t* agraphattr ( Agraph_t g,
char *  name,
char *  value 
)

Definition at line 188 of file attribs.c.

References AG, NULL, AG_s::proto_g, and Agraph_t::root.

Referenced by agsafeset(), attach_attrs_and_arrows(), dotneato_args_initialize(), init_nop(), and setv().

int agsafeset ( void *  obj,
char *  name,
char *  value,
char *  def 
)

Definition at line 349 of file attribs.c.

References agedgeattr(), agfindattr(), agnodeattr(), agraphattr(), agxset(), graph(), head, Agsym_t::index, NULL, TAG_EDGE, TAG_GRAPH, TAG_NODE, and TAG_OF.

Referenced by gvLayout().

int agset ( void *  obj,
char *  attr,
char *  value 
)

Definition at line 311 of file attribs.c.

References agindex(), and agxset().

Referenced by attach_attrs_and_arrows(), and setSeed().

char* agxget ( void *  obj,
int  index 
)

Definition at line 327 of file attribs.c.

References NULL.

Referenced by agcopyattr(), agget(), arrow_flags(), common_init_edge(), common_init_node(), dot_sameports(), doubleattr(), emit_clusters(), late_bool(), late_double(), late_int(), late_string(), nonconstraint_edge(), user_pos(), and write_plain().

int agxset ( void *  obj,
int  index,
char *  buf 
)

Definition at line 334 of file attribs.c.

References agstrdup(), agstrfree(), Agraph_t::attr, and Agraph_t::didset.

Referenced by agcopyattr(), agsafeset(), agset(), and attach_attrs_and_arrows().


Generated on Mon Mar 31 19:05:47 2008 for Graphviz by  doxygen 1.5.1