kaori
A C++ library for barcode extraction and matching
Loading...
Searching...
No Matches
Public Attributes | List of all members
kaori::SimpleBarcodeSearch::State Struct Reference

State of the search. More...

#include <BarcodeSearch.hpp>

Public Attributes

int index = 0
 
int mismatches = 0
 

Detailed Description

State of the search.

This contains both the results of the search for any given input sequence, as well as cached mismatches to optimize searches for future inputs.

Member Data Documentation

◆ index

int kaori::SimpleBarcodeSearch::State::index = 0

Index of the known sequence that matches best to the input sequence in search() (i.e., fewest total mismatches). If no match was found or if the best match is ambiguous, this will be set to -1.

◆ mismatches

int kaori::SimpleBarcodeSearch::State::mismatches = 0

Number of mismatches with the matching known sequence. This should only be used if index != -1.


The documentation for this struct was generated from the following file: