The tarball is available for download. The installation is standard, using the ubiquitous
./configure && make && make install
The package depends on the dvutil, dvnet, dvssl, dvcgi, dvmysql packages.
These are quick design notes.
Classes (in the order we consider them)
word w; istream is; is >> w;
set<string> ignore; istream is; copy(wordstream_iterator(is, ignore), wordstream_iterator(), ostream_iterator<string>(cout,"\n") )
The stringpool is convenient to use:
StringPool pool; string s; string *p; if (p=pool(s)) // s found in pool, p points to the string in the pool .. p = pool[s]; // if s found in pool, same as pool(s) otherwise, s is // added to the pool and then pool(s) is returned.
Index::query(set<string> query, set<string*> filenames)
textindexer-0.2 | [27 March, 2002] |