end Sample
More...
List of all members.
Detailed Description
end Sample
nested class Samples
Definition at line 1551 of file svgfig.py.
Constructor & Destructor Documentation
def svgfig::Curve::Samples::__init__ |
( |
|
self, |
|
|
|
left, |
|
|
|
right |
|
) |
| |
Member Function Documentation
def svgfig::Curve::Samples::__iter__ |
( |
|
self | ) |
|
Definition at line 1564 of file svgfig.py.
01565 :
01566 self.current = self.left
01567 return self
def svgfig::Curve::Samples::__len__ |
( |
|
self | ) |
|
Definition at line 1556 of file svgfig.py.
01557 :
01558 count = 0
01559 current = self.left
01560 while current != None:
01561 count += 1
01562 current = current.right
01563 return count
def svgfig::Curve::Samples::__repr__ |
( |
|
self | ) |
|
Definition at line 1552 of file svgfig.py.
01552 : return "<Curve.Samples (%d samples)>" % len(self)
01553
def svgfig::Curve::Samples::next |
( |
|
self | ) |
|
Definition at line 1568 of file svgfig.py.
01569 :
01570 current = self.current
01571 if current == None: raise StopIteration
01572 self.current = self.current.right
01573 return current
Member Data Documentation