File head_complete.hpp¶
-
template<typename ScoreType>
class CompleteHead : public VectorDecorator<AllocatedVector<ScoreType>>, public IHead¶ - #include <head_complete.hpp>
A head that contains a numerical score for each available output.
- Template Parameters:
ScoreType – The type of the numerical scores
Public Types
Public Functions
-
inline CompleteHead(uint32 numElements)¶
- Parameters:
numElements – The number of scores that are contained by the head.
-
inline value_iterator values_begin()¶
Returns a
value_iteratorto the beginning of the scores that are contained by the head.- Returns:
A
value_iteratorto the beginning
-
inline value_iterator values_end()¶
Returns a
value_iteratorto the end of the scores that are contained by the head.- Returns:
A
value_iteratorto the end
-
inline value_const_iterator values_cbegin() const¶
Returns a
value_const_iteratorto the beginning of the scores that are contained by the head.- Returns:
A
value_const_iteratorto the beginning
-
inline value_const_iterator values_cend() const¶
Returns a
value_const_iteratorto the end of the scores that are contained by the head.- Returns:
A
value_const_iteratorto the end
-
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>