CWeighterFactory Class

# CWeighterFactory Class Reference

[CADIHash.h Index] [CADIHash.h Hierarchy]

A factory for weighting functions with associated normalizers More...

`#include <../libInvertedFile/include/CQInvertedFile.h>`

Inherits: map

## Public Members

- CWeighter* newWeighter (const string& inID)
- CWeighterFactory ()
- ~CWeighterFactory ()

## Detailed Description

A factory for weighting functions with associated normalizers.The weighting functions are intended to be members of CQInvertedFile where they will be used.

## CWeighter* newWeighter(const string& inID)

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.

## CWeighterFactory()

constructor: initializes everythingfills the map etc.

## ~CWeighterFactory()

Destructor deletes the content it points to

| Kdoc