| 20 | } |
| 21 | |
| 22 | InstanceArray::~InstanceArray() |
| 23 | { |
| 24 | if (object) object->refDec(); |
| 25 | if (objects) { |
| 26 | for (size_t i = 0; i < numObjects; ++i) { |
| 27 | if (objects[i]) objects[i]->refDec(); |
| 28 | } |
| 29 | device->free(objects); |
| 30 | } |
| 31 | device->memoryMonitor(-ssize_t(sizeof(*this)), false); |
| 32 | } |
| 33 | |
| 34 | void InstanceArray::setNumTimeSteps (unsigned int numTimeSteps_in) |
| 35 | { |
nothing calls this directly
no test coverage detected