Empirical
Classes | Public Member Functions | List of all members
emp::RegEx Class Reference

A basic regular expression handler. More...

#include <RegEx.h>

Public Member Functions

 RegEx ()=delete
 
 RegEx (const std::string &r)
 
 RegEx (const RegEx &r)
 
 ~RegEx ()
 
RegExoperator= (const RegEx &r)
 Set this RegEx equal to another. More...
 
std::string AsString () const
 Convert the RegEx to an standard string, readable from outsite this class. More...
 
void AddToNFA (NFA &nfa, size_t start, size_t stop) const
 Add this regex to an NFA being built. More...
 
void Generate () const
 Assume the RegEx is ready and setup processing for it. More...
 
bool Test (const std::string &str) const
 Test if a string statisfies this regex. More...
 
void PrintInternal ()
 For debugging: print the internal representation of the regex. More...
 
void PrintNotes ()
 For debugging: print any internal notes generated about this regex. More...
 
void PrintDebug ()
 Print general debuging information about this regex. More...
 

Detailed Description

A basic regular expression handler.

Constructor & Destructor Documentation

emp::RegEx::RegEx ( )
delete
emp::RegEx::RegEx ( const std::string &  r)
inline
emp::RegEx::RegEx ( const RegEx r)
inline
emp::RegEx::~RegEx ( )
inline

Member Function Documentation

void emp::RegEx::AddToNFA ( NFA nfa,
size_t  start,
size_t  stop 
) const
inline

Add this regex to an NFA being built.

std::string emp::RegEx::AsString ( ) const
inline

Convert the RegEx to an standard string, readable from outsite this class.

void emp::RegEx::Generate ( ) const

Assume the RegEx is ready and setup processing for it.

RegEx& emp::RegEx::operator= ( const RegEx r)
inline

Set this RegEx equal to another.

void emp::RegEx::PrintDebug ( )
inline

Print general debuging information about this regex.

void emp::RegEx::PrintInternal ( )
inline

For debugging: print the internal representation of the regex.

void emp::RegEx::PrintNotes ( )
inline

For debugging: print any internal notes generated about this regex.

bool emp::RegEx::Test ( const std::string &  str) const
inline

Test if a string statisfies this regex.


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