Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
ImPool< T > Struct Template Reference

#include <imgui_internal.h>

Collaboration diagram for ImPool< T >:
[legend]

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
Here is the call graph for this function:

Member Function Documentation

◆ Add()

template<typename T>
T * ImPool< T >::Add ( )
inline
Here is the caller graph for this function:

◆ Clear()

template<typename T>
void ImPool< T >::Clear ( )
inline
Here is the caller graph for this function:

◆ Contains()

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

◆ GetAliveCount()

template<typename T>
int ImPool< T >::GetAliveCount ( ) const
inline
Here is the caller graph for this function:

◆ GetBufSize()

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

◆ GetByIndex()

template<typename T>
T * ImPool< T >::GetByIndex ( ImPoolIdx n)
inline
Here is the caller graph for this function:

◆ GetByKey()

template<typename T>
T * ImPool< T >::GetByKey ( ImGuiID key)
inline
Here is the caller graph for this function:

◆ GetIndex()

template<typename T>
ImPoolIdx ImPool< T >::GetIndex ( const T * p) const
inline
Here is the caller graph for this function:

◆ GetMapSize()

template<typename T>
int ImPool< T >::GetMapSize ( ) const
inline
Here is the caller graph for this function:

◆ GetOrAddByKey()

template<typename T>
T * ImPool< T >::GetOrAddByKey ( ImGuiID key)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Remove() [1/2]

template<typename T>
void ImPool< T >::Remove ( ImGuiID key,
const T * p )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the caller graph for this function:

◆ TryGetMapData()

template<typename T>
T * ImPool< T >::TryGetMapData ( ImPoolIdx n)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

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