OLD | NEW |
1 /* | 1 /* |
2 ** 2010 August 30 | 2 ** 2010 August 30 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 sqlite3_rtree_dbl *aCoord; /* Coordinates of node or entry to check */ | 91 sqlite3_rtree_dbl *aCoord; /* Coordinates of node or entry to check */ |
92 unsigned int *anQueue; /* Number of pending entries in the queue */ | 92 unsigned int *anQueue; /* Number of pending entries in the queue */ |
93 int nCoord; /* Number of coordinates */ | 93 int nCoord; /* Number of coordinates */ |
94 int iLevel; /* Level of current node or entry */ | 94 int iLevel; /* Level of current node or entry */ |
95 int mxLevel; /* The largest iLevel value in the tree */ | 95 int mxLevel; /* The largest iLevel value in the tree */ |
96 sqlite3_int64 iRowid; /* Rowid for current entry */ | 96 sqlite3_int64 iRowid; /* Rowid for current entry */ |
97 sqlite3_rtree_dbl rParentScore; /* Score of parent node */ | 97 sqlite3_rtree_dbl rParentScore; /* Score of parent node */ |
98 int eParentWithin; /* Visibility of parent node */ | 98 int eParentWithin; /* Visibility of parent node */ |
99 int eWithin; /* OUT: Visiblity */ | 99 int eWithin; /* OUT: Visiblity */ |
100 sqlite3_rtree_dbl rScore; /* OUT: Write the score here */ | 100 sqlite3_rtree_dbl rScore; /* OUT: Write the score here */ |
| 101 /* The following fields are only available in 3.8.11 and later */ |
| 102 sqlite3_value **apSqlParam; /* Original SQL values of parameters */ |
101 }; | 103 }; |
102 | 104 |
103 /* | 105 /* |
104 ** Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin. | 106 ** Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin. |
105 */ | 107 */ |
106 #define NOT_WITHIN 0 /* Object completely outside of query region */ | 108 #define NOT_WITHIN 0 /* Object completely outside of query region */ |
107 #define PARTLY_WITHIN 1 /* Object partially overlaps query region */ | 109 #define PARTLY_WITHIN 1 /* Object partially overlaps query region */ |
108 #define FULLY_WITHIN 2 /* Object fully contained within query region */ | 110 #define FULLY_WITHIN 2 /* Object fully contained within query region */ |
109 | 111 |
110 | 112 |
111 #ifdef __cplusplus | 113 #ifdef __cplusplus |
112 } /* end of the 'extern "C"' block */ | 114 } /* end of the 'extern "C"' block */ |
113 #endif | 115 #endif |
114 | 116 |
115 #endif /* ifndef _SQLITE3RTREE_H_ */ | 117 #endif /* ifndef _SQLITE3RTREE_H_ */ |
OLD | NEW |