#include "nodelist.h"
#include "circular.h"
#include <assert.h>
Include dependency graph for nodelist.c:
Go to the source code of this file.
Functions | |
nodelist_t * | mkNodelist () |
void | freeNodelist (nodelist_t *list) |
void | appendNodelist (nodelist_t *list, nodelistitem_t *one, Agnode_t *n) |
nodelist_t * | reverseNodelist (nodelist_t *list) |
void | realignNodelist (nodelist_t *list, nodelistitem_t *np) |
nodelist_t * | cloneNodelist (nodelist_t *list) |
void | insertNodelist (nodelist_t *list, Agnode_t *cn, Agnode_t *neighbor, int pos) |
int | sizeNodelist (nodelist_t *list) |
int | node_position (nodelist_t *list, Agnode_t *n) |
void | reverseAppend (nodelist_t *l1, nodelist_t *l2) |
void appendNodelist | ( | nodelist_t * | list, | |
nodelistitem_t * | one, | |||
Agnode_t * | n | |||
) |
Definition at line 54 of file nodelist.c.
References nodelist_t::first, nodelist_t::last, nodelistitem::next, NULL, nodelistitem::prev, and nodelist_t::sz.
Referenced by cloneNodelist().
nodelist_t* cloneNodelist | ( | nodelist_t * | list | ) |
Definition at line 177 of file nodelist.c.
References appendNodelist(), nodelistitem::curr, nodelist_t::first, nodelist_t::last, mkNodelist(), and nodelistitem::next.
void freeNodelist | ( | nodelist_t * | list | ) |
Definition at line 35 of file nodelist.c.
References nodelist_t::first, free(), and nodelistitem::next.
Referenced by freeBlock().
void insertNodelist | ( | nodelist_t * | list, | |
Agnode_t * | cn, | |||
Agnode_t * | neighbor, | |||
int | pos | |||
) |
Definition at line 195 of file nodelist.c.
References assert, nodelistitem::curr, nodelist_t::first, nodelist_t::last, nodelistitem::next, NULL, and nodelistitem::prev.
nodelist_t* mkNodelist | ( | void | ) |
int node_position | ( | nodelist_t * | list, | |
Agnode_t * | n | |||
) |
Definition at line 313 of file nodelist.c.
References nodelistitem::curr, nodelist_t::first, Agnode_t::name, nodelistitem::next, and POSITION.
void realignNodelist | ( | nodelist_t * | list, | |
nodelistitem_t * | np | |||
) |
Definition at line 155 of file nodelist.c.
References nodelist_t::first, nodelist_t::last, nodelistitem::next, NULL, and nodelistitem::prev.
Referenced by layout_block().
void reverseAppend | ( | nodelist_t * | l1, | |
nodelist_t * | l2 | |||
) |
nodelist_t* reverseNodelist | ( | nodelist_t * | list | ) |
Definition at line 134 of file nodelist.c.
References nodelist_t::first, nodelist_t::last, nodelistitem::next, and nodelistitem::prev.
Referenced by reverseAppend().
int sizeNodelist | ( | nodelist_t * | list | ) |
Definition at line 258 of file nodelist.c.
References nodelist_t::first, nodelistitem::next, NULL, and nodelist_t::sz.
Referenced by layout_block().