File head_partial.hpp

class PartialHead : public IterableIndexedVectorDecorator<IndexedVectorDecorator<AllocatedVector<uint32>, AllocatedVector<float64>>>, public IHead
#include <head_partial.hpp>

A head that contains a numerical score for a subset of the available labels.

Public Functions

PartialHead(uint32 numElements)
Parameters:

numElements – The number of scores that are contained by the head

virtual void visit(CompleteHeadVisitor completeHeadVisitor, PartialHeadVisitor partialHeadVisitor) const override

Invokes one of the given visitor functions, depending on which one is able to handle this particular type of head.

Parameters:
  • completeHeadVisitor – The visitor function for handling objects of the type CompleteHead

  • partialHeadVisitor – The visitor function for handling objects of the type PartialHead