Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Halide::Runtime::Internal::LinkedList Class Reference

#include <linked_list.h>

Classes

struct  EntryType
 

Public Member Functions

 LinkedList (const LinkedList &)=delete
 
LinkedListoperator= (const LinkedList &)=delete
 
 LinkedList (void *user_context, uint32_t entry_size, uint32_t capacity=default_capacity, const SystemMemoryAllocatorFns &allocator=default_allocator())
 
 ~LinkedList ()
 
void initialize (void *user_context, uint32_t entry_size, uint32_t capacity=default_capacity, const SystemMemoryAllocatorFns &allocator=default_allocator())
 
EntryTypefront ()
 
EntryTypeback ()
 
const EntryTypefront () const
 
const EntryTypeback () const
 
EntryTypeprepend (void *user_context)
 
EntryTypeprepend (void *user_context, const void *value)
 
EntryTypeappend (void *user_context)
 
EntryTypeappend (void *user_context, const void *value)
 
void pop_front (void *user_context)
 
void pop_back (void *user_context)
 
EntryTypeinsert_before (void *user_context, EntryType *entry_ptr)
 
EntryTypeinsert_before (void *user_context, EntryType *entry_ptr, const void *value)
 
EntryTypeinsert_after (void *user_context, EntryType *entry_ptr)
 
EntryTypeinsert_after (void *user_context, EntryType *entry_ptr, const void *value)
 
void remove (void *user_context, EntryType *entry_ptr)
 
void clear (void *user_context)
 
void destroy (void *user_context)
 
size_t size () const
 
bool empty () const
 
const SystemMemoryAllocatorFnscurrent_allocator () const
 

Static Public Member Functions

static const SystemMemoryAllocatorFnsdefault_allocator ()
 

Static Public Attributes

static constexpr uint32_t default_capacity = uint32_t(32)
 

Detailed Description

Definition at line 13 of file linked_list.h.

Constructor & Destructor Documentation

◆ LinkedList() [1/2]

Halide::Runtime::Internal::LinkedList::LinkedList ( const LinkedList & )
delete

◆ LinkedList() [2/2]

Halide::Runtime::Internal::LinkedList::LinkedList ( void * user_context,
uint32_t entry_size,
uint32_t capacity = default_capacity,
const SystemMemoryAllocatorFns & allocator = default_allocator() )

◆ ~LinkedList()

Halide::Runtime::Internal::LinkedList::~LinkedList ( )

Definition at line 88 of file linked_list.h.

References destroy().

Member Function Documentation

◆ operator=()

LinkedList & Halide::Runtime::Internal::LinkedList::operator= ( const LinkedList & )
delete

◆ initialize()

void Halide::Runtime::Internal::LinkedList::initialize ( void * user_context,
uint32_t entry_size,
uint32_t capacity = default_capacity,
const SystemMemoryAllocatorFns & allocator = default_allocator() )

◆ front() [1/2]

LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::front ( )

Definition at line 117 of file linked_list.h.

Referenced by Halide::Runtime::Internal::BlockAllocator::pool_size().

◆ back() [1/2]

◆ front() [2/2]

const LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::front ( ) const

Definition at line 125 of file linked_list.h.

◆ back() [2/2]

const LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::back ( ) const

Definition at line 129 of file linked_list.h.

◆ prepend() [1/2]

LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::prepend ( void * user_context)

◆ prepend() [2/2]

◆ append() [1/2]

LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::append ( void * user_context)

◆ append() [2/2]

◆ pop_front()

void Halide::Runtime::Internal::LinkedList::pop_front ( void * user_context)

◆ pop_back()

void Halide::Runtime::Internal::LinkedList::pop_back ( void * user_context)

◆ insert_before() [1/2]

LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::insert_before ( void * user_context,
EntryType * entry_ptr )

◆ insert_before() [2/2]

LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::insert_before ( void * user_context,
EntryType * entry_ptr,
const void * value )

◆ insert_after() [1/2]

LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::insert_after ( void * user_context,
EntryType * entry_ptr )

◆ insert_after() [2/2]

LinkedList::EntryType * Halide::Runtime::Internal::LinkedList::insert_after ( void * user_context,
EntryType * entry_ptr,
const void * value )

◆ remove()

void Halide::Runtime::Internal::LinkedList::remove ( void * user_context,
EntryType * entry_ptr )

◆ clear()

void Halide::Runtime::Internal::LinkedList::clear ( void * user_context)

Definition at line 203 of file linked_list.h.

References empty(), Halide::Runtime::Internal::LinkedList::EntryType::prev_ptr, and user_context.

Referenced by destroy().

◆ destroy()

void Halide::Runtime::Internal::LinkedList::destroy ( void * user_context)

◆ size()

size_t Halide::Runtime::Internal::LinkedList::size ( ) const

◆ empty()

bool Halide::Runtime::Internal::LinkedList::empty ( ) const

Definition at line 299 of file linked_list.h.

Referenced by append(), clear(), and prepend().

◆ current_allocator()

const SystemMemoryAllocatorFns & Halide::Runtime::Internal::LinkedList::current_allocator ( ) const

◆ default_allocator()

const SystemMemoryAllocatorFns & Halide::Runtime::Internal::LinkedList::default_allocator ( )
static

Member Data Documentation

◆ default_capacity

uint32_t Halide::Runtime::Internal::LinkedList::default_capacity = uint32_t(32)
staticconstexpr

Definition at line 20 of file linked_list.h.


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