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

#include <Ioss_Glob.h>

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

Public Types

enum class  Type {
  BASIC , ANY , STAR , PLUS ,
  NEG , AT
}
 

Public Member Functions

 StateGroup (Automata< charT > &states, Type type, std::vector< std::unique_ptr< Automata< charT > > > &&automatas)
 
void ResetState () override
 
std::tuple< bool, size_t > BasicCheck (const String< charT > &str, size_t pos)
 
bool Check (const String< charT > &str, size_t pos) override
 
std::tuple< size_t, size_t > Next (const String< charT > &str, size_t pos) override
 
std::tuple< size_t, size_t > NextNeg (const String< charT > &str, size_t pos)
 
std::tuple< size_t, size_t > NextBasic (const String< charT > &str, size_t pos)
 
std::tuple< size_t, size_t > NextAny (const String< charT > &str, size_t pos)
 
std::tuple< size_t, size_t > NextStar (const String< charT > &str, size_t pos)
 
std::tuple< size_t, size_t > NextPlus (const String< charT > &str, size_t pos)
 
- Public Member Functions inherited from Ioss::glob::State< charT >
 State (StateType type, Automata< charT > &states)
 
virtual ~State ()=default
 
StateType Type () const
 
Automata< charT > & GetAutomata ()
 
void AddNextState (size_t state_pos)
 
const std::vector< size_t > & GetNextStates () const
 
const String< charT > & MatchedStr ()
 

Private Attributes

Type type_ {}
 
std::vector< std::unique_ptr< Automata< charT > > > automatas_
 
bool match_one_ {false}
 

Additional Inherited Members

- Protected Member Functions inherited from Ioss::glob::State< charT >
void SetMatchedStr (const String< charT > &str)
 
void SetMatchedStr (charT c)
 

Member Enumeration Documentation

◆ Type

template<class charT >
enum class Ioss::glob::StateGroup::Type
strong
Enumerator
BASIC 
ANY 
STAR 
PLUS 
NEG 
AT 

Constructor & Destructor Documentation

◆ StateGroup()

template<class charT >
Ioss::glob::StateGroup< charT >::StateGroup ( Automata< charT > & states,
Type type,
std::vector< std::unique_ptr< Automata< charT > > > && automatas )
inline

Member Function Documentation

◆ BasicCheck()

template<class charT >
std::tuple< bool, size_t > Ioss::glob::StateGroup< charT >::BasicCheck ( const String< charT > & str,
size_t pos )
inline

◆ Check()

template<class charT >
bool Ioss::glob::StateGroup< charT >::Check ( const String< charT > & str,
size_t pos )
inlineoverridevirtual

◆ Next()

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

◆ NextAny()

template<class charT >
std::tuple< size_t, size_t > Ioss::glob::StateGroup< charT >::NextAny ( const String< charT > & str,
size_t pos )
inline

◆ NextBasic()

template<class charT >
std::tuple< size_t, size_t > Ioss::glob::StateGroup< charT >::NextBasic ( const String< charT > & str,
size_t pos )
inline

◆ NextNeg()

template<class charT >
std::tuple< size_t, size_t > Ioss::glob::StateGroup< charT >::NextNeg ( const String< charT > & str,
size_t pos )
inline

◆ NextPlus()

template<class charT >
std::tuple< size_t, size_t > Ioss::glob::StateGroup< charT >::NextPlus ( const String< charT > & str,
size_t pos )
inline

◆ NextStar()

template<class charT >
std::tuple< size_t, size_t > Ioss::glob::StateGroup< charT >::NextStar ( const String< charT > & str,
size_t pos )
inline

◆ ResetState()

template<class charT >
void Ioss::glob::StateGroup< charT >::ResetState ( )
inlineoverridevirtual

Reimplemented from Ioss::glob::State< charT >.

Member Data Documentation

◆ automatas_

template<class charT >
std::vector<std::unique_ptr<Automata<charT> > > Ioss::glob::StateGroup< charT >::automatas_
private

◆ match_one_

template<class charT >
bool Ioss::glob::StateGroup< charT >::match_one_ {false}
private

◆ type_

template<class charT >
Type Ioss::glob::StateGroup< charT >::type_ {}
private

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