def to_string(self):
     (tail, head, data_ptr, cap) = \
         rustpp.extract_tail_head_ptr_and_cap_from_std_vecdeque(self.__val)
     if head >= tail:
         size = head - tail
     else:
         size = cap + head - tail
     return (self.__val.type.get_unqualified_type_name() +
             ("(len: %i, cap: %i)" % (size, cap)))
Exemplo n.º 2
0
 def to_string(self):
     (tail, head, data_ptr, cap) = \
         rustpp.extract_tail_head_ptr_and_cap_from_std_vecdeque(self.__val)
     if head >= tail:
         size = head - tail
     else:
         size = cap + head - tail
     return (self.__val.type.get_unqualified_type_name() +
             ("(len: %i, cap: %i)" % (size, cap)))
Exemplo n.º 3
0
 def children(self):
     (tail, head, data_ptr, cap) = \
         rustpp.extract_tail_head_ptr_and_cap_from_std_vecdeque(self.__val)
     gdb_ptr = data_ptr.get_wrapped_value()
     if head >= tail:
         size = head - tail
     else:
         size = cap + head - tail
     for index in xrange(0, size):
         yield (str(index), (gdb_ptr + ((tail + index) % cap)).dereference())
Exemplo n.º 4
0
 def children(self):
     (tail, head, data_ptr, cap) = \
         rustpp.extract_tail_head_ptr_and_cap_from_std_vecdeque(self.__val)
     gdb_ptr = data_ptr.get_wrapped_value()
     if head >= tail:
         size = head - tail
     else:
         size = cap + head - tail
     for index in xrange(0, size):
         yield (str(index), (gdb_ptr + ((tail + index) % cap)).dereference())
Exemplo n.º 5
0
 def children(self):
     (tail, head, data_ptr, cap) = \
         rustpp.extract_tail_head_ptr_and_cap_from_std_vecdeque(self.__val)
     gdb_ptr = data_ptr.get_wrapped_value()
     for index in xrange(tail, head):
         yield (str(index), (gdb_ptr + index).dereference())
 def children(self):
     (tail, head, data_ptr, cap) = \
         rustpp.extract_tail_head_ptr_and_cap_from_std_vecdeque(self.__val)
     gdb_ptr = data_ptr.get_wrapped_value()
     for index in xrange(tail, head):
         yield (str(index), (gdb_ptr + index).dereference())