equal
deleted
inserted
replaced
52 |
52 |
53 def Equals(self, x): |
53 def Equals(self, x): |
54 if x is self: return 1 |
54 if x is self: return 1 |
55 return 1 |
55 return 1 |
56 |
56 |
57 def __eq__(self, other): |
|
58 return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other) |
|
59 |
|
60 def __ne__(self, other): |
|
61 return not (self == other) |
|
62 |
|
63 def IsInitialized(self, debug_strs=None): |
57 def IsInitialized(self, debug_strs=None): |
64 initialized = 1 |
58 initialized = 1 |
65 return initialized |
59 return initialized |
66 |
60 |
67 def ByteSize(self): |
61 def ByteSize(self): |
127 assert x is not self |
121 assert x is not self |
128 |
122 |
129 def Equals(self, x): |
123 def Equals(self, x): |
130 if x is self: return 1 |
124 if x is self: return 1 |
131 return 1 |
125 return 1 |
132 |
|
133 def __eq__(self, other): |
|
134 return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other) |
|
135 |
|
136 def __ne__(self, other): |
|
137 return not (self == other) |
|
138 |
126 |
139 def IsInitialized(self, debug_strs=None): |
127 def IsInitialized(self, debug_strs=None): |
140 initialized = 1 |
128 initialized = 1 |
141 return initialized |
129 return initialized |
142 |
130 |
352 if self.has_crop_bottom_y_ != x.has_crop_bottom_y_: return 0 |
340 if self.has_crop_bottom_y_ != x.has_crop_bottom_y_: return 0 |
353 if self.has_crop_bottom_y_ and self.crop_bottom_y_ != x.crop_bottom_y_: return 0 |
341 if self.has_crop_bottom_y_ and self.crop_bottom_y_ != x.crop_bottom_y_: return 0 |
354 if self.has_autolevels_ != x.has_autolevels_: return 0 |
342 if self.has_autolevels_ != x.has_autolevels_: return 0 |
355 if self.has_autolevels_ and self.autolevels_ != x.autolevels_: return 0 |
343 if self.has_autolevels_ and self.autolevels_ != x.autolevels_: return 0 |
356 return 1 |
344 return 1 |
357 |
|
358 def __eq__(self, other): |
|
359 return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other) |
|
360 |
|
361 def __ne__(self, other): |
|
362 return not (self == other) |
|
363 |
345 |
364 def IsInitialized(self, debug_strs=None): |
346 def IsInitialized(self, debug_strs=None): |
365 initialized = 1 |
347 initialized = 1 |
366 return initialized |
348 return initialized |
367 |
349 |
553 if x is self: return 1 |
535 if x is self: return 1 |
554 if self.has_content_ != x.has_content_: return 0 |
536 if self.has_content_ != x.has_content_: return 0 |
555 if self.has_content_ and self.content_ != x.content_: return 0 |
537 if self.has_content_ and self.content_ != x.content_: return 0 |
556 return 1 |
538 return 1 |
557 |
539 |
558 def __eq__(self, other): |
|
559 return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other) |
|
560 |
|
561 def __ne__(self, other): |
|
562 return not (self == other) |
|
563 |
|
564 def IsInitialized(self, debug_strs=None): |
540 def IsInitialized(self, debug_strs=None): |
565 initialized = 1 |
541 initialized = 1 |
566 if (not self.has_content_): |
542 if (not self.has_content_): |
567 initialized = 0 |
543 initialized = 0 |
568 if debug_strs is not None: |
544 if debug_strs is not None: |
650 def Equals(self, x): |
626 def Equals(self, x): |
651 if x is self: return 1 |
627 if x is self: return 1 |
652 if self.has_mime_type_ != x.has_mime_type_: return 0 |
628 if self.has_mime_type_ != x.has_mime_type_: return 0 |
653 if self.has_mime_type_ and self.mime_type_ != x.mime_type_: return 0 |
629 if self.has_mime_type_ and self.mime_type_ != x.mime_type_: return 0 |
654 return 1 |
630 return 1 |
655 |
|
656 def __eq__(self, other): |
|
657 return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other) |
|
658 |
|
659 def __ne__(self, other): |
|
660 return not (self == other) |
|
661 |
631 |
662 def IsInitialized(self, debug_strs=None): |
632 def IsInitialized(self, debug_strs=None): |
663 initialized = 1 |
633 initialized = 1 |
664 return initialized |
634 return initialized |
665 |
635 |
763 for e1, e2 in zip(self.transform_, x.transform_): |
733 for e1, e2 in zip(self.transform_, x.transform_): |
764 if e1 != e2: return 0 |
734 if e1 != e2: return 0 |
765 if self.has_output_ != x.has_output_: return 0 |
735 if self.has_output_ != x.has_output_: return 0 |
766 if self.has_output_ and self.output_ != x.output_: return 0 |
736 if self.has_output_ and self.output_ != x.output_: return 0 |
767 return 1 |
737 return 1 |
768 |
|
769 def __eq__(self, other): |
|
770 return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other) |
|
771 |
|
772 def __ne__(self, other): |
|
773 return not (self == other) |
|
774 |
738 |
775 def IsInitialized(self, debug_strs=None): |
739 def IsInitialized(self, debug_strs=None): |
776 initialized = 1 |
740 initialized = 1 |
777 if (not self.has_image_): |
741 if (not self.has_image_): |
778 initialized = 0 |
742 initialized = 0 |
905 if x is self: return 1 |
869 if x is self: return 1 |
906 if self.has_image_ != x.has_image_: return 0 |
870 if self.has_image_ != x.has_image_: return 0 |
907 if self.has_image_ and self.image_ != x.image_: return 0 |
871 if self.has_image_ and self.image_ != x.image_: return 0 |
908 return 1 |
872 return 1 |
909 |
873 |
910 def __eq__(self, other): |
|
911 return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other) |
|
912 |
|
913 def __ne__(self, other): |
|
914 return not (self == other) |
|
915 |
|
916 def IsInitialized(self, debug_strs=None): |
874 def IsInitialized(self, debug_strs=None): |
917 initialized = 1 |
875 initialized = 1 |
918 if (not self.has_image_): |
876 if (not self.has_image_): |
919 initialized = 0 |
877 initialized = 0 |
920 if debug_strs is not None: |
878 if debug_strs is not None: |