Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
NFA::StateTransitionsByChar Struct Reference
Collaboration diagram for NFA::StateTransitionsByChar:

Public Member Functions

 StateTransitionsByChar (U8 inC, Uptr inNumStates)
 
 StateTransitionsByChar (StateTransitionsByChar &&inMove)
 
 ~StateTransitionsByChar ()
 
void operator= (StateTransitionsByChar &&inMove)
 
bool operator< (const StateTransitionsByChar &right) const
 
bool operator!= (const StateTransitionsByChar &right) const
 

Public Attributes

U8 c
 
StateIndexnextStateByInitialState
 
Uptr numStates
 

Detailed Description

Definition at line 286 of file NFA.cpp.

Constructor & Destructor Documentation

◆ StateTransitionsByChar() [1/2]

NFA::StateTransitionsByChar::StateTransitionsByChar ( U8 inC,
Uptr inNumStates )
inline

Definition at line 291 of file NFA.cpp.

291: c(inC), nextStateByInitialState(nullptr), numStates(inNumStates) {}
StateIndex * nextStateByInitialState
Definition NFA.cpp:289

◆ StateTransitionsByChar() [2/2]

NFA::StateTransitionsByChar::StateTransitionsByChar ( StateTransitionsByChar && inMove)
inline

Definition at line 292 of file NFA.cpp.

293 : c(inMove.c), nextStateByInitialState(inMove.nextStateByInitialState), numStates(inMove.numStates)
294 {
295 inMove.nextStateByInitialState = nullptr;
296 }

◆ ~StateTransitionsByChar()

NFA::StateTransitionsByChar::~StateTransitionsByChar ( )
inline

Definition at line 297 of file NFA.cpp.

Member Function Documentation

◆ operator!=()

bool NFA::StateTransitionsByChar::operator!= ( const StateTransitionsByChar & right) const
inline

Definition at line 312 of file NFA.cpp.

313 {
314 WAVM_ASSERT_THROW(numStates == right.numStates);
315 return memcmp(nextStateByInitialState,right.nextStateByInitialState,sizeof(StateIndex)*numStates) != 0;
316 }
#define WAVM_ASSERT_THROW(cond)
Definition Errors.h:29
I16 StateIndex
Definition NFA.h:14

◆ operator<()

bool NFA::StateTransitionsByChar::operator< ( const StateTransitionsByChar & right) const
inline

Definition at line 307 of file NFA.cpp.

308 {
309 WAVM_ASSERT_THROW(numStates == right.numStates);
310 return memcmp(nextStateByInitialState,right.nextStateByInitialState,sizeof(StateIndex)*numStates) < 0;
311 }

◆ operator=()

void NFA::StateTransitionsByChar::operator= ( StateTransitionsByChar && inMove)
inline

Definition at line 299 of file NFA.cpp.

300 {
301 c = inMove.c;
302 nextStateByInitialState = inMove.nextStateByInitialState;
303 numStates = inMove.numStates;
304 inMove.nextStateByInitialState = nullptr;
305 }

Member Data Documentation

◆ c

U8 NFA::StateTransitionsByChar::c

Definition at line 288 of file NFA.cpp.

◆ nextStateByInitialState

StateIndex* NFA::StateTransitionsByChar::nextStateByInitialState

Definition at line 289 of file NFA.cpp.

◆ numStates

Uptr NFA::StateTransitionsByChar::numStates

Definition at line 290 of file NFA.cpp.


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