Elaztek Developer Hub
Blamite Game Engine - blam!  00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
ImPool< T > Struct Template Reference

#include <imgui_internal.h>

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 GetSize () const
 

Public Attributes

ImVector< T > Data
 
ImGuiStorage Map
 
ImPoolIdx FreeIdx
 

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

◆ 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

◆ GetOrAddByKey()

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

◆ GetSize()

template<typename T >
int ImPool< T >::GetSize ( ) const
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

Member Data Documentation

◆ Data

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

◆ 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: