------------------------------------------------------------------------------
| 544 | |
| 545 | //------------------------------------------------------------------------------ |
| 546 | vtkIdType vtkStringArray::GetDataSize() const |
| 547 | { |
| 548 | size_t size = 0; |
| 549 | size_t numStrs = static_cast<size_t>(this->GetMaxId() + 1); |
| 550 | for (size_t i = 0; i < numStrs; i++) |
| 551 | { |
| 552 | size += this->Array[i].size() + 1; |
| 553 | // (+1) for termination character. |
| 554 | } |
| 555 | return static_cast<vtkIdType>(size); |
| 556 | } |
| 557 | |
| 558 | //------------------------------------------------------------------------------ |
| 559 | // Set the tuple at the ith location using the jth tuple in the source array. |