Public Methods | |
| edge_interval_tree () | |
| BBTNode * | NewNode (void) |
| BBTNode * | Head (void) |
| void | FreeNode (BBTNode *node) |
| void | InsertNode (BBTNode *element, BBTNode *where, int side) |
| void | RemoveNode (BBTNode *element) |
| int | SearchNode (void *key, int compare(void *, void *), BBTNode **element) |
Static Public Methods | |
| void | dump_edge_interval (void *p) |
Public Attributes | |
| BBTNode | root |
|
|
Definition at line 107 of file gugr_regularize.cpp. References guma::InitBBT(), and root.
|
|
|
Definition at line 150 of file gugr_regularize.cpp. References guma::BBTNode, gugr::compare_edge_to_intervalBU(), gugr::compare_edge_to_intervalTD(), EDGE_NEG_INF, EDGE_POS_INF, gugr::graph_edge_list, gugr::graph_vertex_list, and gul::ndebug.
00151 {
00152 edge_interval *ei = (edge_interval *)p;
00153 cout << "key = {l=" << (void *)ei->l << ", r=" << (void *)ei->r <<
00154 ", v=" << (void *)ei->v << "}";
00155 }
|
|
|
Definition at line 128 of file gugr_regularize.cpp. References guma::BBTNode, and gust::PoolFree().
|
|
|
Definition at line 126 of file gugr_regularize.cpp. References guma::BBTNode, and root.
00126 { return(root.right); }
|
|
||||||||||||||||
|
Definition at line 134 of file gugr_regularize.cpp. References guma::BBTNode, guma::InsertElementIntoBBT(), and root.
00135 {
00136 InsertElementIntoBBT( element, where, side, &root );
00137 }
|
|
|
Definition at line 113 of file gugr_regularize.cpp. References guma::BBTNode, and gust::PoolAlloc().
00114 {
00115 BBTNode *node;
00116 size_t dummy;
00117
00118 node = (BBTNode *)PoolAlloc( sizeof(BBTNode), &dummy );
00119 if( node == NULL ) throw PoolAllocError();
00120 node->key = PoolAlloc( sizeof(edge_interval), &dummy );
00121 if( node->key == NULL ) throw PoolAllocError();
00122
00123 return(node);
00124 }
|
|
|
Definition at line 139 of file gugr_regularize.cpp. References guma::BBTNode, guma::DeleteElementFromBBT(), and root.
00140 {
00141 DeleteElementFromBBT( element, &root );
00142 }
|
|
||||||||||||||||
|
Definition at line 144 of file gugr_regularize.cpp. References guma::BBTNode, root, and guma::SearchElementInBBT().
00146 {
00147 return( SearchElementInBBT(&root, key, compare, element) );
00148 }
|
|
|
Definition at line 104 of file gugr_regularize.cpp. Referenced by edge_interval_tree(), Head(), InsertNode(), RemoveNode(), and SearchNode(). |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001