namespace cocos2d { class CCMutableArray : public CCObject { TOLUA_TEMPLATE_BIND(T, CCObject*, CCSpriteFrame*, CCFiniteTimeAction*) CCMutableArray(unsigned int uSize = 0); ~CCMutableArray(void); unsigned int count(void); unsigned int getIndexOfObject(T pObject); bool containsObject(T pObject); T getLastObject(void); T getObjectAtIndex(unsigned int uIndex); // Adding objects void addObject(T pObject); void addObjectsFromArray(CCMutableArray *pArray); void insertObjectAtIndex(T pObject, unsigned int uIndex); // Removing objects void removeLastObject(bool bDeleteObject = true); void removeObject(T pObject, bool bDeleteObject = true); void removeObjectsInArray(CCMutableArray* 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::iterator begin(void); std::vector::reverse_iterator rbegin(void); std::vector::iterator endToLua(void); std::vector::reverse_iterator rend(void); CCMutableArray* copy(void); //static CCMutableArray* arrayWithObjects(T pObject1, ...); static CCMutableArray* arrayWithArray(CCMutableArray *pArray); }; }//namespace cocos2d