]> granicus.if.org Git - graphviz/commitdiff
add comments to struct maze
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Tue, 26 Apr 2022 05:20:29 +0000 (08:20 +0300)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 5 May 2022 04:41:50 +0000 (21:41 -0700)
The ordered sets are created by `dtopen` with descriptor `chanItemDisc`
and method `Dtoset`.

The method is defined with

 #define DT_OSET         0000004 /* ordered set (self-adjusting tree)    */

Channels are added with function `addChan` and are retrieved by `chanSearch`

lib/ortho/maze.h

index 005b86181f0011041b9511098013631d011aaf47..a429326ec451946eaf62ccf0e08258653f9126e5 100644 (file)
@@ -66,9 +66,9 @@ typedef struct {
   int ncells, ngcells;
   cell* cells;     ///< @brief cells not corresponding to graph nodes
   cell* gcells;    ///< @brief cells corresponding to graph nodes
-  sgraph* sg;
-  Dt_t* hchans;
-  Dt_t* vchans;
+  sgraph* sg;      ///< @brief search graph
+  Dt_t* hchans;    ///< @brief set of horizontal @ref channel "channels", created by @ref extractHChans.
+  Dt_t* vchans;    ///< @brief set of vertical @ref channel "channels", created by @ref extractVChans
 } maze;
 
 extern maze* mkMaze(graph_t*);