File head_partial.hpp¶
-
template<typename ScoreType>
class PartialHead : public IterableIndexedVectorDecorator<IndexedVectorDecorator<AllocatedVector<uint32>, AllocatedVector<ScoreType>>>, public IHead¶ - #include <head_partial.hpp>
A head that contains a numerical score for a subset of the available outputs.
- Template Parameters:
ScoreType – The type of the numerical scores
Public Functions
-
inline PartialHead(uint32 numElements)¶
- Parameters:
numElements – The number of scores that are contained by the head
-
inline virtual void visit(CompleteHeadVisitor<uint8> completeBinaryHeadVisitor, CompleteHeadVisitor<float32> complete32BitHeadVisitor, CompleteHeadVisitor<float64> complete64BitHeadVisitor, PartialHeadVisitor<uint8> partialBinaryHeadVisitor, PartialHeadVisitor<float32> partial32BitHeadVisitor, PartialHeadVisitor<float64> partial64BitHeadVisitor) const override¶
Invokes one of the given visitor functions, depending on which one is able to handle this particular type of head.
- Parameters:
completeBinaryHeadVisitor – A visitor function for handling objects of the type
CompleteHead<uint8>complete32BitHeadVisitor – A visitor function for handling objects of the type
CompleteHead<float32>complete64BitHeadVisitor – A visitor function for handling objects of the type
CompleteHead<float64>partialBinaryHeadVisitor – A visitor function for handling objects of the type
PartialHead<uint8>partial32BitHeadVisitor – A visitor function for handling objects of the type
PartialHead<float32>partial64BitHeadVisitor – A visitor function for handling objects of the type
PartialHead<float64>