MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
automaton::NFANode Class Reference

#include <automaton/nfa.h>

Public Member Functions

 NFANode ()=default
 
void add_transition (const NFANode *to, std::uint16_t c)
 
std::vector< const NFANode * > get_transitions (std::uint16_t c) const
 
template<class F >
void for_transitions (F &&f, std::uint16_t c) const
 
template<class F >
void for_transitions (F &&f) const
 
bool is_accepting () const
 
void set_accepting (bool accepting)
 
bool is_erroring () const noexcept
 
void set_erroring (bool erroring) noexcept
 

Friends

std::ostream & operator<< (std::ostream &os, const NFANode &node)
 

Detailed Description

Definition at line 12 of file nfa.h.

Constructor & Destructor Documentation

◆ NFANode()

automaton::NFANode::NFANode ( )
default

Member Function Documentation

◆ add_transition()

void automaton::NFANode::add_transition ( const NFANode * to,
std::uint16_t c )

Definition at line 7 of file nfa.cpp.

◆ for_transitions() [1/2]

template<class F >
void automaton::NFANode::for_transitions ( F && f) const
inline

Definition at line 27 of file nfa.h.

◆ for_transitions() [2/2]

template<class F >
void automaton::NFANode::for_transitions ( F && f,
std::uint16_t c ) const
inline

Definition at line 20 of file nfa.h.

◆ get_transitions()

std::vector< const NFANode * > automaton::NFANode::get_transitions ( std::uint16_t c) const

Definition at line 14 of file nfa.cpp.

◆ is_accepting()

bool automaton::NFANode::is_accepting ( ) const
inline

Definition at line 33 of file nfa.h.

◆ is_erroring()

bool automaton::NFANode::is_erroring ( ) const
inlinenoexcept

Definition at line 39 of file nfa.h.

◆ set_accepting()

void automaton::NFANode::set_accepting ( bool accepting)
inline

Definition at line 34 of file nfa.h.

◆ set_erroring()

void automaton::NFANode::set_erroring ( bool erroring)
inlinenoexcept

Definition at line 40 of file nfa.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const NFANode & node )
friend

Definition at line 25 of file nfa.cpp.


The documentation for this class was generated from the following files: