bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
bux::C_NFA< T_Inputs, T_Action, C_Traits > Class Template Reference

#include <FA.h>

Public Member Functions

 C_NFA ()=default
 
 C_NFA (const C_NFA &a)
 
 C_NFA (C_NFA &&a)
 
 C_NFA (const T_Inputs &inputs)
 
void operator= (const C_NFA &a)
 
void operator= (C_NFA &&a)
 
void operator|= (const C_NFA &a)
 
void operator+= (const C_NFA &a)
 
void operator+= (const T_Inputs &inputs)
 
C_NFAappend (const C_NFA &a)
 
C_NFAappend (const T_Inputs &inputs)
 
C_NFAchangeTo (int options)
 
template<class T >
void setAction (T &&action)
 
size_t totalFinalStates () const
 

Friends

class C_DFA< T_Inputs, T_Action, C_Traits >
 

Detailed Description

template<class T_Inputs, class T_Action, class C_Traits = C_FA_Traits<T_Inputs>>
class bux::C_NFA< T_Inputs, T_Action, C_Traits >
Parameters
T_InputsSet of inputs
T_ActionType of action on final state.
C_TraitsCollection of compile-time decisions

NFA stands for Nondeterministic Finite Automoton

Definition at line 58 of file FA.h.

Constructor & Destructor Documentation

◆ C_NFA() [1/4]

template<class T_Inputs , class T_Action , class C_Traits = C_FA_Traits<T_Inputs>>
bux::C_NFA< T_Inputs, T_Action, C_Traits >::C_NFA ( )
default

◆ C_NFA() [2/4]

template<class T_Inputs , class T_Action , class C_Traits >
bux::C_NFA< T_Inputs, T_Action, C_Traits >::C_NFA ( const C_NFA< T_Inputs, T_Action, C_Traits > & a)

Definition at line 221 of file FA.h.

◆ C_NFA() [3/4]

template<class T_Inputs , class T_Action , class C_Traits >
bux::C_NFA< T_Inputs, T_Action, C_Traits >::C_NFA ( C_NFA< T_Inputs, T_Action, C_Traits > && a)

Definition at line 227 of file FA.h.

◆ C_NFA() [4/4]

template<class T_Inputs , class T_Action , class C_Traits >
bux::C_NFA< T_Inputs, T_Action, C_Traits >::C_NFA ( const T_Inputs & inputs)

Definition at line 234 of file FA.h.

Member Function Documentation

◆ append() [1/2]

template<class T_Inputs , class T_Action , class C_Traits >
C_NFA< T_Inputs, T_Action, C_Traits > & bux::C_NFA< T_Inputs, T_Action, C_Traits >::append ( const C_NFA< T_Inputs, T_Action, C_Traits > & a)

Definition at line 275 of file FA.h.

Referenced by bux::C_NFA< T_Inputs, T_Action, C_Traits >::operator+=(), and bux::C_NFA< T_Inputs, T_Action, C_Traits >::operator+=().

Here is the caller graph for this function:

◆ append() [2/2]

template<class T_Inputs , class T_Action , class C_Traits >
C_NFA< T_Inputs, T_Action, C_Traits > & bux::C_NFA< T_Inputs, T_Action, C_Traits >::append ( const T_Inputs & inputs)

Definition at line 294 of file FA.h.

◆ changeTo()

template<class T_Inputs , class T_Action , class C_Traits >
C_NFA< T_Inputs, T_Action, C_Traits > & bux::C_NFA< T_Inputs, T_Action, C_Traits >::changeTo ( int options)

Definition at line 311 of file FA.h.

References bux::FA_OPTIONAL, and bux::FA_REPEATABLE.

◆ operator+=() [1/2]

template<class T_Inputs , class T_Action , class C_Traits = C_FA_Traits<T_Inputs>>
void bux::C_NFA< T_Inputs, T_Action, C_Traits >::operator+= ( const C_NFA< T_Inputs, T_Action, C_Traits > & a)
inline

Definition at line 76 of file FA.h.

References bux::C_NFA< T_Inputs, T_Action, C_Traits >::append().

◆ operator+=() [2/2]

template<class T_Inputs , class T_Action , class C_Traits = C_FA_Traits<T_Inputs>>
void bux::C_NFA< T_Inputs, T_Action, C_Traits >::operator+= ( const T_Inputs & inputs)
inline

Definition at line 77 of file FA.h.

References bux::C_NFA< T_Inputs, T_Action, C_Traits >::append().

◆ operator=() [1/2]

template<class T_Inputs , class T_Action , class C_Traits >
void bux::C_NFA< T_Inputs, T_Action, C_Traits >::operator= ( C_NFA< T_Inputs, T_Action, C_Traits > && a)

Definition at line 250 of file FA.h.

◆ operator=() [2/2]

template<class T_Inputs , class T_Action , class C_Traits >
void bux::C_NFA< T_Inputs, T_Action, C_Traits >::operator= ( const C_NFA< T_Inputs, T_Action, C_Traits > & a)

Definition at line 242 of file FA.h.

◆ operator|=()

template<class T_Inputs , class T_Action , class C_Traits >
void bux::C_NFA< T_Inputs, T_Action, C_Traits >::operator|= ( const C_NFA< T_Inputs, T_Action, C_Traits > & a)

Definition at line 258 of file FA.h.

◆ setAction()

template<class T_Inputs , class T_Action , class C_Traits >
template<class T >
void bux::C_NFA< T_Inputs, T_Action, C_Traits >::setAction ( T && action)

Definition at line 378 of file FA.h.

◆ totalFinalStates()

template<class T_Inputs , class T_Action , class C_Traits = C_FA_Traits<T_Inputs>>
size_t bux::C_NFA< T_Inputs, T_Action, C_Traits >::totalFinalStates ( ) const
inline

Definition at line 82 of file FA.h.

Friends And Related Symbol Documentation

◆ C_DFA< T_Inputs, T_Action, C_Traits >

template<class T_Inputs , class T_Action , class C_Traits = C_FA_Traits<T_Inputs>>
friend class C_DFA< T_Inputs, T_Action, C_Traits >
friend

Definition at line 117 of file FA.h.


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