IOSS 2.0
Loading...
Searching...
No Matches
Ioss::glob::State< charT > Class Template Referenceabstract

#include <Ioss_Glob.h>

Inheritance diagram for Ioss::glob::State< charT >:
[legend]

Public Member Functions

 State (StateType type, Automata< charT > &states)
 
virtual ~State ()=default
 
virtual bool Check (const String< charT > &str, size_t pos)=0
 
virtual std::tuple< size_t, size_t > Next (const String< charT > &str, size_t pos)=0
 
StateType Type () const
 
Automata< charT > & GetAutomata ()
 
void AddNextState (size_t state_pos)
 
const std::vector< size_t > & GetNextStates () const
 
const String< charT > & MatchedStr ()
 
virtual void ResetState ()
 

Protected Member Functions

void SetMatchedStr (const String< charT > &str)
 
void SetMatchedStr (charT c)
 

Private Attributes

StateType type_
 
Automata< charT > & states_
 
std::vector< size_t > next_states_
 
String< charT > matched_str_
 

Constructor & Destructor Documentation

◆ State()

template<class charT >
Ioss::glob::State< charT >::State ( StateType type,
Automata< charT > & states )
inline

◆ ~State()

template<class charT >
virtual Ioss::glob::State< charT >::~State ( )
virtualdefault

Member Function Documentation

◆ AddNextState()

template<class charT >
void Ioss::glob::State< charT >::AddNextState ( size_t state_pos)
inline

◆ Check()

◆ GetAutomata()

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

◆ GetNextStates()

template<class charT >
const std::vector< size_t > & Ioss::glob::State< charT >::GetNextStates ( ) const
inline

◆ MatchedStr()

template<class charT >
const String< charT > & Ioss::glob::State< charT >::MatchedStr ( )
inline

◆ Next()

template<class charT >
virtual std::tuple< size_t, size_t > Ioss::glob::State< charT >::Next ( const String< charT > & str,
size_t pos )
pure virtual

◆ ResetState()

template<class charT >
virtual void Ioss::glob::State< charT >::ResetState ( )
inlinevirtual

◆ SetMatchedStr() [1/2]

template<class charT >
void Ioss::glob::State< charT >::SetMatchedStr ( charT c)
inlineprotected

◆ SetMatchedStr() [2/2]

template<class charT >
void Ioss::glob::State< charT >::SetMatchedStr ( const String< charT > & str)
inlineprotected

◆ Type()

template<class charT >
StateType Ioss::glob::State< charT >::Type ( ) const
inline

Member Data Documentation

◆ matched_str_

template<class charT >
String<charT> Ioss::glob::State< charT >::matched_str_
private

◆ next_states_

template<class charT >
std::vector<size_t> Ioss::glob::State< charT >::next_states_
private

◆ states_

template<class charT >
Automata<charT>& Ioss::glob::State< charT >::states_
private

◆ type_

template<class charT >
StateType Ioss::glob::State< charT >::type_
private

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