Boost R-tree是否支持层次结构遍历?

时间:2016-05-20 04:05:01

标签: c++ boost r-tree

Boost中的R-tree似乎不支持层次结构遍历。

具体来说,我希望获得R树的<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min.js"></script> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>TEST</title> <!-- JQuery 1.12.3 JS --> <script src="../js/jquery-1.12.3.min.js"></script> </head> <body> <table> <tr> <td><label class="control-label">Mode</label></td> <td>&nbsp; <label><input type="radio" name="payMode" value="cash" checked>Cash</label> <label><input type="radio" name="payMode" value="cheque">Cheque</label> </td> </tr> <tr> <td><label>Cheque No</label></td> <td><input type="number" name="chequeNo" pattern="^[0-9]" min="0" step="1" class="form-control" placeholder="Enter Cheque No" disabled></td> </tr> <tr> <td><label>Cheque Date</label></td> <td><input type="date" name="chequeDate" class="form-control" placeholder="Enter Cheque Date" disabled></td> </tr> </table> </body> </html>节点,然后获取节点的子节点。

Boost R-tree是否支持层次结构遍历?

1 个答案:

答案 0 :(得分:0)

如果这是XY问题。你想做什么?

关于你的问题。用户定义的树遍历不受官方支持。但是,如果您不想在内部挖掘,那么您可以编写自己的节点访问者,如下所示:

https://github.com/boostorg/geometry/blob/develop/include/boost/geometry/index/detail/rtree/utilities/print.hpp#L133

并像这样使用它:

https://github.com/boostorg/geometry/blob/develop/include/boost/geometry/index/detail/rtree/utilities/print.hpp#L200