| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base_n_counter
Simple counter in base-n, using d digits.
Resets to zeros when state (n-1, n-1, ..., n-1) is
incremented.
base_n_counter(n, d)
Public attribute:
counter
Implements methods:
inc -- increment counter (returns nothing)
__getitem__ -- return ith component of counter
reset -- set counter to (0, 0, ..., 0)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
str(x)
|
str(x)
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Dec 2 23:44:23 2012 | http://epydoc.sourceforge.net |