#include <OpenMS/ANALYSIS/ID/AhoCorasickAmbiguous.h>
|
T | i_ = std::numeric_limits<T>::max() |
| internal number representation; invalid state by default More...
|
|
An index with 32-bit representing the location of a node Allows to model invalid indices, see isInvalid() and isValid().
◆ Index() [1/2]
default C'tor; creates an invalid index
◆ Index() [2/2]
◆ isInvalid()
constexpr bool isInvalid |
( |
| ) |
const |
|
inlineconstexpr |
is this Index invalid, i.e. should not be dereferenced
◆ isValid()
constexpr bool isValid |
( |
| ) |
const |
|
inlineconstexpr |
is this Index valid, i.e. an actual index into a vector?
◆ operator()()
constexpr T operator() |
( |
| ) |
const |
|
inlineconstexpr |
convert to a number (might be invalid, check with .isValid() first)
◆ operator==()
constexpr bool operator== |
( |
const Index |
other | ) |
const |
|
inlineconstexpr |
◆ pos() [1/2]
allows to set the index, using index.pos() = 3;
or simply read its value
◆ pos() [2/2]
constexpr T pos |
( |
| ) |
const |
|
inlineconstexpr |
allows to read the index, using index.pos()
◆ i_
T i_ = std::numeric_limits<T>::max() |
|
private |