MCPcopy Index your code
hub / github.com/clips/pattern / ObjIdRange

Class ObjIdRange

pattern/web/pdf/utils.py:175–194  ·  view source on GitHub ↗

A utility class to represent a range of object IDs.

Source from the content-addressed store, hash-verified

173## ObjIdRange
174##
175class ObjIdRange(object):
176
177 "A utility class to represent a range of object IDs."
178
179 def __init__(self, start, nobjs):
180 self.start = start
181 self.nobjs = nobjs
182 return
183
184 def __repr__(self):
185 return '<ObjIdRange: %d-%d>' % (self.get_start_id(), self.get_end_id())
186
187 def get_start_id(self):
188 return self.start
189
190 def get_end_id(self):
191 return self.start + self.nobjs - 1
192
193 def get_nobjs(self):
194 return self.nobjs
195
196
197## Plane

Callers 1

loadMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…