Clones the array inti @a clonedArray.*/
| 174 | |
| 175 | /** Clones the array inti @a clonedArray.*/ |
| 176 | void cloneArray( Array<Type>& clonedArray ) const |
| 177 | { |
| 178 | clonedArray.allocMemory(getCapacity()); |
| 179 | size_t count = getCount(); |
| 180 | clonedArray.setCount(count); |
| 181 | for ( size_t i = 0; i < count; ++i) |
| 182 | clonedArray[i] = (*this)[i]; |
| 183 | } |
| 184 | |
| 185 | /** Disable default copy ctor. */ |
| 186 | Array( const Array& pre ); |
no test coverage detected