axmol/tools/tolua++/CCMutableArray.pkg

39 lines
1.2 KiB
Plaintext

class CCMutableArray : public CCObject
{
TOLUA_TEMPLATE_BIND(T, CCObject*, CCSpriteFrame*, CCFiniteTimeAction*)
unsigned int count(void);
unsigned int getIndexOfObject(T pObject);
bool containsObject(T pObject);
T getLastObject(void);
T getObjectAtIndex(unsigned int uIndex);
void addObject(T pObject);
void addObjectsFromArray(CCMutableArray<T> *pArray);
void insertObjectAtIndex(T pObject, unsigned int uIndex);
void removeLastObject(bool bDeleteObject = true);
void removeObject(T pObject, bool bDeleteObject = true);
void removeObjectsInArray(CCMutableArray<T>* pDeleteArray);
void removeObjectAtIndex(unsigned int uIndex, bool bDeleteObject = true);
void removeAllObjects(bool bDeleteObject = true);
void replaceObjectAtIndex(unsigned int uIndex, T pObject, bool bDeleteObject = true);
std::vector<T>::iterator begin(void);
std::vector<T>::reverse_iterator rbegin(void);
std::vector<T>::iterator endToLua(void);
std::vector<T>::reverse_iterator rend(void);
CCMutableArray<T>* copy(void);
static CCMutableArray<T>* arrayWithArray(CCMutableArray<T> *pArray);
};