A factory for weighting functions with associated normalizers. More...
#include <CQInvertedFile.h>
Public Member Functions | |
| CWeighter * | newWeighter (const string &inID) const |
| clones a weighter from the factory and sets the pointers in a way, that normalizers etc. More... | |
| CWeighterFactory () | |
| constructor: initializes everything fills the map etc. | |
| ~CWeighterFactory () | |
| Destructor deletes the content it points to. | |
A factory for weighting functions with associated normalizers.
The weighting functions are intended to be members of CQInvertedFile where they will be used.
| CWeighter* CWeighterFactory::newWeighter | ( | const string & | inID | ) | const |
clones a weighter from the factory and sets the pointers in a way, that normalizers etc.
are pointing in the right way to each other.
However, you still have to set the accessor Why not set it at once? Maybe.