Template Class ObjectArray
Defined in File ObjectArray.h
Class Documentation
-
template<class T, int growBy = 100, bool linearGrow = true>
class ObjectArray Public Functions
-
inline FORCE_INLINE ObjectArray()
-
inline FORCE_INLINE ObjectArray(const ObjectArray &other)
-
inline ~ObjectArray()
- inline FORCE_INLINE T * arrayPointer ()
Return the pointer of the data.
- inline FORCE_INLINE const T * arrayPointer () const
Return the pointer of the data.
- inline FORCE_INLINE void reset ()
Set size to zero but do not change capacity.
- inline FORCE_INLINE void clear ()
- inline FORCE_INLINE unsigned int size () const
Return the number of elements
- inline FORCE_INLINE unsigned int capacity () const
Return the capacity
- inline FORCE_INLINE T * getData ()
- inline FORCE_INLINE const T * getData () const
- inline FORCE_INLINE void insert (const unsigned int index, const T &data)
Insert element at the given index.
- inline FORCE_INLINE void removeAt (const unsigned int index)
Remove the element at the given index.
- inline FORCE_INLINE bool remove (const T &element)
Remove the given element and return true, if the element was found.
- inline FORCE_INLINE void pop_back ()
- inline FORCE_INLINE void push_back (const T &data)
- inline FORCE_INLINE void push_back (T &data)
- inline FORCE_INLINE T & operator[] (const unsigned int i)
- inline FORCE_INLINE const T & operator[] (const unsigned int i) const
- inline FORCE_INLINE ObjectArray & operator= (const ObjectArray &val)
- inline FORCE_INLINE void reserve (const unsigned int count)
- inline FORCE_INLINE void resize (unsigned int count)
Protected Functions
- inline FORCE_INLINE void init ()
-
inline FORCE_INLINE ObjectArray()