ChatPlexSDK-BS
1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
shared
CP_SDK
Pool
IObjectPool.hpp
1
#pragma once
2
3
#include "../Utils/Il2cpp.hpp"
4
5
namespace
CP_SDK::Pool
{
6
9
template
<
class
t_Type>
10
class
IObjectPool
11
{
12
CP_SDK_NO_DEF_CTORS(
IObjectPool
);
13
14
protected
:
15
CP_SDK_PRIV_TAG();
16
18
IObjectPool
(CP_SDK_PRIV_TAG_ARG()) {}
20
virtual
~IObjectPool
() {}
21
22
public
:
24
virtual
int
CountInactive
() = 0;
25
26
public
:
28
virtual
t_Type
Get
() = 0;
31
virtual
void
Release
(t_Type& p_Element) = 0;
32
33
public
:
35
virtual
void
Clear
() = 0;
36
37
};
38
39
}
CP_SDK::Pool::IObjectPool
Object pool interface.
Definition
IObjectPool.hpp:11
CP_SDK::Pool::IObjectPool::Release
virtual void Release(t_Type &p_Element)=0
Release an element.
CP_SDK::Pool::IObjectPool::Get
virtual t_Type Get()=0
Simple get.
CP_SDK::Pool::IObjectPool::CountInactive
virtual int CountInactive()=0
Released element.
CP_SDK::Pool::IObjectPool::Clear
virtual void Clear()=0
Clear the object pool.
CP_SDK::Pool::IObjectPool::IObjectPool
IObjectPool(CP_SDK_PRIV_TAG_ARG())
Constructor.
Definition
IObjectPool.hpp:18
CP_SDK::Pool::IObjectPool::~IObjectPool
virtual ~IObjectPool()
Destructor.
Definition
IObjectPool.hpp:20
CP_SDK::Pool
Memory management & pools utilities.
Definition
IObjectPool.hpp:5
Generated by
1.9.8