#include <OpenMS/ANALYSIS/ID/AhoCorasickAmbiguous.h>
|
| constexpr | Index ()=default |
| | default C'tor; creates an invalid index
|
| |
| constexpr | Index (T val) |
| | C'tor from T.
|
| |
| constexpr bool | isInvalid () const |
| | is this Index invalid, i.e. should not be dereferenced
|
| |
| constexpr bool | isValid () const |
| | is this Index valid, i.e. an actual index into a vector?
|
| |
| constexpr T | operator() () const |
| | convert to a number (might be invalid, check with .isValid() first)
|
| |
| constexpr bool | operator== (const Index other) const |
| | equality operator
|
| |
| constexpr T & | pos () |
| | allows to set the index, using index.pos() = 3; or simply read its value
|
| |
| constexpr T | pos () const |
| | allows to read the index, using index.pos()
|
| |
|
| T | i_ = std::numeric_limits<T>::max() |
| | internal number representation; invalid state by default
|
| |
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 |