CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
svgfig.Curve.Samples Class Reference

end Sample More...

Public Member Functions

def __init__ (self, left, right)
 
def __iter__ (self)
 
def __len__ (self)
 
def __repr__ (self)
 
def next (self)
 

Public Attributes

 current
 
 right
 

Detailed Description

end Sample

nested class Samples

Definition at line 1552 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.Curve.Samples.__init__ (   self,
  left,
  right 
)

Definition at line 1555 of file svgfig.py.

1555  def __init__(self, left, right): self.left, self.right = left, right
1556 
def __init__(self, left, right)
Definition: svgfig.py:1555

Member Function Documentation

def svgfig.Curve.Samples.__iter__ (   self)

Definition at line 1565 of file svgfig.py.

1565  def __iter__(self):
1566  self.current = self.left
1567  return self
1568 
def __iter__(self)
Definition: svgfig.py:1565
def svgfig.Curve.Samples.__len__ (   self)
def svgfig.Curve.Samples.__repr__ (   self)

Definition at line 1553 of file svgfig.py.

Referenced by data_sources.json_file.__str__().

1553  def __repr__(self): return "<Curve.Samples (%d samples)>" % len(self)
1554 
def __repr__(self)
Definition: svgfig.py:1553
def svgfig.Curve.Samples.next (   self)

Definition at line 1569 of file svgfig.py.

References svgfig.Curve.Samples.current.

1569  def next(self):
1570  current = self.current
1571  if current == None: raise StopIteration
1572  self.current = self.current.right
1573  return current
1574  ### end nested class
def next(self)
Definition: svgfig.py:1569

Member Data Documentation

svgfig.Curve.Samples.current
svgfig.Curve.Samples.right

Definition at line 1555 of file svgfig.py.

Referenced by progressbar.Bar.update(), and progressbar.BouncingBar.update().