Path Tracing
Loading...
Searching...
No Matches
ImPool< T > Struct Template Reference

#include <imgui_internal.h>

Collaboration diagram for ImPool< T >:

Public Member Functions

 ImPool ()
 ~ImPool ()
T * GetByKey (ImGuiID key)
T * GetByIndex (ImPoolIdx n)
ImPoolIdx GetIndex (const T *p) const
T * GetOrAddByKey (ImGuiID key)
bool Contains (const T *p) const
void Clear ()
T * Add ()
void Remove (ImGuiID key, const T *p)
void Remove (ImGuiID key, ImPoolIdx idx)
void Reserve (int capacity)
int GetAliveCount () const
int GetBufSize () const
int GetMapSize () const
T * TryGetMapData (ImPoolIdx n)

Public Attributes

ImVector< T > Buf
ImGuiStorage Map
ImPoolIdx FreeIdx
ImPoolIdx AliveCount

Constructor & Destructor Documentation

◆ ImPool()

template<typename T>
ImPool< T >::ImPool ( )
inline

◆ ~ImPool()

template<typename T>
ImPool< T >::~ImPool ( )
inline

Member Function Documentation

◆ Add()

template<typename T>
T * ImPool< T >::Add ( )
inline

◆ Clear()

template<typename T>
void ImPool< T >::Clear ( )
inline

◆ Contains()

template<typename T>
bool ImPool< T >::Contains ( const T * p) const
inline

◆ GetAliveCount()

template<typename T>
int ImPool< T >::GetAliveCount ( ) const
inline

◆ GetBufSize()

template<typename T>
int ImPool< T >::GetBufSize ( ) const
inline

◆ GetByIndex()

template<typename T>
T * ImPool< T >::GetByIndex ( ImPoolIdx n)
inline

◆ GetByKey()

template<typename T>
T * ImPool< T >::GetByKey ( ImGuiID key)
inline

◆ GetIndex()

template<typename T>
ImPoolIdx ImPool< T >::GetIndex ( const T * p) const
inline

◆ GetMapSize()

template<typename T>
int ImPool< T >::GetMapSize ( ) const
inline

◆ GetOrAddByKey()

template<typename T>
T * ImPool< T >::GetOrAddByKey ( ImGuiID key)
inline

◆ Remove() [1/2]

template<typename T>
void ImPool< T >::Remove ( ImGuiID key,
const T * p )
inline

◆ Remove() [2/2]

template<typename T>
void ImPool< T >::Remove ( ImGuiID key,
ImPoolIdx idx )
inline

◆ Reserve()

template<typename T>
void ImPool< T >::Reserve ( int capacity)
inline

◆ TryGetMapData()

template<typename T>
T * ImPool< T >::TryGetMapData ( ImPoolIdx n)
inline

Member Data Documentation

◆ AliveCount

template<typename T>
ImPoolIdx ImPool< T >::AliveCount

◆ Buf

template<typename T>
ImVector<T> ImPool< T >::Buf

◆ FreeIdx

template<typename T>
ImPoolIdx ImPool< T >::FreeIdx

◆ Map

template<typename T>
ImGuiStorage ImPool< T >::Map

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