12 #ifndef _DYNAMIC_OBJECT_ARRAY_H_
13 #define _DYNAMIC_OBJECT_ARRAY_H_
45 "Memory for dynamic array.");
47 "Element with largest index.");
49 "shrink/grow step size.");
81 CSGObject* casted=cast_to_sgobject(element);
109 CSGObject* casted=cast_to_sgobject(element);
131 CSGObject* casted=cast_to_sgobject(element);
146 CSGObject* casted=cast_to_sgobject(element);
161 CSGObject* casted=cast_to_sgobject(element);
184 T* element=m_array.
back();
237 m_array=orig.m_array;
249 {
return "DynamicObjectArray"; }
253 inline void unref_all()
266 inline CSGObject* cast_to_sgobject(T* element)
const
275 SG_ERROR(
"Generic type of CDynamicObjectArray is not of type "
283 DynArray<T*> m_array;