UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TObjectCacheIterator< T > Class Template Reference

#include <ObjectCacheContext.h>

Public Member Functions

 TObjectCacheIterator (TArray< T * > &&InObjectArray)
 
 TObjectCacheIterator (TArrayView< T * > InArrayView)
 
const int32 IsEmpty () const
 
T ** begin () const
 
T ** end () const
 

Protected Attributes

TArray< T * > OwnedArray
 
TArrayView< T * > ArrayView
 

Detailed Description

template<class T>
class TObjectCacheIterator< T >

Class to abstract implementation details of the containers used inside the object cache so they can be changed later if needed without API changes.

Constructor & Destructor Documentation

◆ TObjectCacheIterator() [1/2]

template<class T >
TObjectCacheIterator< T >::TObjectCacheIterator ( TArray< T * > &&  InObjectArray)
inlineexplicit

Constructor

◆ TObjectCacheIterator() [2/2]

template<class T >
TObjectCacheIterator< T >::TObjectCacheIterator ( TArrayView< T * >  InArrayView)
inlineexplicit

Constructor

Member Function Documentation

◆ begin()

template<class T >
T ** TObjectCacheIterator< T >::begin ( ) const
inline

DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support.

◆ end()

template<class T >
T ** TObjectCacheIterator< T >::end ( ) const
inline

◆ IsEmpty()

template<class T >
const int32 TObjectCacheIterator< T >::IsEmpty ( ) const
inline

Member Data Documentation

◆ ArrayView

template<class T >
TArrayView<T*> TObjectCacheIterator< T >::ArrayView
protected

The array view is used to do the iteration, the arrayview might point to another object if the array is not owned

◆ OwnedArray

template<class T >
TArray<T*> TObjectCacheIterator< T >::OwnedArray
protected

Sometimes, a copy might be necessary to maintain thread-safety


The documentation for this class was generated from the following file: