arcstk::v_1_0_0::ListMatcher class final

Match a set of actual Checksums against a list of reference Checksums.

The ListMatcher implements the same logic as the AlbumMatcher but accepts a single list of reference values instead of an ARResponse.

Check whether a list of Checksums matches a list of reference values. This targets the situation where the caller already has local reference values, say, from a logfile. The actual Checksums are just compared to the reference values in their respective order and the resulting Match will have set the ARId match flag to TRUE.

Constructors, destructors, conversion operators

template<typename Container, typename = IsChecksumContainer<Container>>
ListMatcher(const Checksums& checksums, Container&& reflist)
Constructor.
ListMatcher(const ListMatcher& rhs)
Copy constructor.
ListMatcher(ListMatcher&& rhs) noexcept
Move constructor.
~ListMatcher() final noexcept
Default destructor.

Function documentation

template<typename Container, typename = IsChecksumContainer<Container>>
arcstk::v_1_0_0::ListMatcher::ListMatcher(const Checksums& checksums, Container&& reflist)

Constructor.

Parameters
checksums in The checksums to match
reflist in The list of reference checksums to be matched
Exceptions
out_of_range If checksums.size() != reflist.size() or some size() is 0

arcstk::v_1_0_0::ListMatcher::ListMatcher(const ListMatcher& rhs)

Copy constructor.

Parameters
rhs in Instance to copy

arcstk::v_1_0_0::ListMatcher::ListMatcher(ListMatcher&& rhs) noexcept

Move constructor.

Parameters
rhs in Instance to move