Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
block.h File Reference
Include dependency graph for block.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  blocklist_t
 
struct  block
 

Macros

#define CHILD(b)   ((b)->child)
 
#define BLK_PARENT(b)   (CHILD(b)? PARENT(CHILD(b)) : 0)
 
#define BLK_FLAGS(b)   ((b)->flags)
 
#define COALESCED_F   (1 << 0)
 
#define COALESCED(b)   (BLK_FLAGS(b)&COALESCED_F)
 
#define SET_COALESCED(b)   (BLK_FLAGS(b) |= COALESCED_F)
 

Typedefs

typedef struct block block_t
 

Functions

block_tmkBlock (Agraph_t *)
 
void freeBlock (block_t *sp)
 
int blockSize (block_t *sp)
 
void initBlocklist (blocklist_t *)
 
void appendBlock (blocklist_t *sp, block_t *sn)
 add block at end
 
void insertBlock (blocklist_t *sp, block_t *sn)
 add block at beginning
 

Macro Definition Documentation

◆ BLK_FLAGS

#define BLK_FLAGS (   b)    ((b)->flags)

Definition at line 52 of file block.h.

◆ BLK_PARENT

#define BLK_PARENT (   b)    (CHILD(b)? PARENT(CHILD(b)) : 0)

Definition at line 51 of file block.h.

◆ CHILD

#define CHILD (   b)    ((b)->child)

Definition at line 50 of file block.h.

◆ COALESCED

#define COALESCED (   b)    (BLK_FLAGS(b)&COALESCED_F)

Definition at line 55 of file block.h.

◆ COALESCED_F

#define COALESCED_F   (1 << 0)

Definition at line 54 of file block.h.

◆ SET_COALESCED

#define SET_COALESCED (   b)    (BLK_FLAGS(b) |= COALESCED_F)

Definition at line 56 of file block.h.

Typedef Documentation

◆ block_t

typedef struct block block_t

Definition at line 19 of file block.h.

Function Documentation

◆ appendBlock()

void appendBlock ( blocklist_t sp,
block_t sn 
)
extern

Definition at line 45 of file block.c.

References blocklist_t::first, blocklist_t::last, block::next, and NULL.

Referenced by createBlocktree(), and dfs().

Here is the caller graph for this function:

◆ blockSize()

int blockSize ( block_t sp)
extern

Definition at line 39 of file block.c.

References agnnodes(), and block::sub_graph.

Referenced by dfs().

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

◆ freeBlock()

void freeBlock ( block_t sp)
extern

Definition at line 31 of file block.c.

References block::circle_list, and free().

Referenced by freeBlocktree().

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

◆ initBlocklist()

void initBlocklist ( blocklist_t bl)
extern

Definition at line 17 of file block.c.

References blocklist_t::first, blocklist_t::last, and NULL.

Referenced by createBlocktree(), initGraphAttrs(), and mkBlock().

Here is the caller graph for this function:

◆ insertBlock()

void insertBlock ( blocklist_t sp,
block_t sn 
)
extern

Definition at line 58 of file block.c.

References blocklist_t::first, blocklist_t::last, and block::next.

Referenced by dfs().

Here is the caller graph for this function:

◆ mkBlock()

block_t * mkBlock ( Agraph_t g)
extern

Definition at line 23 of file block.c.

References block::children, gv_alloc(), initBlocklist(), and block::sub_graph.

Here is the call graph for this function: