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 6 of file rltinfo.py.

Constructor & Destructor Documentation

◆ __init__()

def rltinfo.MyInteger.__init__ (   self,
  integer 
)

Definition at line 7 of file rltinfo.py.

7  def __init__(self, integer ):
8  self.integer = integer

Member Function Documentation

◆ __add__()

def rltinfo.MyInteger.__add__ (   self,
  other 
)

Definition at line 9 of file rltinfo.py.

9  def __add__(self, other):
10  if hasattr(other, 'integer'):
11  self.integer += other.integer
12  else:
13  self.integer += other
14  return self

References rltinfo.MyInteger.integer.

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

◆ __str__()

def rltinfo.MyInteger.__str__ (   self)

Definition at line 15 of file rltinfo.py.

15  def __str__(self):
16  return str(self.integer)
17 
18 

References rltinfo.MyInteger.integer, and str.

Member Data Documentation

◆ integer

rltinfo.MyInteger.integer

Definition at line 8 of file rltinfo.py.

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

str
#define str(s)
Definition: TestProcessor.cc:48
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103