CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
rltinfo.MyInteger Class Reference
Inheritance diagram for rltinfo.MyInteger:

Public Member Functions

def __add__
 
def __init__
 
def __str__
 

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 
6  def __init__(self, integer ):
self.integer = integer

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 
8  def __add__(self, other):
9  if hasattr(other, 'integer'):
10  self.integer += other.integer
11  else:
12  self.integer += other
return self
def rltinfo.MyInteger.__str__ (   self)

Definition at line 13 of file rltinfo.py.

References rltinfo.MyInteger.integer.

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

Member Data Documentation

rltinfo.MyInteger.integer

Definition at line 6 of file rltinfo.py.

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