Lines Matching refs:self

3         def __eq__(self, rhs):
4 if not isinstance(rhs, type(self)):
7 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
9 def __ne__(self, rhs):
10 if not isinstance(rhs, type(self)):
13 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
19 def __eq__(self, rhs):
20 if not isinstance(rhs, type(self)):
23 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
25 def __ne__(self, rhs):
26 if not isinstance(rhs, type(self)):
29 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
42 $self->Printf("%s",str);
50 def __eq__(self, rhs):
51 if not isinstance(rhs, type(self)):
54 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
56 def __ne__(self, rhs):
57 if not isinstance(rhs, type(self)):
60 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
66 def __eq__(self, rhs):
67 if not isinstance(rhs, type(self)):
70 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
72 def __ne__(self, rhs):
73 if not isinstance(rhs, type(self)):
76 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
82 def __eq__(self, rhs):
83 if not isinstance(rhs, type(self)):
86 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
88 def __ne__(self, rhs):
89 if not isinstance(rhs, type(self)):
92 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
98 def __eq__(self, rhs):
99 if not isinstance(rhs, type(self)):
102 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
104 def __ne__(self, rhs):
105 if not isinstance(rhs, type(self)):
108 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
114 def __eq__(self, rhs):
115 if not isinstance(rhs, type(self)):
118 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
120 def __ne__(self, rhs):
121 if not isinstance(rhs, type(self)):
124 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
130 def __eq__(self, rhs):
131 if not isinstance(rhs, type(self)):
134 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
136 def __ne__(self, rhs):
137 if not isinstance(rhs, type(self)):
140 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
152 $self->Printf("%s",str);
159 def __eq__(self, rhs):
160 if not isinstance(rhs, type(self)):
163 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
165 def __ne__(self, rhs):
166 if not isinstance(rhs, type(self)):
169 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
175 def __eq__(self, rhs):
176 if not isinstance(rhs, type(self)):
179 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
181 def __ne__(self, rhs):
182 if not isinstance(rhs, type(self)):
185 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
191 def __eq__(self, rhs):
192 if not isinstance(rhs, type(self)):
195 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
197 def __ne__(self, rhs):
198 if not isinstance(rhs, type(self)):
201 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
207 def __eq__(self, rhs):
208 if not isinstance(rhs, type(self)):
211 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
213 def __ne__(self, rhs):
214 if not isinstance(rhs, type(self)):
217 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
223 def __eq__(self, rhs):
224 if not isinstance(rhs, type(self)):
227 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
229 def __ne__(self, rhs):
230 if not isinstance(rhs, type(self)):
233 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
239 def __eq__(self, rhs):
240 if not isinstance(rhs, type(self)):
243 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
245 def __ne__(self, rhs):
246 if not isinstance(rhs, type(self)):
249 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
255 def __eq__(self, rhs):
256 if not isinstance(rhs, type(self)):
259 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
261 def __ne__(self, rhs):
262 if not isinstance(rhs, type(self)):
265 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
287 def __init__(self, file, line, col):
288 self.file = file
289 self.line = line
290 self.col = col
294 def __iter__(self):
295 return self
297 def __next__(self):
298 if self.index >= self.length:
300 child_sbvalue = self.sbvalue.GetChildAtIndex(self.index)
301 self.index += 1
304 def next(self):
305 return self.__next__()
307 def __eq__(self, other):
308 return not self.__ne__(other)
310 def __len__(self):
311 return self.length
313 def __init__(self,value):
314 self.index = 0
315 self.length = 0
316 self.sbvalue = value
317 if type(self.sbvalue) is value:
318 self.sbvalue = self.sbvalue.sbvalue
319 self.length = self.sbvalue.GetNumChildren()
335 def __init__(self, sbvalue):
336 self.sbvalue = sbvalue
338 def __nonzero__(self):
339 return self.sbvalue.__nonzero__()
341 def __bool__(self):
342 return self.sbvalue.__bool__()
344 def __str__(self):
345 return self.sbvalue.__str__()
347 def __getitem__(self, key):
352 child_sbvalue = (self.sbvalue.GetValueForExpressionPath("[%i]" % key))
358 def __iter__(self):
359 return value_iter(self.sbvalue)
361 def __getattr__(self, name):
362 child_sbvalue = self.sbvalue.GetChildMemberWithName (name)
367 def __add__(self, other):
368 return int(self) + int(other)
370 def __sub__(self, other):
371 return int(self) - int(other)
373 def __mul__(self, other):
374 return int(self) * int(other)
376 def __floordiv__(self, other):
377 return int(self) // int(other)
379 def __mod__(self, other):
380 return int(self) % int(other)
382 def __divmod__(self, other):
383 return int(self) % int(other)
385 def __pow__(self, other):
386 return int(self) ** int(other)
388 def __lshift__(self, other):
389 return int(self) << int(other)
391 def __rshift__(self, other):
392 return int(self) >> int(other)
394 def __and__(self, other):
395 return int(self) & int(other)
397 def __xor__(self, other):
398 return int(self) ^ int(other)
400 def __or__(self, other):
401 return int(self) | int(other)
403 def __div__(self, other):
404 return int(self) / int(other)
406 def __truediv__(self, other):
407 return int(self) / int(other)
409 def __iadd__(self, other):
410 result = self.__add__(other)
411 self.sbvalue.SetValueFromCString (str(result))
414 def __isub__(self, other):
415 result = self.__sub__(other)
416 self.sbvalue.SetValueFromCString (str(result))
419 def __imul__(self, other):
420 result = self.__mul__(other)
421 self.sbvalue.SetValueFromCString (str(result))
424 def __idiv__(self, other):
425 result = self.__div__(other)
426 self.sbvalue.SetValueFromCString (str(result))
429 def __itruediv__(self, other):
430 result = self.__truediv__(other)
431 self.sbvalue.SetValueFromCString (str(result))
434 def __ifloordiv__(self, other):
435 result = self.__floordiv__(self, other)
436 self.sbvalue.SetValueFromCString (str(result))
439 def __imod__(self, other):
440 result = self.__and__(self, other)
441 self.sbvalue.SetValueFromCString (str(result))
444 def __ipow__(self, other):
445 result = self.__pow__(self, other)
446 self.sbvalue.SetValueFromCString (str(result))
449 def __ipow__(self, other, modulo):
450 result = self.__pow__(self, other, modulo)
451 self.sbvalue.SetValueFromCString (str(result))
454 def __ilshift__(self, other):
455 result = self.__lshift__(other)
456 self.sbvalue.SetValueFromCString (str(result))
459 def __irshift__(self, other):
460 result = self.__rshift__(other)
461 self.sbvalue.SetValueFromCString (str(result))
464 def __iand__(self, other):
465 result = self.__and__(self, other)
466 self.sbvalue.SetValueFromCString (str(result))
469 def __ixor__(self, other):
470 result = self.__xor__(self, other)
471 self.sbvalue.SetValueFromCString (str(result))
474 def __ior__(self, other):
475 result = self.__ior__(self, other)
476 self.sbvalue.SetValueFromCString (str(result))
479 def __neg__(self):
480 return -int(self)
482 def __pos__(self):
483 return +int(self)
485 def __abs__(self):
486 return abs(int(self))
488 def __invert__(self):
489 return ~int(self)
491 def __complex__(self):
492 return complex (int(self))
494 def __int__(self):
495 is_num,is_sign = is_numeric_type(self.sbvalue.GetType().GetCanonicalType().GetBasicType())
496 if is_num and not is_sign: return self.sbvalue.GetValueAsUnsigned()
497 return self.sbvalue.GetValueAsSigned()
499 def __long__(self):
500 return self.__int__()
502 def __float__(self):
503 return float (self.sbvalue.GetValueAsSigned())
505 def __oct__(self):
506 return '0%o' % self.sbvalue.GetValueAsUnsigned()
508 def __hex__(self):
509 return '0x%x' % self.sbvalue.GetValueAsUnsigned()
511 def __len__(self):
512 return self.sbvalue.GetNumChildren()
514 def __eq__(self, other):
516 return int(self) == other
518 return str(self) == other
522 self_val = self.sbvalue.GetValueAsUnsigned(self_err)
524 raise ValueError("unable to extract value of self")
531 def __ne__(self, other):
532 return not self.__eq__(other)
538 def __init__(self,valobj):
541 def num_children(self):
544 def get_child_index(self,name):
547 def get_child_at_index(self,idx):
550 def update(self):
553 def has_children(self):
556 def __len__(self):
557 return self.num_children()
559 def __iter__(self):
561 return lldb_iter(self, 'num_children', 'get_child_at_index')