Skip to content

KDGpu::Pool

Pool. More...

#include <pool.h>

Public Functions

Name
Pool()
Pool(uint32_t size)
Pool(Pool const & other) =delete
Pool & operator=(Pool const & other) =delete
Pool(Pool && other)
Pool & operator=(Pool && other)
uint32_t capacity() const
uint32_t size() const
T * get(const Handle< H > & handle) const
template <typename... Args>
Handle< H >
emplace(Args &&... args)
Handle< H > insert(const T & data)
void remove(const Handle< H > & handle)
void clear()
Handle< H > handleForIndex(uint32_t entryIndex) const

Detailed Description

1
2
3
template <typename T ,
typename H >
class KDGpu::Pool;

Pool.

Public Functions Documentation

function Pool

1
inline Pool()

function Pool

1
2
3
inline explicit Pool(
    uint32_t size
)

function Pool

1
2
3
Pool(
    Pool const & other
) =delete

function operator=

1
2
3
Pool & operator=(
    Pool const & other
) =delete

function Pool

1
2
3
inline Pool(
    Pool && other
)

function operator=

1
2
3
inline Pool & operator=(
    Pool && other
)

function capacity

1
inline uint32_t capacity() const

function size

1
inline uint32_t size() const

function get

1
2
3
inline T * get(
    const Handle< H > & handle
) const

function emplace

1
2
3
4
template <typename... Args>
inline Handle< H > emplace(
    Args &&... args
)

function insert

1
2
3
inline Handle< H > insert(
    const T & data
)

function remove

1
2
3
inline void remove(
    const Handle< H > & handle
)

function clear

1
inline void clear()

function handleForIndex

1
2
3
inline Handle< H > handleForIndex(
    uint32_t entryIndex
) const

Updated on 2024-12-22 at 00:08:03 +0000