00001 00017 #ifndef NUCVISITOR_H 00018 #define NUCVISITOR_H 00019 00020 #include <map> 00021 00022 namespace GenDecay { 00023 00024 class NucState; 00025 class NucDecay; 00026 00027 class NucVisitor 00028 { 00029 double m_minBranchFraction; 00030 std::map<NucState*,int> m_countMap; 00031 00032 public: 00033 NucVisitor(double min_br = 0.0); 00034 virtual ~NucVisitor(); 00035 00036 void descend(NucState* state); 00037 00039 virtual bool visit(NucState* /*mother*/, NucState* /*daughter*/, NucDecay* /*decay*/) 00040 { return true; } 00041 }; 00042 00043 } 00044 #endif // NUCVISITOR_H