quemb.shared.numba_helpers.PreIncr

class quemb.shared.numba_helpers.PreIncr

Attributes

class_type = jitclass.PreIncr#7fd6eb1556a0<count:int64>
count: int

Implement a simple pre-incr class, that increments and returns a value. more or less equivalent to C’s ++i. Starts with -1, i.e. the first returned value is 0.

Methods