Gecode::REG::Exp Class Reference
Implementation of the actual expression tree. More...
Public Types | |
enum | ExpType { ET_SYMBOL, ET_CONC, ET_OR, ET_STAR } |
Type of regular expression. More... | |
Public Member Functions | |
MiniModel::PosSet * | followpos (MiniModel::PosSetAllocator &, MiniModel::PosInfo *) |
void | inc (void) |
void | dec (void) |
int | n_pos (void) const |
template<class Char , class Traits > | |
std::basic_ostream< Char, Traits > & | print (std::basic_ostream< Char, Traits > &os) const |
Print expression. | |
Static Public Member Functions | |
static void * | operator new (size_t) |
static void | operator delete (void *) |
Public Attributes | |
unsigned int | use_cnt |
Reference counter. | |
int | _n_pos |
Number of positions. | |
ExpType | type |
Type of regular expression. | |
union { | |
int symbol | |
Symbol. | |
Exp * kids [2] | |
Subexpressions. | |
} | data |
Symbol or subexpressions. |
Detailed Description
Implementation of the actual expression tree.
Definition at line 56 of file reg.cpp.
Member Enumeration Documentation
Member Function Documentation
MiniModel::PosSet * Gecode::REG::Exp::followpos | ( | MiniModel::PosSetAllocator & | psm, | |
MiniModel::PosInfo * | pi | |||
) | [inline] |
template<class Char , class Traits >
std::basic_ostream< Char, Traits > & Gecode::REG::Exp::print | ( | std::basic_ostream< Char, Traits > & | os | ) | const [inline] |
void * Gecode::REG::Exp::operator new | ( | size_t | s | ) | [inline, static] |
void Gecode::REG::Exp::operator delete | ( | void * | ) | [inline, static] |
Member Data Documentation
unsigned int Gecode::REG::Exp::use_cnt |
union { ... } Gecode::REG::Exp::data |
Symbol or subexpressions.
The documentation for this class was generated from the following files:
- gecode/minimodel/reg.cpp (Revision: 11279)
- gecode/minimodel/reg.hpp (Revision: 7995)