CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
rltinfo.MyInteger Class Reference
Inheritance diagram for rltinfo.MyInteger:

Public Member Functions

def __add__ (self, other)
 
def __init__ (self, integer)
 
def __str__ (self)
 

Public Attributes

 integer
 

Detailed Description

Definition at line 4 of file rltinfo.py.

Constructor & Destructor Documentation

def rltinfo.MyInteger.__init__ (   self,
  integer 
)

Definition at line 5 of file rltinfo.py.

5  def __init__(self, integer ):
6  self.integer = integer
def __init__(self, integer)
Definition: rltinfo.py:5

Member Function Documentation

def rltinfo.MyInteger.__add__ (   self,
  other 
)

Definition at line 7 of file rltinfo.py.

References rltinfo.MyInteger.integer.

Referenced by counter.Counter.__iadd__(), and average.Average.__iadd__().

7  def __add__(self, other):
8  if hasattr(other, 'integer'):
9  self.integer += other.integer
10  else:
11  self.integer += other
12  return self
def __add__(self, other)
Definition: rltinfo.py:7
def rltinfo.MyInteger.__str__ (   self)

Definition at line 13 of file rltinfo.py.

References rltinfo.MyInteger.integer, and harvestTrackValidationPlots.str.

13  def __str__(self):
14  return str(self.integer)
15 
16 
def __str__(self)
Definition: rltinfo.py:13

Member Data Documentation

rltinfo.MyInteger.integer

Definition at line 6 of file rltinfo.py.

Referenced by rltinfo.MyInteger.__add__(), and rltinfo.MyInteger.__str__().