Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

graph.h File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include "cdt.h"

Include dependency graph for graph.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _GRAPH_H   1
#define TAIL_ID   "tailport"
#define TAILSUB_ID   "_tailsubport"
#define HEAD_ID   "headport"
#define HEADSUB_ID   "_headsubport"
#define AGFLAG_DIRECTED   (1<<0)
#define AGFLAG_STRICT   (1<<1)
#define AGFLAG_METAGRAPH   (1<<2)
#define AGRAPH   0
#define AGRAPHSTRICT   (AGRAPH | AGFLAG_STRICT)
#define AGDIGRAPH   AGFLAG_DIRECTED
#define AGDIGRAPHSTRICT   (AGDIGRAPH | AGFLAG_STRICT)
#define AGMETAGRAPH   (AGFLAG_DIRECTED | AGFLAG_STRICT | AGFLAG_METAGRAPH)
#define AG_IS_DIRECTED(g)   ((g)->kind & AGFLAG_DIRECTED)
#define AG_IS_STRICT(g)   ((g)->kind & AGFLAG_STRICT)
#define AG_IS_METAGRAPH(g)   ((g)->kind & AGFLAG_METAGRAPH)
#define aginit()   aginitlib(sizeof(Agraph_t),sizeof(Agnode_t),sizeof(Agedge_t))
#define agobjkind(p)   ((agobjkind_t)(((Agraph_t*)(p))->tag))
#define agmetanode(g)   ((g)->meta_node)

Typedefs

typedef Agraph_t Agraph_t
typedef Agnode_t Agnode_t
typedef Agedge_t Agedge_t
typedef Agdict_t Agdict_t
typedef Agsym_t Agsym_t
typedef Agdata_t Agdata_t
typedef Agproto_t Agproto_t
typedef char *(* gets_f )(char *ubuf, int n, FILE *fp)

Enumerations

enum  agerrlevel_t { AGWARN, AGERR, AGMAX, AGPREV }
enum  agobjkind_t { AGNODE = 1, AGEDGE, AGGRAPH }

Functions

char * agstrcanon (char *, char *)
int aghtmlstr (char *s)
char * agget (void *, char *)
char * agxget (void *, int)
int agset (void *, char *, char *)
int agxset (void *, int, char *)
int agindex (void *, char *)
void aginitlib (int, int, int)
Agraph_tagopen (char *, int)
Agraph_tagsubg (Agraph_t *, char *)
Agraph_tagfindsubg (Agraph_t *, char *)
void agclose (Agraph_t *)
Agraph_tagread (FILE *)
Agraph_tagread_usergets (FILE *, gets_f)
void agreadline (int)
void agsetfile (char *)
Agraph_tagmemread (char *)
int agwrite (Agraph_t *, FILE *)
int agerrors (void)
Agraph_tagprotograph ()
Agraph_tagusergraph (Agnode_t *)
int agnnodes (Agraph_t *)
int agnedges (Agraph_t *)
void aginsert (Agraph_t *, void *)
void agdelete (Agraph_t *, void *)
int agcontains (Agraph_t *, void *)
Agnode_tagnode (Agraph_t *, char *)
Agsym_tagnodeattr (Agraph_t *, char *, char *)
Agnode_tagfindnode (Agraph_t *, char *)
Agnode_tagfstnode (Agraph_t *)
Agnode_tagnxtnode (Agraph_t *, Agnode_t *)
Agnode_taglstnode (Agraph_t *)
Agnode_tagprvnode (Agraph_t *, Agnode_t *)
Agedge_tagedge (Agraph_t *, Agnode_t *, Agnode_t *)
Agsym_tagedgeattr (Agraph_t *, char *, char *)
Agedge_tagfindedge (Agraph_t *, Agnode_t *, Agnode_t *)
Agedge_tagfstedge (Agraph_t *, Agnode_t *)
Agedge_tagnxtedge (Agraph_t *, Agedge_t *, Agnode_t *)
Agedge_tagfstin (Agraph_t *, Agnode_t *)
Agedge_tagnxtin (Agraph_t *, Agedge_t *)
Agedge_tagfstout (Agraph_t *, Agnode_t *)
Agedge_tagnxtout (Agraph_t *, Agedge_t *)
Agsym_tagraphattr (Agraph_t *, char *, char *)
Agsym_tagfindattr (void *, char *)
void agseterr (agerrlevel_t)
char * aglasterr ()
int agerr (agerrlevel_t level, char *fmt,...)
void agerrorf (char *fmt,...)
void agwarningf (char *fmt,...)

Variables

agerrlevel_t agerrno


Define Documentation

#define _GRAPH_H   1
 

Definition at line 20 of file graph.h.

#define AG_IS_DIRECTED g   )     ((g)->kind & AGFLAG_DIRECTED)
 

Definition at line 60 of file graph.h.

#define AG_IS_METAGRAPH g   )     ((g)->kind & AGFLAG_METAGRAPH)
 

Definition at line 62 of file graph.h.

#define AG_IS_STRICT g   )     ((g)->kind & AGFLAG_STRICT)
 

Definition at line 61 of file graph.h.

#define AGDIGRAPH   AGFLAG_DIRECTED
 

Definition at line 56 of file graph.h.

#define AGDIGRAPHSTRICT   (AGDIGRAPH | AGFLAG_STRICT)
 

Definition at line 57 of file graph.h.

Referenced by Dot::callDot().

#define AGFLAG_DIRECTED   (1<<0)
 

Definition at line 50 of file graph.h.

#define AGFLAG_METAGRAPH   (1<<2)
 

Definition at line 52 of file graph.h.

#define AGFLAG_STRICT   (1<<1)
 

Definition at line 51 of file graph.h.

 
#define aginit  )     aginitlib(sizeof(Agraph_t),sizeof(Agnode_t),sizeof(Agedge_t))
 

Definition at line 63 of file graph.h.

Referenced by Dot::callDot().

#define AGMETAGRAPH   (AGFLAG_DIRECTED | AGFLAG_STRICT | AGFLAG_METAGRAPH)
 

Definition at line 58 of file graph.h.

#define agmetanode g   )     ((g)->meta_node)
 

Definition at line 199 of file graph.h.

#define agobjkind p   )     ((agobjkind_t)(((Agraph_t*)(p))->tag))
 

Definition at line 197 of file graph.h.

#define AGRAPH   0
 

Definition at line 54 of file graph.h.

#define AGRAPHSTRICT   (AGRAPH | AGFLAG_STRICT)
 

Definition at line 55 of file graph.h.

#define HEAD_ID   "headport"
 

Definition at line 37 of file graph.h.

#define HEADSUB_ID   "_headsubport"
 

Definition at line 38 of file graph.h.

#define TAIL_ID   "tailport"
 

Definition at line 35 of file graph.h.

#define TAILSUB_ID   "_tailsubport"
 

Definition at line 36 of file graph.h.


Typedef Documentation

typedef struct Agdata_t Agdata_t
 

Definition at line 45 of file graph.h.

typedef struct Agdict_t Agdict_t
 

Definition at line 43 of file graph.h.

typedef struct Agedge_t Agedge_t
 

Definition at line 42 of file graph.h.

typedef struct Agnode_t Agnode_t
 

Definition at line 41 of file graph.h.

typedef struct Agproto_t Agproto_t
 

Definition at line 46 of file graph.h.

typedef struct Agraph_t Agraph_t
 

Definition at line 40 of file graph.h.

typedef struct Agsym_t Agsym_t
 

Definition at line 44 of file graph.h.

typedef char*(* gets_f)(char *ubuf, int n, FILE *fp)
 

Definition at line 48 of file graph.h.


Enumeration Type Documentation

enum agerrlevel_t
 

Enumeration values:
AGWARN 
AGERR 
AGMAX 
AGPREV 

Definition at line 188 of file graph.h.

enum agobjkind_t
 

Enumeration values:
AGNODE 
AGEDGE 
AGGRAPH 

Definition at line 196 of file graph.h.


Function Documentation

void agclose Agraph_t  ) 
 

Referenced by Dot::callDot().

int agcontains Agraph_t ,
void * 
 

void agdelete Agraph_t ,
void * 
 

Agedge_t* agedge Agraph_t ,
Agnode_t ,
Agnode_t
 

Referenced by Dot::callDot().

Agsym_t * agedgeattr Agraph_t ,
char *  ,
char * 
 

Referenced by Dot::callDot().

int agerr agerrlevel_t  level,
char *  fmt,
  ...
 

void agerrorf char *  fmt,
  ...
 

int agerrors void   ) 
 

Agsym_t* agfindattr void *  ,
char * 
 

Agedge_t* agfindedge Agraph_t ,
Agnode_t ,
Agnode_t
 

Agnode_t* agfindnode Agraph_t ,
char * 
 

Referenced by Dot::callDot().

Agraph_t* agfindsubg Agraph_t ,
char * 
 

Agedge_t* agfstedge Agraph_t ,
Agnode_t
 

Agedge_t* agfstin Agraph_t ,
Agnode_t
 

Agnode_t* agfstnode Agraph_t  ) 
 

Referenced by Dot::callDot().

Agedge_t* agfstout Agraph_t ,
Agnode_t
 

Referenced by Dot::callDot().

char* agget void *  ,
char * 
 

Referenced by Dot::callDot().

int aghtmlstr char *  s  ) 
 

int agindex void *  ,
char * 
 

void aginitlib int  ,
int  ,
int 
 

void aginsert Agraph_t ,
void * 
 

char* aglasterr  ) 
 

Agnode_t* aglstnode Agraph_t  ) 
 

Agraph_t* agmemread char *   ) 
 

int agnedges Agraph_t  ) 
 

int agnnodes Agraph_t  ) 
 

Agnode_t* agnode Agraph_t ,
char * 
 

Referenced by Dot::callDot().

Agsym_t * agnodeattr Agraph_t ,
char *  ,
char * 
 

Referenced by Dot::callDot().

Agedge_t* agnxtedge Agraph_t ,
Agedge_t ,
Agnode_t
 

Agedge_t* agnxtin Agraph_t ,
Agedge_t
 

Agnode_t* agnxtnode Agraph_t ,
Agnode_t
 

Referenced by Dot::callDot().

Agedge_t* agnxtout Agraph_t ,
Agedge_t
 

Referenced by Dot::callDot().

Agraph_t* agopen char *  ,
int 
 

Referenced by Dot::callDot().

Agraph_t* agprotograph  ) 
 

Agnode_t* agprvnode Agraph_t ,
Agnode_t
 

Agsym_t* agraphattr Agraph_t ,
char *  ,
char * 
 

Referenced by Dot::callDot().

Agraph_t* agread FILE *   ) 
 

Agraph_t* agread_usergets FILE *  ,
gets_f 
 

void agreadline int   ) 
 

int agset void *  ,
char *  ,
char * 
 

Referenced by Dot::callDot().

void agseterr agerrlevel_t   ) 
 

void agsetfile char *   ) 
 

char* agstrcanon char *  ,
char * 
 

Agraph_t* agsubg Agraph_t ,
char * 
 

Agraph_t* agusergraph Agnode_t  ) 
 

void agwarningf char *  fmt,
  ...
 

int agwrite Agraph_t ,
FILE * 
 

char* agxget void *  ,
int 
 

int agxset void *  ,
int  ,
char * 
 


Variable Documentation

agerrlevel_t agerrno
 

Untitled Document Pesquisa Psi SourceForge.net Logo