IOSS 2.0
Loading...
Searching...
No Matches
Ioss::glob::Automata< charT > Class Template Reference

#include <Ioss_Glob.h>

Public Member Functions

 Automata ()=default
 
 Automata (const Automata< charT > &)=delete
 
Automata< charT > & operator= (const Automata< charT > &automata)=delete
 
 Automata (Automata< charT > &&automata)
 
Automata< charT > & operator= (Automata< charT > &&automata)
 
const State< charT > & GetState (size_t pos) const
 
State< charT > & GetState (size_t pos)
 
size_t FailState () const
 
Automata< charT > & SetFailState (size_t state_pos)
 
Automata< charT > & SetMatchState (size_t state_pos)
 
size_t GetNumStates () const
 
std::tuple< bool, size_t > Exec (const String< charT > &str, bool comp_end=true)
 
std::vector< String< charT > > GetMatchedStrings () const
 
template<class T , typename... Args>
size_t NewState (Args &&...args)
 

Public Attributes

size_t fail_state_ {0}
 

Private Member Functions

std::tuple< bool, size_t > ExecAux (const String< charT > &str, bool comp_end=true) const
 
void ResetStates ()
 

Private Attributes

std::vector< std::unique_ptr< State< charT > > > states_
 
size_t match_state_
 
size_t start_state_ {0}
 

Constructor & Destructor Documentation

◆ Automata() [1/3]

template<class charT >
Ioss::glob::Automata< charT >::Automata ( )
default

◆ Automata() [2/3]

template<class charT >
Ioss::glob::Automata< charT >::Automata ( const Automata< charT > & )
delete

◆ Automata() [3/3]

template<class charT >
Ioss::glob::Automata< charT >::Automata ( Automata< charT > && automata)
inline

Member Function Documentation

◆ Exec()

template<class charT >
std::tuple< bool, size_t > Ioss::glob::Automata< charT >::Exec ( const String< charT > & str,
bool comp_end = true )
inline

◆ ExecAux()

template<class charT >
std::tuple< bool, size_t > Ioss::glob::Automata< charT >::ExecAux ( const String< charT > & str,
bool comp_end = true ) const
inlineprivate

◆ FailState()

template<class charT >
size_t Ioss::glob::Automata< charT >::FailState ( ) const
inline

◆ GetMatchedStrings()

template<class charT >
std::vector< String< charT > > Ioss::glob::Automata< charT >::GetMatchedStrings ( ) const
inline

◆ GetNumStates()

template<class charT >
size_t Ioss::glob::Automata< charT >::GetNumStates ( ) const
inline

◆ GetState() [1/2]

template<class charT >
State< charT > & Ioss::glob::Automata< charT >::GetState ( size_t pos)
inline

◆ GetState() [2/2]

template<class charT >
const State< charT > & Ioss::glob::Automata< charT >::GetState ( size_t pos) const
inline

◆ NewState()

template<class charT >
template<class T , typename... Args>
size_t Ioss::glob::Automata< charT >::NewState ( Args &&... args)
inline

◆ operator=() [1/2]

template<class charT >
Automata< charT > & Ioss::glob::Automata< charT >::operator= ( Automata< charT > && automata)
inline

◆ operator=() [2/2]

template<class charT >
Automata< charT > & Ioss::glob::Automata< charT >::operator= ( const Automata< charT > & automata)
delete

◆ ResetStates()

template<class charT >
void Ioss::glob::Automata< charT >::ResetStates ( )
inlineprivate

◆ SetFailState()

template<class charT >
Automata< charT > & Ioss::glob::Automata< charT >::SetFailState ( size_t state_pos)
inline

◆ SetMatchState()

template<class charT >
Automata< charT > & Ioss::glob::Automata< charT >::SetMatchState ( size_t state_pos)
inline

Member Data Documentation

◆ fail_state_

template<class charT >
size_t Ioss::glob::Automata< charT >::fail_state_ {0}

◆ match_state_

template<class charT >
size_t Ioss::glob::Automata< charT >::match_state_
private

◆ start_state_

template<class charT >
size_t Ioss::glob::Automata< charT >::start_state_ {0}
private

◆ states_

template<class charT >
std::vector<std::unique_ptr<State<charT> > > Ioss::glob::Automata< charT >::states_
private

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