Public Member Functions | Public Attributes | List of all members
ImPool< T > Struct Template Reference

#include <imgui_internal.h>

Public Member Functions

T * Add ()
 
void Clear ()
 
T * GetByIndex (ImPoolIdx n)
 
T * GetByKey (ImGuiID key)
 
ImPoolIdx GetIndex (const T *p) const
 
T * GetOrAddByKey (ImGuiID key)
 
int GetSize () const
 
 ImPool ()
 
void Remove (ImGuiID key, const T *p)
 
void Remove (ImGuiID key, ImPoolIdx idx)
 
void Reserve (int capacity)
 
 ~ImPool ()
 

Public Attributes

ImVector< T > Data
 
ImPoolIdx FreeIdx
 
ImGuiStorage Map
 

Detailed Description

template<typename T>
struct ImPool< T >

Definition at line 243 of file imgui_internal.h.

Constructor & Destructor Documentation

◆ ImPool()

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

Definition at line 249 of file imgui_internal.h.

◆ ~ImPool()

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

Definition at line 250 of file imgui_internal.h.

Member Function Documentation

◆ Add()

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

Definition at line 256 of file imgui_internal.h.

◆ Clear()

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

Definition at line 255 of file imgui_internal.h.

◆ GetByIndex()

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

Definition at line 252 of file imgui_internal.h.

◆ GetByKey()

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

Definition at line 251 of file imgui_internal.h.

◆ GetIndex()

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

Definition at line 253 of file imgui_internal.h.

◆ GetOrAddByKey()

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

Definition at line 254 of file imgui_internal.h.

◆ GetSize()

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

Definition at line 260 of file imgui_internal.h.

◆ Remove() [1/2]

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

Definition at line 257 of file imgui_internal.h.

◆ Remove() [2/2]

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

Definition at line 258 of file imgui_internal.h.

◆ Reserve()

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

Definition at line 259 of file imgui_internal.h.

Member Data Documentation

◆ Data

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

Definition at line 245 of file imgui_internal.h.

◆ FreeIdx

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

Definition at line 247 of file imgui_internal.h.

◆ Map

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

Definition at line 246 of file imgui_internal.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:23