Example #1
0
nrex::~nrex()
{
    if (_root)
    {
        NREX_DELETE(_root);
    }
}
Example #2
0
 virtual ~nrex_node_quantifier()
 {
     if (child)
     {
         NREX_DELETE(child);
     }
 }
Example #3
0
 virtual ~nrex_node()
 {
     if (next)
     {
         NREX_DELETE(next);
     }
 }
Example #4
0
        virtual ~nrex_node_group()
        {
            for (unsigned int i = 0; i < childset.size(); ++i)
            {
                NREX_DELETE(childset[i]);
            }

        }
Example #5
0
void nrex::reset()
{
    _capturing = 0;
    if (_root)
    {
        NREX_DELETE(_root);
    }
    _root = NULL;
}
Example #6
0
void nrex::reset()
{
    _capturing = 0;
    _lookahead_depth = 0;
    if (_root)
    {
        NREX_DELETE(_root);
    }
    _root = NULL;
}
Example #7
0
 void pop_back()
 {
     if (back)
     {
         nrex_node* old = back;
         if (!old->previous)
         {
             childset.pop();
         }
         if (mode != Bracket)
         {
             increment_length(old->length, true);
         }
         back = old->previous;
         NREX_DELETE(old);
     }
 }