70 #ifndef __INCLUDE_TNXARRAY_HXX 71 #define __INCLUDE_TNXARRAY_HXX 77 #include <nuttx/config.h> 92 #if defined(__cplusplus) 170 inline const int size(
void)
const;
187 void insert(
const int index,
const T &value);
199 void erase(
const int index);
207 inline T &
at(
const int index)
const;
214 inline bool empty(
void)
const;
311 for (
int i =
m_size; i > index; i--)
337 for (
int i = index; i <
m_size - 1; i++)
356 T *newData =
new T[newSize];
375 m_reservedSize = newSize;
389 #if CONFIG_NXWIDGETS_TNXARRAY_INITIALSIZE != CONFIG_NXWIDGETS_TNXARRAY_SIZEINCREMENT 391 CONFIG_NXWIDGETS_TNXARRAY_SIZEINCREMENT :
392 CONFIG_NXWIDGETS_TNXARRAY_INITIALSIZE;
394 newSize += CONFIG_NXWIDGETS_TNXARRAY_SIZEINCREMENT;
435 #endif // __cplusplus 437 #endif // __INCLUDE_TNXARRAY_HXX
T & operator[](const int index) const
void erase(const int index)
void push_back(const T &value)
void reallocate(const int newSize)
const int size(void) const
T & at(const int index) const
void insert(const int index, const T &value)