CASRSVocManHwDevice Class Reference

class CASRSVocManHwDevice : public CASRSHwDevice

Class for pruning When the grammar starts to get big, this class can prune least used rule variants away before adding new rules.

AsrsVocmanHwDevice.dll
Since
?Series60_version

Inherits from

Constructor & Destructor Documentation

CASRSVocManHwDevice()

CASRSVocManHwDevice()[private]
From ?base_class ?member_description.
Since
?Series60_version
Since
?Series60_version

~CASRSVocManHwDevice()

IMPORT_C~CASRSVocManHwDevice()[virtual]

Destructor.

Member Functions Documentation

AdaptL(const TSIRuleVariantID, CSIRule &)

IMPORT_C voidAdaptL(const TSIRuleVariantIDaCorrectRuleVariantID,
CSIRule &aRule
)
Use to adapt rule after recognition
Since
2.6

Parameters

const TSIRuleVariantID aCorrectRuleVariantIDCorrectly recognized rule variant
CSIRule & aRuleRule including correct variant

Clear()

voidClear()[virtual]
From CASRHwDevice Clear HW Device's allocated memory
Since
2.8

ComputeNRuleVariantsL(const CSIGrammar &, const TUint32, const TUint32, const RArray< TUint > &, RArray< TUint > &, TUint32 &)

IMPORT_C voidComputeNRuleVariantsL(const CSIGrammar &aGrammar,
const TUint32aTargetNRuleVariants,
const TUint32aMaxNRuleVariants,
const RArray< TUint > &aNewRuleScores,
RArray< TUint > &aNNewRuleVariants,
TUint32 &aNPrune
)
Use to determine number of new rule variants
Since
2.6

Parameters

const CSIGrammar & aGrammarGrammar where new variants should be added to
const TUint32 aTargetNRuleVariantsTarget number of rule variants in the grammar
const TUint32 aMaxNRuleVariantsMaximum number of rule variants in the grammar
const RArray< TUint > & aNewRuleScoresScore for each new rule
RArray< TUint > & aNNewRuleVariants
TUint32 & aNPrune

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CustomInterface(TUid)

TAny *CustomInterface(TUidaInterfaceUid)[virtual]
From CASRHwDevice Gets a custom interface
Since
2.8

Parameters

TUid aInterfaceUidUid of the interface.

InitializeL()

voidInitializeL()[virtual]
From CASRHwDevice Initializes the HW Device
Since
2.8

NewL()

IMPORT_C CASRSVocManHwDevice *NewL()[static]

Two-phased constructor.

Prune(const CSIGrammar &, TUint32, RArray< TSIRuleVariantInfo > &)

IMPORT_C TBoolPrune(const CSIGrammar &aGrammar,
TUint32aMinNumber,
RArray< TSIRuleVariantInfo > &aPrunedItems
)
Use to prune grammar.
Since
2.6

Parameters

const CSIGrammar & aGrammarGrammar to be pruned
TUint32 aMinNumberMinimum number of items to be pruned
RArray< TSIRuleVariantInfo > & aPrunedItemsInformation which items can be removed

Member Data Documentation

TAny * iReserved

TAny *iReserved[private]

CVocManAlgorithm * iVMAlgorithm

CVocManAlgorithm *iVMAlgorithm[private]