Logo Search packages:      
Sourcecode: blender version File versions  Download package

btAlignedObjectArray< T > Class Template Reference

#include <btAlignedObjectArray.h>

List of all members.

Detailed Description

template<typename T>
class btAlignedObjectArray< T >

btAlignedObjectArray uses a subset of the stl::vector interface for its methods It is developed to replace stl::vector to avoid STL alignment issues to add SIMD/SSE data

Definition at line 46 of file btAlignedObjectArray.h.

Public Member Functions

SIMD_FORCE_INLINE int capacity () const
SIMD_FORCE_INLINE void clear ()
template<typename L>
void downHeap (T *pArr, int k, int n, L CompareFunc)
 heap sort from http://www.csse.monash.edu.au/~lloyd/tildeAlgDS/Sort/Heap/
SIMD_FORCE_INLINE T & expand (const T &fillValue=T())
int findBinarySearch (const T &key) const
 non-recursive binary search, assumes sorted array
int findLinearSearch (const T &key) const
template<typename L>
void heapSort (L CompareFunc)
SIMD_FORCE_INLINE T & operator[] (int n)
SIMD_FORCE_INLINE const T & operator[] (int n) const
SIMD_FORCE_INLINE void pop_back ()
SIMD_FORCE_INLINE void push_back (const T &_Val)
void remove (const T &key)
SIMD_FORCE_INLINE void reserve (int _Count)
SIMD_FORCE_INLINE void resize (int newsize, const T &fillData=T())
SIMD_FORCE_INLINE int size () const
void swap (int index0, int index1)

Protected Member Functions

SIMD_FORCE_INLINE void * allocate (int size)
SIMD_FORCE_INLINE int allocSize (int size)
SIMD_FORCE_INLINE void copy (int start, int end, T *dest)
SIMD_FORCE_INLINE void deallocate ()
SIMD_FORCE_INLINE void destroy (int first, int last)
SIMD_FORCE_INLINE void init ()

Private Attributes

btAlignedAllocator< T, 16 > m_allocator
int m_capacity
T * m_data
int m_size


class  less

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index