Hit Struct Reference

#include <OpenMS/ANALYSIS/ID/AhoCorasickAmbiguous.h>

Collaboration diagram for Hit:

Public Types

using T = uint32_t

Public Member Functions

 Hit ()=default
 Hit (T needle_index, T needle_length, T query_pos)
bool operator== (const Hit &rhs) const

Public Attributes

T needle_index
T needle_length
T query_pos

Detailed Description

Represents a needle found in the query. A needle (at position needle_index, as passed into ACTrie's addNeedle()) of length needle_length was found in the haystack (query) at position query_pos

Member Typedef Documentation

◆ T

using T = uint32_t

Constructor & Destructor Documentation

◆ Hit() [1/2]

Hit ( )

◆ Hit() [2/2]

Hit ( T  needle_index,
T  needle_length,
T  query_pos 

Member Function Documentation

◆ operator==()

bool operator== ( const Hit rhs) const

Member Data Documentation

◆ needle_index

T needle_index

Referenced by Hit::operator==().

◆ needle_length

T needle_length

Referenced by Hit::operator==().

◆ query_pos

T query_pos

Referenced by Hit::operator==().