|
From: John W. <j_w...@us...> - 2004-12-10 20:52:42
|
Update of /cvsroot/clucene/src/CLucene/index In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6359 Modified Files: TermInfosReader.cpp Log Message: Documented every method of TermInfosReader In the constructor of TermInfosReader - indexInfos initialized to NULL In the destructor of TermInfosReader - Moved destruction of _enum and its InputStream to the destructor of TermInfosReader where it should be - Added close() to destructor of TermInfosReader to be sure an instance will always destroyed properly. In TermInfosReader::readIndex() - indexEnum has become a normal pointer again instead of a reference to the contents of a pointer - InputStream& is has been changed to InputStream *is - removed is.close(); as it is done by destructor of the InputStream is In TermInfosReader::getTerms(const Term& term) - Solved a invalid deletion of memory bug. the call get(term) sometimes returns a NULL which was then deleted. This is now prevented by first checking the returned value of get(term) Ini TermInfosReader::scanEnum(const Term& term) - Replaced the while loop by the call to the new method void scanTo(const Term *Scratch) of the class SegmentTermEnum |