Class CCArrayExt<Type>

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

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
T **begin()const
No description provided
T **end()const
No description provided
autorbegin()const
No description provided
autorend()const
No description provided
_::size_tsize()const
No description provided
geode::cocos::CCArrayExt::T*operator[]()
No description provided
voidpush_back()
No description provided
geode::cocos::CCArrayExt::T*pop_back()
No description provided
cocos2d::CCArray*inner()
No description provided
Fields0
Protected member functions0
Protected fields1
;
No description provided