class  NstTreeTraversal  This class implements a standard traversal of the tree
This class implements a standard traversal of the tree. This class has been conceived to be extended.
 
 
 virtual  int  in_action(NstTree* t, NstTree* st, int num)
st -  the current subcomponent of t.
num -  the number of the component.
 virtual  void  post_action(NstTree* t)
 virtual  void  traversal(NstTree* t)
      void NstTreeTraversal::traversal(NstTree* t)
      {
        if (pre_action(t) == 0)
          {
            int stn = 0;
            NstTree* current = t->init();
            while (current)
              {
                stn++;
                if (in_action(t, current, stn) == 0)
                  traversal(current);
                current = t->next();
              }
          }
        post_action(t);
      }
      
this page has been generated automatically by doc++
(c)opyright by  Malte  Zöckler,  Roland Wunderling 
contact:  doc++@zib.de