reglibcpp
1.3.0
(Naïve) C++ implementation of models for regular languages
|
Contains the reg::dfa class definition. More...
#include <memory>
#include <vector>
#include <valarray>
#include <string>
#include <locale>
#include <codecvt>
Go to the source code of this file.
Classes | |
class | reg::dfa |
Represents deterministic finite automata. More... | |
class | reg::dfa::builder |
Constructs DFAs step by step. More... | |
Functions | |
template<class T > | |
size_t | reg::index_of (vector< T > const &vec, T const &element) |
Basically Java's List interface's indexOf, but as a non-member function and returning the container's size upon failure. More... | |
template size_t | reg::index_of (vector< char32_t > const &vec, char32_t const &element) |
Explicit instantiation for use in other translation units. More... | |
size_t reg::index_of | ( | vector< T > const & | vec, |
T const & | element | ||
) |
Basically Java's List interface's indexOf, but as a non-member function and returning the container's size upon failure.
vec | the container to search through |
element | the element to find the index of |
i
with vec[i]==element
or vec.size()
if none is found template size_t reg::index_of | ( | vector< char32_t > const & | vec, |
char32_t const & | element | ||
) |
Explicit instantiation for use in other translation units.