Commit b2f29b2a authored by C. Finck [IPHC]'s avatar C. Finck [IPHC]
Browse files

Add operator *=

git-svn-id: svn+ssh://anonsvn.in2p3.fr/agata/gammaware/trunk@1725 c3abf467-7ff2-0310-b516-c5fb849bdde0
parent e0b7d507
......@@ -84,6 +84,12 @@ void Parity::Set(const char *s)
}
}
Parity& Parity::operator*= (Parity& p)
{
fParity *= p.fParity;
return *this;
}
std::ostream & operator << (std::ostream &out, const Parity &p)
{
string sep1, sep2;
......
......@@ -65,9 +65,12 @@ public:
//! set the value, can be overloaded
virtual void Set(const char *s) ;
//! rootcint dictionary
ClassDef(Parity,1); // the parity quantum number
//! overload operator *
Parity& operator*= (Parity& p);
//! rootcint dictionary
ClassDef(Parity,1); // the parity quantum number
};
// inline members
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment