Home | nevrax.com |
|
NLMISC::CObjectVector Class Template ReferenceThe purpose of this class is to copy most (but not all) of stl vector<> features, without some of the speed/memory problems involved: size of a vector<T> is 16 bytes typically. More...
Detailed Descriptiontemplate<class T, bool EnableObjectBehavior = true>
The purpose of this class is to copy most (but not all) of stl vector<> features, without some of the speed/memory problems involved: size of a vector<T> is 16 bytes typically.
|
|
Definition at line 77 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::CObjectVector, and NLMISC::CObjectVector< CVertex >::operator=. |
|
Definition at line 82 of file object_vector.h. |
|
copy cons.
Definition at line 89 of file object_vector.h. |
|
clear the array.
Definition at line 118 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::myRealloc, NLMISC::CObjectVector< CVertex >::resize, and NLMISC::CObjectVector< CVertex >::~CObjectVector. |
|
Definition at line 346 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::resize. |
|
copy elements from an array ptr to this vector, beetween dstFirst element (included) and dstLast element (not included). nlassert if last is too big. copy(y, x, ...) where y>=x is valid, and nothing is copied. Definition at line 191 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::operator=. |
|
Definition at line 332 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::clear, and NLMISC::CObjectVector< CVertex >::resize. |
|
fill all elements with a value.
Definition at line 231 of file object_vector.h. |
|
fill elements with a value, beetween dstFirst element (included) and dstLast element (not included).
Definition at line 216 of file object_vector.h. |
|
return a ptr on the first element of the array. NULL if empty. Definition at line 180 of file object_vector.h. |
|
Definition at line 313 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::resize. |
|
copy the array.
Definition at line 98 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::CObjectVector. |
|
Element accessor. no check is made on index. (No exception, no nlassert()) Definition at line 173 of file object_vector.h. |
|
resize the array. If reallocation occurs, ptr returned by getPtr() may not be the same. When reallocation occurs, memory is coped, but operator= are not called.
Definition at line 131 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::operator=, and NLMISC::CObjectVector< CVertex >::serial. |
|
Serial this ObjectVector. NB: actually, the serial of a vector<> and the serial of a CObjectVector is the same in the stream. Definition at line 245 of file object_vector.h. |
|
return size of the array (in number of elements).
Definition at line 169 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::myRealloc, NL3D::CSkeletonModelRenderObs::renderSkinList, NLMISC::CObjectVector< CVertex >::resize, and NLMISC::CObjectVector< CVertex >::serial. |
|
|
size of the array, in number of elements.
Definition at line 308 of file object_vector.h. Referenced by NLMISC::CObjectVector< CVertex >::clear, NLMISC::CObjectVector< CVertex >::CObjectVector, NLMISC::CObjectVector< CVertex >::copy, NLMISC::CObjectVector< CVertex >::fill, NLMISC::CObjectVector< CVertex >::operator=, NLMISC::CObjectVector< CVertex >::resize, and NLMISC::CObjectVector< CVertex >::size. |