File head_complete.hpp

class CompleteHead : public VectorDecorator<AllocatedVector<float64>>, public IHead
#include <head_complete.hpp>

A head that contains a numerical score for each available label.

Public Types

typedef View<float64>::iterator value_iterator

An iterator that provides access to the scores the are contained by the head and allows to modify them.

typedef View<float64>::const_iterator value_const_iterator

An iterator that provides read-only access to the scores that are contained by the head.

Public Functions

CompleteHead(uint32 numElements)
Parameters:

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

value_iterator values_begin()

Returns a value_iterator to the beginning of the scores that are contained by the head.

Returns:

A value_iterator to the beginning

value_iterator values_end()

Returns a value_iterator to the end of the scores that are contained by the head.

Returns:

A value_iterator to the end

value_const_iterator values_cbegin() const

Returns a value_const_iterator to the beginning of the scores that are contained by the head.

Returns:

A value_const_iterator to the beginning

value_const_iterator values_cend() const

Returns a value_const_iterator to the end of the scores that are contained by the head.

Returns:

A value_const_iterator to the end

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