AP4_Array< T > Class Template Reference
#include <Ap4Array.h>
Public Member Functions | |
AP4_Array () | |
AP4_Array (const T *items, AP4_Size count) | |
virtual | ~AP4_Array () |
AP4_Cardinal | ItemCount () const |
AP4_Result | Append (const T &item) |
AP4_Result | RemoveLast () |
T & | operator[] (unsigned long idx) |
const T & | operator[] (unsigned long idx) const |
AP4_Result | Clear () |
AP4_Result | EnsureCapacity (AP4_Cardinal count) |
AP4_Result | SetItemCount (AP4_Cardinal item_count) |
Protected Attributes | |
AP4_Cardinal | m_AllocatedCount |
AP4_Cardinal | m_ItemCount |
T * | m_Items |
Detailed Description
template<typename T>
class AP4_Array< T >
Definition at line 55 of file Ap4Array.h.
Constructor & Destructor Documentation
Definition at line 59 of file Ap4Array.h.
Definition at line 82 of file Ap4Array.h.
References AP4_Array< T >::m_Items.
Definition at line 96 of file Ap4Array.h.
References AP4_Array< T >::Clear(), and AP4_Array< T >::m_Items.
Member Function Documentation
AP4_Result AP4_Array< T >::Append | ( | const T & | item | ) | [inline] |
Definition at line 199 of file Ap4Array.h.
References AP4_ARRAY_INITIAL_COUNT, AP4_SUCCESS, AP4_Array< T >::EnsureCapacity(), AP4_Array< T >::m_AllocatedCount, AP4_Array< T >::m_ItemCount, and AP4_Array< T >::m_Items.
AP4_Result AP4_Array< T >::Clear | ( | ) | [inline] |
Definition at line 107 of file Ap4Array.h.
References AP4_SUCCESS, AP4_Array< T >::m_ItemCount, and AP4_Array< T >::m_Items.
Referenced by AP4_Array< T >::~AP4_Array().
AP4_Result AP4_Array< T >::EnsureCapacity | ( | AP4_Cardinal | count | ) | [inline] |
Definition at line 124 of file Ap4Array.h.
References AP4_ERROR_OUT_OF_MEMORY, AP4_SUCCESS, AP4_Array< T >::m_AllocatedCount, AP4_Array< T >::m_ItemCount, and AP4_Array< T >::m_Items.
Referenced by AP4_Array< T >::Append(), and AP4_Array< T >::SetItemCount().
AP4_Cardinal AP4_Array< T >::ItemCount | ( | ) | const [inline] |
Definition at line 62 of file Ap4Array.h.
const T& AP4_Array< T >::operator[] | ( | unsigned long | idx | ) | const [inline] |
Definition at line 66 of file Ap4Array.h.
T& AP4_Array< T >::operator[] | ( | unsigned long | idx | ) | [inline] |
Definition at line 65 of file Ap4Array.h.
AP4_Result AP4_Array< T >::RemoveLast | ( | ) | [inline] |
Definition at line 184 of file Ap4Array.h.
References AP4_ERROR_OUT_OF_RANGE, AP4_SUCCESS, AP4_Array< T >::m_ItemCount, and AP4_Array< T >::m_Items.
AP4_Result AP4_Array< T >::SetItemCount | ( | AP4_Cardinal | item_count | ) | [inline] |
Definition at line 152 of file Ap4Array.h.
References AP4_FAILED, AP4_SUCCESS, AP4_Array< T >::EnsureCapacity(), AP4_Array< T >::m_ItemCount, and AP4_Array< T >::m_Items.
Member Data Documentation
AP4_Cardinal AP4_Array< T >::m_AllocatedCount [protected] |
Definition at line 73 of file Ap4Array.h.
Referenced by AP4_Array< T >::Append(), and AP4_Array< T >::EnsureCapacity().
AP4_Cardinal AP4_Array< T >::m_ItemCount [protected] |
Definition at line 74 of file Ap4Array.h.
Referenced by AP4_Array< T >::Append(), AP4_Array< T >::Clear(), AP4_Array< T >::EnsureCapacity(), AP4_Array< KeyInfo >::ItemCount(), AP4_Array< T >::RemoveLast(), and AP4_Array< T >::SetItemCount().
Definition at line 75 of file Ap4Array.h.
Referenced by AP4_Array< T >::AP4_Array(), AP4_Array< T >::Append(), AP4_Array< T >::Clear(), AP4_Array< T >::EnsureCapacity(), AP4_Array< KeyInfo >::operator[](), AP4_Array< T >::RemoveLast(), AP4_Array< T >::SetItemCount(), and AP4_Array< T >::~AP4_Array().
The documentation for this class was generated from the following file:
Generated on Thu May 13 16:36:44 2010 for Bento4 MP4 SDK by
