42 #ifndef QPODVECTOR_P_H 43 #define QPODVECTOR_P_H 56 #include <QtCore/qglobal.h> 61 template<
class T,
int Increment=1024>
69 const T &
at(
int idx)
const {
96 ::memmove(
m_data + idx + 1,
m_data + idx, moveCount *
sizeof(T));
103 m_capacity = (count + (Increment-1)) & (0xFFFFFFFF - Increment + 1);
114 moveCount *
sizeof(T));
118 void remove(
int idx,
int count = 1) {
122 moveCount *
sizeof(T));
138 for (
int idx = 0; idx <
m_count; ++idx)
145 return find(v) != -1;
const T & at(int idx) const
void insertBlank(int idx, int count)
#define QT_END_NAMESPACE
This macro expands to.
QPODVector< T, Increment > & operator<<(const T &v)
void copyAndClear(QPODVector< T, Increment > &other)
bool contains(const T &v)
QPODVector & operator=(const QPODVector &)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void removeOne(const T &v)
void insert(int idx, const T &v)