RestFrames
v1.0.1
RestFrames HEP Event Analysis Software Library
|
Go to the documentation of this file.
35 namespace RestFrames {
58 RFCharge(
int charge_num,
int charge_den);
103 RFCharge operator + (
int val)
const;
106 RFCharge operator - (
int val)
const;
109 RFCharge operator * (
int val)
const;
112 RFCharge operator / (
int val)
const;
128 operator double()
const;
142 int gcd(
int x,
int y);
int GetDenominator() const
Returns denominator.
int GetNumerator() const
Returns numerator.
void operator=(const RFCharge &val)
Tests whether val is the same as this object's charge.
bool operator!=(const RFCharge &val) const
Tests whether val is not the same as this object's charge.
bool operator==(const RFCharge &val) const
Tests whether val is the same as this object's charge.
RFCharge(const RFCharge &charge)
Standard constructor.