LOGO

RestFrames  v1.0.1
RestFrames HEP Event Analysis Software Library
Public Member Functions | List of all members
RestFrames::RFCharge Class Reference

Detailed Description

Definition at line 40 of file RFCharge.hh.

Public Member Functions

 RFCharge (const RFCharge &charge)
 Standard constructor. More...
 
 RFCharge (int charge=0)
 Standard constructor. More...
 
 RFCharge (int charge_num, int charge_den)
 Standard constructor. More...
 
int GetNumerator () const
 Returns numerator. More...
 
int GetDenominator () const
 Returns denominator. More...
 
bool operator== (const RFCharge &val) const
 Tests whether val is the same as this object's charge. More...
 
bool operator== (int val) const
 Tests whether val is the same as this object's charge. More...
 
bool operator!= (const RFCharge &val) const
 Tests whether val is not the same as this object's charge. More...
 
bool operator!= (int val) const
 Tests whether __val_ is not the same as this object's charge. More...
 
void operator= (const RFCharge &val)
 Tests whether val is the same as this object's charge. More...
 
void operator= (int val)
 Tests whether __val_ is the same as this object's charge. More...
 
RFCharge operator+ (const RFCharge &val) const
 
RFCharge operator+ (int val) const
 
RFCharge operator- (const RFCharge &val) const
 
RFCharge operator- (int val) const
 
RFCharge operator* (const RFCharge &val) const
 
RFCharge operator* (int val) const
 
RFCharge operator/ (const RFCharge &val) const
 
RFCharge operator/ (int val) const
 
RFChargeoperator+= (const RFCharge &val)
 
RFChargeoperator+= (int val)
 
RFChargeoperator-= (const RFCharge &val)
 
RFChargeoperator-= (int val)
 
RFChargeoperator*= (const RFCharge &val)
 
RFChargeoperator*= (int val)
 
RFChargeoperator/= (const RFCharge &val)
 
RFChargeoperator/= (int val)
 
RFCharge operator- ()
 
 operator double () const
 

Constructor & Destructor Documentation

◆ RFCharge() [1/3]

RestFrames::RFCharge::RFCharge ( const RFCharge charge)

Standard constructor.

Parameters
chargeCharge

Definition at line 34 of file RFCharge.cc.

◆ RFCharge() [2/3]

RestFrames::RFCharge::RFCharge ( int  charge = 0)

Standard constructor.

Parameters
chargeCharge

Definition at line 57 of file RFCharge.cc.

◆ RFCharge() [3/3]

RestFrames::RFCharge::RFCharge ( int  charge_num,
int  charge_den 
)

Standard constructor.

Parameters
charge_numCharge numerator
charge_denCharge denominator

Definition at line 67 of file RFCharge.cc.

Member Function Documentation

◆ GetDenominator()

int RestFrames::RFCharge::GetDenominator ( ) const

Returns denominator.

Returns
Denominator

Definition at line 96 of file RFCharge.cc.

◆ GetNumerator()

int RestFrames::RFCharge::GetNumerator ( ) const

Returns numerator.

Returns
Numerator

Definition at line 89 of file RFCharge.cc.

◆ operator!=() [1/2]

bool RestFrames::RFCharge::operator!= ( const RFCharge val) const

Tests whether val is not the same as this object's charge.

Parameters
valVal to test

Definition at line 127 of file RFCharge.cc.

◆ operator!=() [2/2]

bool RestFrames::RFCharge::operator!= ( int  val) const

Tests whether __val_ is not the same as this object's charge.

Parameters
valVal to test

Definition at line 136 of file RFCharge.cc.

◆ operator=() [1/2]

void RestFrames::RFCharge::operator= ( const RFCharge val)

Tests whether val is the same as this object's charge.

Parameters
valVal to test

Definition at line 146 of file RFCharge.cc.

◆ operator=() [2/2]

void RestFrames::RFCharge::operator= ( int  val)

Tests whether __val_ is the same as this object's charge.

Parameters
valVal to test

Definition at line 158 of file RFCharge.cc.

◆ operator==() [1/2]

bool RestFrames::RFCharge::operator== ( const RFCharge val) const

Tests whether val is the same as this object's charge.

Parameters
valVal to test

Definition at line 108 of file RFCharge.cc.

◆ operator==() [2/2]

bool RestFrames::RFCharge::operator== ( int  val) const

Tests whether val is the same as this object's charge.

Parameters
valVal to test

Definition at line 117 of file RFCharge.cc.


The documentation for this class was generated from the following files: