projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quick fix for WT construction space
[SXSI/XMLTree.git]
/
XMLTree.h
diff --git
a/XMLTree.h
b/XMLTree.h
index
d446ab1
..
2e9e222
100644
(file)
--- a/
XMLTree.h
+++ b/
XMLTree.h
@@
-84,6
+84,8
@@
class XMLTree {
\r
/** Tag sequence represented with a data structure for rank and select */
\r
static_sequence *Tags;
\r
\r
/** Tag sequence represented with a data structure for rank and select */
\r
static_sequence *Tags;
\r
+ uint * tags_fix;
\r
+ uint tags_blen, tags_len;
\r
\r
/** The texts in the XML document */
\r
TextCollection *Text;
\r
\r
/** The texts in the XML document */
\r
TextCollection *Text;
\r
@@
-120,6
+122,7
@@
class XMLTree {
bool disable_tc;
\r
\r
public:
\r
bool disable_tc;
\r
\r
public:
\r
+ void print_stats();
\r
\r
/** Data structure constructor */
\r
XMLTree() {finished = false; initialized = false;};
\r
\r
/** Data structure constructor */
\r
XMLTree() {finished = false; initialized = false;};
\r
@@
-401,7
+404,9
@@
public:
}
\r
\r
uchar* GetCachedText(DocID d) {
\r
}
\r
\r
uchar* GetCachedText(DocID d) {
\r
- return (uchar*) (CachedText.at(d).c_str());
\r
+ uchar * str = (uchar*) calloc(sizeof(char),(CachedText.at(d).size() + 1));
\r
+ strcpy((char*) str,(const char*) CachedText.at(d).c_str());
\r
+ return (uchar*) (str);
\r
}
\r
\r
TextCollection *getTextCollection() {
\r
}
\r
\r
TextCollection *getTextCollection() {
\r