CMS 3D CMS Logo

Public Member Functions | Public Attributes

svgfig::Curve::Samples Class Reference

end Sample More...

List of all members.

Public Member Functions

def __init__
def __iter__
def __len__
def __repr__
def next

Public Attributes

 current
 right

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 
)

Definition at line 1554 of file svgfig.py.

01554                                    : self.left, self.right = left, right
01555 

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
  ### end nested class

Member Data Documentation

Definition at line 1564 of file svgfig.py.

Definition at line 1554 of file svgfig.py.