Halide
Halide::Runtime::Internal::CacheEntry Struct Reference

#include <hashmap.h>

Public Member Functions

bool init (void *user_context, const uint8_t *cache_key, size_t cache_key_size, uint32_t key_hash, const uint8_t *cache_value, size_t cache_value_size, copy_value_func copy_value)
 
void destroy (void *user_context, destroy_value_func destroy_value)
 

Public Attributes

CacheEntrynext
 
CacheEntrymore_recent
 
CacheEntryless_recent
 
uint8_tmetadata_storage
 
size_t key_size
 
uint8_tkey
 
uint32_t hash
 
uint32_t in_use_count
 
size_t value_size
 
uint8_tvalue
 

Detailed Description

Definition at line 41 of file hashmap.h.

Member Function Documentation

◆ init()

bool Halide::Runtime::Internal::CacheEntry::init ( void *  user_context,
const uint8_t cache_key,
size_t  cache_key_size,
uint32_t  key_hash,
const uint8_t cache_value,
size_t  cache_value_size,
copy_value_func  copy_value 
)
inline

Definition at line 64 of file hashmap.h.

◆ destroy()

void Halide::Runtime::Internal::CacheEntry::destroy ( void *  user_context,
destroy_value_func  destroy_value 
)
inline

Member Data Documentation

◆ next

CacheEntry* Halide::Runtime::Internal::CacheEntry::next

◆ more_recent

CacheEntry* Halide::Runtime::Internal::CacheEntry::more_recent

Definition at line 43 of file hashmap.h.

Referenced by Halide::Runtime::Internal::HashMap::prune().

◆ less_recent

CacheEntry* Halide::Runtime::Internal::CacheEntry::less_recent

Definition at line 44 of file hashmap.h.

Referenced by Halide::Runtime::Internal::HashMap::prune().

◆ metadata_storage

uint8_t* Halide::Runtime::Internal::CacheEntry::metadata_storage

Definition at line 45 of file hashmap.h.

◆ key_size

size_t Halide::Runtime::Internal::CacheEntry::key_size

Definition at line 46 of file hashmap.h.

◆ key

uint8_t* Halide::Runtime::Internal::CacheEntry::key

Definition at line 47 of file hashmap.h.

◆ hash

uint32_t Halide::Runtime::Internal::CacheEntry::hash

Definition at line 48 of file hashmap.h.

Referenced by Halide::Runtime::Internal::HashMap::prune().

◆ in_use_count

uint32_t Halide::Runtime::Internal::CacheEntry::in_use_count

Definition at line 49 of file hashmap.h.

Referenced by Halide::Runtime::Internal::HashMap::prune().

◆ value_size

size_t Halide::Runtime::Internal::CacheEntry::value_size

Definition at line 52 of file hashmap.h.

Referenced by Halide::Runtime::Internal::HashMap::prune().

◆ value

uint8_t* Halide::Runtime::Internal::CacheEntry::value

Definition at line 53 of file hashmap.h.


The documentation for this struct was generated from the following file: