Cyclic range type.
More...
|
def | __init__ (self, x, radix, y=None, size=None) |
| Cyclic range type constructor. More...
|
|
def | __eq__ (self, other) |
| Check if other value equals with this cyclic range. More...
|
|
def | __contains__ (self, other) |
| Check if given value, cyclic integer or cyclic range is within this cyclic range. More...
|
|
◆ __init__()
def wtp.util.CyclicRange.__init__ |
( |
|
self, |
|
|
|
x, |
|
|
|
radix, |
|
|
|
y = None , |
|
|
|
size = None |
|
) |
| |
Cyclic range type constructor.
- Parameters
-
x | Begin of the range. |
radix | Radix of the cyclic range. |
y | End of the range. |
size | Size of the range. |
◆ __contains__()
def wtp.util.CyclicRange.__contains__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Check if given value, cyclic integer or cyclic range is within this cyclic range.
- Parameters
-
- Returns
- Whether the other value is in this cyclic range.
◆ __eq__()
def wtp.util.CyclicRange.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Check if other value equals with this cyclic range.
- Parameters
-
- Returns
- Whether two values equal or not.
◆ _radix
wtp.util.CyclicRange._radix |
|
private |
◆ _x
◆ _y
The documentation for this class was generated from the following file: