src
Public Member Functions | Public Attributes | List of all members
re2c::nfa_t Struct Reference

#include <nfa.h>

Collaboration diagram for re2c::nfa_t:
Collaboration graph
[legend]

Public Member Functions

 nfa_t (RegExp *re)
 
 ~nfa_t ()
 
 FORBID_COPY (nfa_t)
 

Public Attributes

const uint32_t max_size
 
uint32_t size
 
nfa_state_tstates
 
nfa_state_troot
 

Detailed Description

Definition at line 75 of file nfa.h.

Constructor & Destructor Documentation

re2c::nfa_t::nfa_t ( RegExp re)

Definition at line 12 of file nfa.cc.

13  : max_size(re->calc_size())
14  , size(0)
15  , states(new nfa_state_t[max_size])
16  , root(re->compile(*this, NULL))
17 {}
const uint32_t max_size
Definition: nfa.h:77
uint32_t size
Definition: nfa.h:78
nfa_state_t * root
Definition: nfa.h:80
nfa_state_t * states
Definition: nfa.h:79
re2c::nfa_t::~nfa_t ( )

Definition at line 19 of file nfa.cc.

20 {
21  delete[] states;
22 }
nfa_state_t * states
Definition: nfa.h:79

Member Function Documentation

re2c::nfa_t::FORBID_COPY ( nfa_t  )

Member Data Documentation

const uint32_t re2c::nfa_t::max_size

Definition at line 77 of file nfa.h.

nfa_state_t* re2c::nfa_t::root

Definition at line 80 of file nfa.h.

uint32_t re2c::nfa_t::size

Definition at line 78 of file nfa.h.

nfa_state_t* re2c::nfa_t::states

Definition at line 79 of file nfa.h.


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