Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/sg/visible_action is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_sg_visible_action
0005 #define tools_sg_visible_action
0006 
0007 #include "matrix_action"
0008 
0009 namespace tools {
0010 namespace sg {
0011 
0012 class visible_action : public matrix_action {
0013   TOOLS_ACTION(visible_action,tools::sg::visible_action,matrix_action)
0014 public:
0015   visible_action(std::ostream& a_out,unsigned int a_ww,unsigned int a_wh)
0016   :parent(a_out,a_ww,a_wh)
0017   ,m_count(0)
0018   {}
0019   virtual ~visible_action(){}
0020 public:
0021   visible_action(const visible_action& a_from)
0022   :parent(a_from)
0023   ,m_count(0)
0024   {}
0025   visible_action& operator=(const visible_action& a_from){
0026     parent::operator=(a_from);
0027     m_count = 0;
0028     return *this;
0029   }
0030 public:
0031   void reset() {m_count = 0;}
0032 
0033   void increment() {m_count++;}
0034   unsigned int count() const {return m_count;}
0035 protected:
0036   unsigned int m_count;
0037 };
0038 
0039 }}
0040 
0041 #endif