MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / cloneArray

Method cloneArray

COLLADAFramework/include/COLLADAFWArray.h:176–183  ·  view source on GitHub ↗

Clones the array inti @a clonedArray.*/

Source from the content-addressed store, hash-verified

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 );

Callers 11

KinematicsControllerMethod · 0.45
FloatOrDoubleArrayMethod · 0.45
MaterialBindingMethod · 0.45
MaterialBindingClass · 0.45
AnimationListMethod · 0.45
AnimationListClass · 0.45
InstanceBindingBaseMethod · 0.45

Calls 2

allocMemoryMethod · 0.45
setCountMethod · 0.45

Tested by

no test coverage detected