Beispiel #1
0
    def __init__(self, dmm, fe_type):
        members = [('count', types.EphemeralPointer(types.intp)),
                   ('iter', fe_type.source_type)]

        super(EnumerateType, self).__init__(dmm, fe_type, members)
Beispiel #2
0
 def __init__(self, dmm, fe_type):
     members = [('index', types.EphemeralPointer(types.uintp)),
                ('data', fe_type.data)]
     super(UnicodeIteratorModel, self).__init__(dmm, fe_type, members)
Beispiel #3
0
 def __init__(self, dmm, fe_type):
     # We use an unsigned index to avoid the cost of negative index tests.
     members = [('index', types.EphemeralPointer(types.uintp)),
                ('array', fe_type.array_type)]
     super(ArrayIterator, self).__init__(dmm, fe_type, members)
Beispiel #4
0
 def __init__(self, dmm, fe_type):
     int_type = fe_type.yield_type
     members = [('iter', types.EphemeralPointer(int_type)),
                ('stop', int_type), ('step', int_type),
                ('count', types.EphemeralPointer(int_type))]
     super(RangeIteratorType, self).__init__(dmm, fe_type, members)