Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
427b4971
Commit
427b4971
authored
10 years ago
by
Alexandr
Browse files
Options
Downloads
Patches
Plain Diff
added several comments to rtree.h
parent
fe504b98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/salad/rtree.h
+15
-0
15 additions, 0 deletions
src/lib/salad/rtree.h
with
15 additions
and
0 deletions
src/lib/salad/rtree.h
+
15
−
0
View file @
427b4971
...
...
@@ -110,17 +110,32 @@ struct rtree
rtree_page_free_t
page_free
;
};
/* Struct for iteration and retrieving rtree values */
struct
rtree_iterator
{
/* Pointer to rtree */
const
struct
rtree
*
tree
;
/* Rectangle of current iteration operation */
struct
rtree_rect
rect
;
/* Type of current iteration operation */
enum
spatial_search_op
op
;
/* Flag that means that no more values left */
bool
eof
;
/* A verion of a tree when the iterator was created */
int
version
;
/* Special single-linked list of closest neqighbors
* Used only for iteration with op = SOP_NEIGHBOR
* For allocating list entries, page allocator of tree is used.
* Allocated page is much bigger than list entry and thus
* provides several list entries.
*/
struct
rtree_neighbor
*
neigh_list
;
/* List of unused (deleted) list entries */
struct
rtree_neighbor
*
neigh_free_list
;
/* List of tree pages, allocated for list entries */
struct
rtree_neighbor_page
*
page_list
;
/* Position of ready-to-use list entry in allocated page */
int
page_pos
;
rtree_comparator_t
intr_cmp
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment