WISP ERT (Server)  1.0.0
The WISP Extended Runtime (Server side)
wtp.util.CyclicRange Class Reference

Cyclic range type. More...

Inheritance diagram for wtp.util.CyclicRange:

Public Member Functions

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...
 

Private Attributes

 _x
 
 _y
 
 _radix
 

Detailed Description

Cyclic range type.

Constructor & Destructor Documentation

◆ __init__()

def wtp.util.CyclicRange.__init__ (   self,
  x,
  radix,
  y = None,
  size = None 
)

Cyclic range type constructor.

Parameters
xBegin of the range.
radixRadix of the cyclic range.
yEnd of the range.
sizeSize of the range.

Member Function Documentation

◆ __contains__()

def wtp.util.CyclicRange.__contains__ (   self,
  other 
)

Check if given value, cyclic integer or cyclic range is within this cyclic range.

Parameters
otherOther value.
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
otherOther value.
Returns
Whether two values equal or not.

Member Data Documentation

◆ _radix

wtp.util.CyclicRange._radix
private

◆ _x

wtp.util.CyclicRange._x
private

◆ _y

wtp.util.CyclicRange._y
private

The documentation for this class was generated from the following file: