/** The texts in the XML document */\r
TextCollection *Text;\r
\r
- /** The texts in the XML document (cached for faster display) */\r
- vector<string> *CachedText;\r
-\r
// Allows to disable the TextCollection for benchmarkin purposes\r
bool disable_tc;\r
\r
\r
// non const pointer are freed by this method.\r
XMLTree( pb * const par, uint npar, vector<string> * const TN, TagIdMap * const tim, uint *empty_texts_bmp, TagType *tags,\r
- TextCollection * const TC, vector<string> * const CT, bool dis_tc);\r
+ TextCollection * const TC, bool dis_tc);\r
\r
public: \r
/** Data structure destructor */\r
\r
/** GetText(i, j): returns the texts corresponding to documents with\r
* ids i, i+1, ..., j. Texts are separated by '\0' character. */\r
- uchar* GetText(DocID i, DocID j) {\r
- uchar * s = Text->GetText(i, j);\r
- return (s[0] == 1 ? (uchar*)"" : s);\r
- }\r
+ // uchar* GetText(DocID i, DocID j) {\r
+ // uchar * s = Text->GetText(i, j);\r
+ // return (s[0] == 1 ? (uchar*)"" : s);\r
+ //}\r
\r
- uchar* GetCachedText(DocID d) {\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
return Text;\r
}\r