Graphviz 16.1.1~dev.20261012.0359
Loading...
Searching...
No Matches
actions.h File Reference
#include "cgraph.h"
#include <expr/expr.h>
#include <stdio.h>
Include dependency graph for actions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Agobj_t * cloneO (Agraph_t *g, Agobj_t *obj)
 
Agraph_t * cloneG (Agraph_t *g, char *name)
 
Agobj_t * copy (Agraph_t *g, Agobj_t *obj)
 
int copyAttr (Agobj_t *obj, Agobj_t *obj1)
 
int indexOf (char *s1, char *s2)
 return index of leftmost string s2 in string s1, or -1
 
long rindexOf (char *s1, char *s2)
 return index of rightmost string s2 in string s1, or -1
 
size_t match (char *str, char *pat)
 return index of pattern pat in string str, or SIZE_MAX
 
int lockGraph (Agraph_t *g, int)
 
Agraph_t * compOf (Agraph_t *g, Agnode_t *n)
 return connected component of node
 
Agedge_t * isEdge (Agraph_t *g, Agnode_t *t, Agnode_t *h, char *key)
 
Agnode_t * addNode (Agraph_t *g, Agnode_t *n, int doAdd)
 
Agedge_t * addEdge (Agraph_t *g, Agedge_t *e, int doAdd)
 
Agraph_t * sameG (void *p1, void *p2, char *fn, char *msg)
 
int compare (Agobj_t *, Agobj_t *)
 lexicographic ordering of objects
 
int sfioWrite (Agraph_t *, FILE *)
 
int writeFile (Agraph_t *, char *)
 
int fwriteFile (Expr_t *, Agraph_t *, long long)
 
Agraph_t * readFile (char *)
 
Agraph_t * freadFile (Expr_t *, long long)
 
int openFile (Expr_t *, const char *, const char *)
 
int closeFile (Expr_t *, long long)
 
char * readLine (Expr_t *, long long)
 
char * canon (Expr_t *pgm, char *)
 canonicalize a string for printing
 
char * toHtml (Agraph_t *, char *)
 create a string marked as HTML
 
char * toLower (Expr_t *pgm, char *src)
 convert characters to lowercase
 
char * toUpper (Expr_t *pgm, char *src)
 convert characters to uppercase
 
int deleteObj (Agraph_t *g, Agobj_t *obj)
 
char * colorx (Expr_t *ex, const char *incolor, char *fmt)
 RGB, RGBA, HSV, HSVA.
 

Function Documentation

◆ addEdge()

Agedge_t * addEdge ( Agraph_t *  g,
Agedge_t *  e,
int  doAdd 
)
extern

Definition at line 435 of file actions.c.

References agsubedge(), and sameG().

Here is the call graph for this function:

◆ addNode()

Agnode_t * addNode ( Agraph_t *  g,
Agnode_t *  n,
int  doAdd 
)
extern

Definition at line 426 of file actions.c.

References agsubnode(), and sameG().

Here is the call graph for this function:

◆ canon()

char * canon ( Expr_t *  pgm,
char *  arg 
)
extern

Definition at line 705 of file actions.c.

References agstrcanon(), agstrcanon_bytes(), and exstralloc().

Here is the call graph for this function:

◆ cloneG()

Agraph_t * cloneG ( Agraph_t *  g,
char *  name 
)
extern

Definition at line 300 of file actions.c.

References agnameof(), Agraph_s::base, cloneGraph(), copyAttr(), Agraph_s::desc, and openG().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cloneO()

Agobj_t * cloneO ( Agraph_t *  g,
Agobj_t *  obj 
)
extern

Definition at line 318 of file actions.c.

References aghead, AGINEDGE, AGMKOUT, agnameof(), AGNODE, AGOUTEDGE, AGRAPH, agtail, AGTYPE, cloneGraph(), cloneO(), copyAttr(), exerror(), OBJ, openEdge(), openG(), openNode(), openSubg(), and UNREACHABLE.

Referenced by addOutputGraph(), cloneO(), getval(), and gvpr_core().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeFile()

int closeFile ( Expr_t *  ex,
long long  fd 
)
extern

Definition at line 593 of file actions.c.

References elementsof, exerror(), and Expr_s::file.

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ colorx()

char * colorx ( Expr_t *  ex,
const char *  incolor,
char *  fmt 
)
extern

Definition at line 727 of file actions.c.

References agxbfree(), agxbprint(), agxbuse(), alpha, color(), COLOR_OK, colorxlate(), exstring(), HSVA_DOUBLE, RGBA_BYTE, and type.

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compare()

int compare ( Agobj_t *  l,
Agobj_t *  r 
)
extern

Definition at line 639 of file actions.c.

References AGID, AGTYPE, and NULL.

Referenced by binary().

Here is the caller graph for this function:

◆ compOf()

Agraph_t * compOf ( Agraph_t *  g,
Agnode_t *  n 
)
extern

Definition at line 387 of file actions.c.

References agfstnode(), AGID, agidnode(), agnxtnode(), cc_dfs(), CCUNMARK, cg(), id, and openSubg().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy()

Agobj_t * copy ( Agraph_t *  g,
Agobj_t *  obj 
)
extern

Definition at line 133 of file actions.c.

References aghead, AGINEDGE, AGMKOUT, agnameof(), AGNODE, AGOUTEDGE, AGRAPH, agtail, AGTYPE, copyAttr(), exerror(), openEdge(), openG(), openNode(), openSubg(), and UNREACHABLE.

Referenced by cloneGraph(), and cloneSubg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyAttr()

int copyAttr ( Agobj_t *  obj,
Agobj_t *  obj1 
)
extern

Definition at line 105 of file actions.c.

References agattr_text(), agattrsym(), aghtmlstr(), agnxtattr(), agraphof(), agstrdup_html(), agstrfree(), AGTYPE, agxget(), agxset(), and NULL.

Referenced by cloneG(), cloneO(), and copy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteObj()

int deleteObj ( Agraph_t *  g,
Agobj_t *  obj 
)
extern

Definition at line 476 of file actions.c.

References agclose(), agdelete(), agnameof(), AGRAPH, agraphof(), agroot(), AGTYPE, error, ERROR_WARNING, gData, gval_t::lock, gvlock_t::locked, and gvlock_t::zombie.

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ freadFile()

Agraph_t * freadFile ( Expr_t *  ex,
long long  fd 
)
extern

Definition at line 565 of file actions.c.

References elementsof, exerror(), Expr_s::file, and readG().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fwriteFile()

int fwriteFile ( Expr_t *  ex,
Agraph_t *  g,
long long  fd 
)
extern

Definition at line 555 of file actions.c.

References elementsof, exerror(), Expr_s::file, and sfioWrite().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ indexOf()

int indexOf ( char *  s1,
char *  s2 
)
extern

Definition at line 62 of file actions.c.

References NULL, and s1().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEdge()

Agedge_t * isEdge ( Agraph_t *  g,
Agnode_t *  t,
Agnode_t *  h,
char *  key 
)
extern

Definition at line 408 of file actions.c.

References agedge(), agroot(), and sameG().

Referenced by getval(), and strdup_and_subst_obj0().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lockGraph()

int lockGraph ( Agraph_t *  g,
int  v 
)
extern

Definition at line 449 of file actions.c.

References agclose(), agroot(), error, ERROR_WARNING, gData, gval_t::lock, gvlock_t::locked, and gvlock_t::zombie.

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ match()

size_t match ( char *  str,
char *  pat 
)
extern

Definition at line 92 of file actions.c.

References SIZE_MAX, str, strgrpmatch(), and sub.

Referenced by getval(), Multilevel_MQ_Clustering_establish(), strgrpmatch(), and svg_size().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openFile()

int openFile ( Expr_t *  ex,
const char *  fname,
const char *  mode 
)
extern

Definition at line 575 of file actions.c.

References elementsof, exerror(), Expr_s::file, and fname.

Here is the call graph for this function:

◆ readFile()

Agraph_t * readFile ( char *  f)
extern

Definition at line 537 of file actions.c.

References exerror(), exwarn(), and readG().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readLine()

char * readLine ( Expr_t *  ex,
long long  fd 
)
extern

Definition at line 618 of file actions.c.

References agxbfree(), agxbputc(), agxbuse(), elementsof, exerror(), exstring(), and Expr_s::file.

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rindexOf()

long rindexOf ( char *  s1,
char *  s2 
)
extern

Definition at line 68 of file actions.c.

References s1().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sameG()

Agraph_t * sameG ( void *  p1,
void *  p2,
char *  fn,
char *  msg 
)
extern

Definition at line 48 of file actions.c.

References agraphof(), agroot(), error, ERROR_WARNING, and kinds().

Referenced by addEdge(), addNode(), isEdge(), and openEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sfioWrite()

int sfioWrite ( Agraph_t *  g,
FILE *  fp 
)
extern

Definition at line 504 of file actions.c.

References AgIoDisc, agwrite(), Agraph_s::clos, Agclos_s::disc, and Agdisc_s::io.

Referenced by fwriteFile(), getval(), gvpr_core(), and writeFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toHtml()

char * toHtml ( Agraph_t *  g,
char *  arg 
)
extern

Definition at line 702 of file actions.c.

References agstrdup_html().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toLower()

char * toLower ( Expr_t *  pgm,
char *  src 
)
extern

Definition at line 668 of file actions.c.

References exstralloc(), gv_tolower(), len(), and NULL.

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toUpper()

char * toUpper ( Expr_t *  pgm,
char *  src 
)
extern

Definition at line 685 of file actions.c.

References exstralloc(), gv_toupper(), len(), and NULL.

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFile()

int writeFile ( Agraph_t *  g,
char *  f 
)
extern

Definition at line 517 of file actions.c.

References exerror(), exwarn(), and sfioWrite().

Referenced by getval().

Here is the call graph for this function:
Here is the caller graph for this function: