Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Functions
block.h File Reference
#include <nodelist.h>
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 BLOCK_H
 
#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)
 
void insertBlock (blocklist_t *sp, block_t *sn)
 

Macro Definition Documentation

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

Definition at line 57 of file block.h.

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

Definition at line 56 of file block.h.

#define BLOCK_H

Definition at line 19 of file block.h.

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

Definition at line 55 of file block.h.

Referenced by createBlocktree().

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

Definition at line 60 of file block.h.

#define COALESCED_F   (1 << 0)

Definition at line 59 of file block.h.

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

Definition at line 61 of file block.h.

Typedef Documentation

typedef struct block block_t

Definition at line 23 of file block.h.

Function Documentation

void appendBlock ( blocklist_t sp,
block_t sn 
)

Definition at line 67 of file block.c.

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

Referenced by createBlocktree().

int blockSize ( block_t sp)

Definition at line 59 of file block.c.

References agnnodes(), and block::sub_graph.

void freeBlock ( block_t sp)

Definition at line 51 of file block.c.

References block::circle_list, and freeNodelist().

Referenced by delGrid(), and freeBlocktree().

void initBlocklist ( blocklist_t )

Definition at line 20 of file block.c.

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

Referenced by createBlocktree(), and mkBlock().

void insertBlock ( blocklist_t sp,
block_t sn 
)

Definition at line 82 of file block.c.

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

block_t* mkBlock ( Agraph_t )

Definition at line 41 of file block.c.

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