Class CCArrayExt<Type>

#include <Geode/utils/cocos.hpp>
classCCArrayExt<Type>{ ... }

A templated wrapper over CCArray, providing easy iteration and indexing. This will keep ownership of the given CCArray*.

Template parameters

Type

Pointer to a type that inherits CCObject.
Examples1
CCArrayExt<GameObject*> objects = PlayLayer::get()->m_objects;
// Easy indexing, giving you the type you assigned
GameObject* myObj = objects[2];

// Easy iteration using C++ range-based for loops
for (auto* obj : objects) {
  log::info("{}", obj->m_objectID);
}
Public static methods0
Public member functions9
int **begin()const
No description provided
int **end()const
No description provided
autorbegin()const
No description provided
autorend()const
No description provided
size_tsize()const
No description provided
int*operator[](
size_tindex
)
No description provided
voidpush_back(
int*item
)
No description provided
int*pop_back()
No description provided
cocos2d::CCArray*inner()
No description provided
Fields0
Protected member functions0
Protected fields1
;
No description provided