Halide 19.0.0
Halide compiler and libraries
|
#include <pointer_table.h>
Static Public Member Functions | |
static const SystemMemoryAllocatorFns & | default_allocator () |
Static Public Attributes | |
static constexpr size_t | default_capacity = 32 |
Definition at line 14 of file pointer_table.h.
|
explicit |
Definition at line 74 of file pointer_table.h.
References Halide::Runtime::Internal::SystemMemoryAllocatorFns::allocate, Halide::Runtime::Internal::SystemMemoryAllocatorFns::deallocate, halide_debug_assert, reserve(), and user_context.
Halide::Runtime::Internal::PointerTable::PointerTable | ( | const PointerTable & | other | ) |
Definition at line 83 of file pointer_table.h.
References Halide::Runtime::Internal::SystemMemoryAllocatorFns::allocate, Halide::cast(), and memcpy().
Halide::Runtime::Internal::PointerTable::~PointerTable | ( | ) |
Definition at line 95 of file pointer_table.h.
References destroy().
void Halide::Runtime::Internal::PointerTable::initialize | ( | void * | user_context, |
size_t | initial_capacity = 0 , |
||
const SystemMemoryAllocatorFns & | sma = default_allocator() |
||
) |
Definition at line 108 of file pointer_table.h.
References Halide::cast(), reserve(), and user_context.
PointerTable & Halide::Runtime::Internal::PointerTable::operator= | ( | const PointerTable & | other | ) |
Definition at line 117 of file pointer_table.h.
References Halide::cast(), memcpy(), and resize().
bool Halide::Runtime::Internal::PointerTable::operator== | ( | const PointerTable & | other | ) | const |
Definition at line 127 of file pointer_table.h.
References Halide::cast(), and memcmp().
bool Halide::Runtime::Internal::PointerTable::operator!= | ( | const PointerTable & | other | ) | const |
Definition at line 134 of file pointer_table.h.
References Halide::cast().
void Halide::Runtime::Internal::PointerTable::reserve | ( | void * | user_context, |
size_t | capacity, | ||
bool | free_existing = false |
||
) |
Definition at line 173 of file pointer_table.h.
References Halide::cast(), and user_context.
Referenced by initialize(), and PointerTable().
void Halide::Runtime::Internal::PointerTable::resize | ( | void * | user_context, |
size_t | entry_count, | ||
bool | realloc = true |
||
) |
Definition at line 181 of file pointer_table.h.
References Halide::cast(), default_capacity, and user_context.
Referenced by clear(), fill(), insert(), operator=(), pop_back(), remove(), and Halide::Runtime::Internal::StringTable::resize().
void Halide::Runtime::Internal::PointerTable::assign | ( | void * | user_context, |
size_t | index, | ||
const void * | entry_ptr | ||
) |
Definition at line 146 of file pointer_table.h.
References Halide::cast(), halide_debug_assert, and user_context.
Referenced by Halide::Runtime::Internal::StringTable::assign(), Halide::Runtime::Internal::StringTable::clear(), Halide::Runtime::Internal::StringTable::destroy(), Halide::Runtime::Internal::StringTable::fill(), Halide::Runtime::Internal::StringTable::parse(), and Halide::Runtime::Internal::StringTable::resize().
void Halide::Runtime::Internal::PointerTable::insert | ( | void * | user_context, |
size_t | index, | ||
const void * | entry_ptr | ||
) |
Definition at line 221 of file pointer_table.h.
References Halide::cast(), insert(), and user_context.
void Halide::Runtime::Internal::PointerTable::prepend | ( | void * | user_context, |
const void * | entry_ptr | ||
) |
Definition at line 151 of file pointer_table.h.
References Halide::cast(), insert(), and user_context.
Referenced by Halide::Runtime::Internal::StringTable::prepend().
void Halide::Runtime::Internal::PointerTable::append | ( | void * | user_context, |
const void * | entry_ptr | ||
) |
Definition at line 155 of file pointer_table.h.
References append(), Halide::cast(), and user_context.
Referenced by Halide::Runtime::Internal::StringTable::append(), and append().
void Halide::Runtime::Internal::PointerTable::remove | ( | void * | user_context, |
size_t | index | ||
) |
Definition at line 226 of file pointer_table.h.
References remove(), and user_context.
Referenced by pop_front(), and remove().
void Halide::Runtime::Internal::PointerTable::fill | ( | void * | user_context, |
const void ** | array, | ||
size_t | array_size | ||
) |
Definition at line 138 of file pointer_table.h.
References memcpy(), resize(), and user_context.
void Halide::Runtime::Internal::PointerTable::insert | ( | void * | user_context, |
size_t | index, | ||
const void ** | array, | ||
size_t | array_size | ||
) |
Definition at line 271 of file pointer_table.h.
References Halide::cast(), halide_debug_assert, memmove(), replace(), resize(), size(), and user_context.
void Halide::Runtime::Internal::PointerTable::replace | ( | void * | user_context, |
size_t | index, | ||
const void ** | array, | ||
size_t | array_size | ||
) |
Definition at line 252 of file pointer_table.h.
References Halide::cast(), halide_debug_assert, memcpy(), and user_context.
Referenced by insert().
void Halide::Runtime::Internal::PointerTable::prepend | ( | void * | user_context, |
const void ** | array, | ||
size_t | array_size | ||
) |
Definition at line 284 of file pointer_table.h.
References insert(), and user_context.
void Halide::Runtime::Internal::PointerTable::append | ( | void * | user_context, |
const void ** | array, | ||
size_t | array_size | ||
) |
Definition at line 288 of file pointer_table.h.
References Halide::cast(), insert(), size(), and user_context.
void Halide::Runtime::Internal::PointerTable::remove | ( | void * | user_context, |
size_t | index, | ||
size_t | entry_count | ||
) |
Definition at line 230 of file pointer_table.h.
References Halide::cast(), halide_debug_assert, memmove(), resize(), size(), and user_context.
void Halide::Runtime::Internal::PointerTable::pop_front | ( | void * | user_context | ) |
Definition at line 159 of file pointer_table.h.
References halide_debug_assert, remove(), and user_context.
void Halide::Runtime::Internal::PointerTable::pop_back | ( | void * | user_context | ) |
Definition at line 164 of file pointer_table.h.
References halide_debug_assert, resize(), size(), and user_context.
void Halide::Runtime::Internal::PointerTable::shrink_to_fit | ( | void * | user_context | ) |
Definition at line 207 of file pointer_table.h.
References Halide::Runtime::Internal::SystemMemoryAllocatorFns::allocate, Halide::cast(), Halide::Runtime::Internal::SystemMemoryAllocatorFns::deallocate, memcpy(), and user_context.
void Halide::Runtime::Internal::PointerTable::clear | ( | void * | user_context | ) |
Definition at line 169 of file pointer_table.h.
References resize(), and user_context.
Referenced by Halide::Runtime::Internal::StringTable::clear().
void Halide::Runtime::Internal::PointerTable::destroy | ( | void * | user_context | ) |
Definition at line 99 of file pointer_table.h.
References Halide::Runtime::Internal::SystemMemoryAllocatorFns::deallocate, halide_debug_assert, and user_context.
Referenced by Halide::Runtime::Internal::StringTable::destroy(), and ~PointerTable().
bool Halide::Runtime::Internal::PointerTable::empty | ( | ) | const |
Definition at line 293 of file pointer_table.h.
size_t Halide::Runtime::Internal::PointerTable::size | ( | ) | const |
Definition at line 297 of file pointer_table.h.
Referenced by append(), Halide::Runtime::Internal::StringTable::assign(), Halide::Runtime::Internal::StringTable::clear(), Halide::Runtime::Internal::StringTable::contains(), Halide::Runtime::Internal::StringTable::destroy(), Halide::Runtime::Internal::StringTable::fill(), insert(), Halide::Runtime::Internal::StringTable::operator[](), Halide::Runtime::Internal::StringTable::parse(), pop_back(), remove(), Halide::Runtime::Internal::StringTable::resize(), and Halide::Runtime::Internal::StringTable::size().
void * Halide::Runtime::Internal::PointerTable::operator[] | ( | size_t | index | ) |
Definition at line 301 of file pointer_table.h.
References halide_debug_assert.
void * Halide::Runtime::Internal::PointerTable::operator[] | ( | size_t | index | ) | const |
Definition at line 306 of file pointer_table.h.
References halide_debug_assert.
void ** Halide::Runtime::Internal::PointerTable::data | ( | ) |
Definition at line 311 of file pointer_table.h.
Referenced by Halide::Runtime::Internal::StringTable::data().
const void ** Halide::Runtime::Internal::PointerTable::data | ( | ) | const |
Definition at line 326 of file pointer_table.h.
void * Halide::Runtime::Internal::PointerTable::front | ( | ) |
Definition at line 315 of file pointer_table.h.
References halide_debug_assert.
void * Halide::Runtime::Internal::PointerTable::back | ( | ) |
Definition at line 320 of file pointer_table.h.
References halide_debug_assert.
const SystemMemoryAllocatorFns & Halide::Runtime::Internal::PointerTable::current_allocator | ( | ) | const |
Definition at line 353 of file pointer_table.h.
Referenced by Halide::Runtime::Internal::StringTable::append(), Halide::Runtime::Internal::StringTable::prepend(), and Halide::Runtime::Internal::StringTable::resize().
|
static |
Definition at line 358 of file pointer_table.h.
References Halide::cast(), Halide::Runtime::Internal::native_system_free(), and Halide::Runtime::Internal::native_system_malloc().
Definition at line 16 of file pointer_table.h.
Referenced by resize().