|
| tDFA (size_t num_states=0) |
|
| tDFA (const tDFA< NUM_SYMBOLS, STOP_TYPE > &)=default |
|
| ~tDFA () |
|
tDFA< NUM_SYMBOLS, STOP_TYPE > & | operator= (const tDFA< NUM_SYMBOLS, STOP_TYPE > &)=default |
|
size_t | GetSize () const |
| How many states is this DFA using? More...
|
|
void | Resize (size_t new_size) |
| Add Additional empty states. More...
|
|
const emp::array< int, NUM_SYMBOLS > & | GetTransitions (size_t from) const |
| Return an array of all transitions associated with a specified state. More...
|
|
void | SetTransition (size_t from, size_t to, size_t sym) |
| Add a specific transition associated with an input symbol. More...
|
|
void | SetStop (size_t state, stop_t stop_val=1) |
| Set the stop value (no matter what it currently is) More...
|
|
void | AddStop (size_t state, stop_t stop_val=1) |
| Set the stop value only if it's higher than the current stop value. More...
|
|
stop_t | GetStop (int state) const |
| Get the stop value associated with a state. More...
|
|
bool | IsActive (int state) const |
| Test if a state is still valid. More...
|
|
bool | IsStop (int state) const |
| Test if a state has a stop. More...
|
|
stop_t | GetStop (size_t state) const |
|
bool | IsActive (size_t state) const |
|
bool | IsStop (size_t state) const |
|
int | Next (int state, size_t sym) const |
| Return the new state after a symbol occurs. More...
|
|
int | Next (int state, std::string sym_set) const |
| Return the new state after a series of symbols. More...
|
|
stop_t | Test (const std::string &str) const |
| Determine if an entire series of symbols is valid. More...
|
|
void | Print (std::ostream &os=std::cout) |
| Print details about this DFA. More...
|
|