Lines Matching full:self
6 def __len__(self):
7 return self.GetByteSize()
10 def __init__(self, sbdata, readerfunc, item_size):
11 self.sbdata = sbdata
12 self.readerfunc = readerfunc
13 self.item_size = item_size
14 def __getitem__(self,key):
17 for x in range(*key.indices(self.__len__())):
18 list.append(self.__getitem__(x))
22 …key = key * self.item_size # SBData uses byte-based indexes, but we want to use itemsize-based ind…
24 my_data = self.readerfunc(self.sbdata,error,key)
29 def __len__(self):
30 return int(self.sbdata.GetByteSize()/self.item_size)
31 def all(self):
32 return self[0:len(self)]
74 def _make_helper(self, sbdata, getfunc, itemsize):
75 return self.read_data_helper(sbdata, getfunc, itemsize)
77 def _make_helper_uint8(self):
78 return self._make_helper(self, SBData.GetUnsignedInt8, 1)
80 def _make_helper_uint16(self):
81 return self._make_helper(self, SBData.GetUnsignedInt16, 2)
83 def _make_helper_uint32(self):
84 return self._make_helper(self, SBData.GetUnsignedInt32, 4)
86 def _make_helper_uint64(self):
87 return self._make_helper(self, SBData.GetUnsignedInt64, 8)
89 def _make_helper_sint8(self):
90 return self._make_helper(self, SBData.GetSignedInt8, 1)
92 def _make_helper_sint16(self):
93 return self._make_helper(self, SBData.GetSignedInt16, 2)
95 def _make_helper_sint32(self):
96 return self._make_helper(self, SBData.GetSignedInt32, 4)
98 def _make_helper_sint64(self):
99 return self._make_helper(self, SBData.GetSignedInt64, 8)
101 def _make_helper_float(self):
102 return self._make_helper(self, SBData.GetFloat, 4)
104 def _make_helper_double(self):
105 return self._make_helper(self, SBData.GetDouble, 8)
107 def _read_all_uint8(self):
108 return self._make_helper_uint8().all()
110 def _read_all_uint16(self):
111 return self._make_helper_uint16().all()
113 def _read_all_uint32(self):
114 return self._make_helper_uint32().all()
116 def _read_all_uint64(self):
117 return self._make_helper_uint64().all()
119 def _read_all_sint8(self):
120 return self._make_helper_sint8().all()
122 def _read_all_sint16(self):
123 return self._make_helper_sint16().all()
125 def _read_all_sint32(self):
126 return self._make_helper_sint32().all()
128 def _read_all_sint64(self):
129 return self._make_helper_sint64().all()
131 def _read_all_float(self):
132 return self._make_helper_float().all()
134 def _read_all_double(self):
135 return self._make_helper_double().all()