| 558 | |
| 559 | |
| 560 | class FieldVector(StdVector): |
| 561 | |
| 562 | def __getitem__(self, index): |
| 563 | """ |
| 564 | Dereference the Field object at this index. |
| 565 | """ |
| 566 | return Field(deref(super().__getitem__(index))) |
| 567 | |
| 568 | def __str__(self): |
| 569 | l = [str(self[i]) for i in range(len(self))] |
| 570 | return "{" + ", ".join(l) + "}" |
| 571 | |
| 572 | |
| 573 | class Field: |