#include "CLucene/StdHeader.h" #include "TopDocs.h" #include "ScoreDoc.h" namespace lucene{ namespace search { TopDocs::TopDocs(const int_t th, ScoreDoc **sds, const int_t sdLength): totalHits (th), scoreDocs (sds), scoreDocsLength( sdLength), deleteScoreDocs(true) { } TopDocs::~TopDocs(){ if ( deleteScoreDocs ){ for ( int_t i=0;i