Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:04

0001 #ifndef Fireworks_Core_TEveElementIter_h
0002 #define Fireworks_Core_TEveElementIter_h
0003 //
0004 //  Description: dumb tree iterator with optional perl style regular expression
0005 //               filter
0006 //
0007 //  Original Author: D.Kovalskyi
0008 //
0009 
0010 #include "TPRegexp.h"
0011 #include <vector>
0012 
0013 class TEveElement;
0014 
0015 class TEveElementIter {
0016   TPRegexp regexp;
0017   std::vector<TEveElement*> elements;
0018   std::vector<TEveElement*>::iterator iter;
0019 
0020 public:
0021   TEveElementIter(TEveElement*, const char* regular_expression = nullptr);
0022   TEveElement* next();
0023   TEveElement* current();
0024   TEveElement* reset();
0025   unsigned int size() { return elements.size(); }
0026 
0027 private:
0028   void addElement(TEveElement*);
0029 };
0030 #endif