Electroneum
addrtree Struct Reference

#include <addrtree.h>

Collaboration diagram for addrtree:

Public Attributes

struct addrnoderoot
 
unsigned int node_count
 
unsigned int max_node_count
 
size_t size_bytes
 
addrlen_t max_depth
 
void(* delfunc )(void *, void *)
 
void * env
 
size_t(* sizefunc )(void *)
 
struct addrnodefirst
 
struct addrnodelast
 

Detailed Description

Definition at line 65 of file addrtree.h.

Member Data Documentation

◆ delfunc

void(* addrtree::delfunc) (void *, void *)

External function to delete elem. Called as delfunc(addrnode->elem, addrtree->env)

Definition at line 79 of file addrtree.h.

◆ env

void* addrtree::env

Environment for delfunc

Definition at line 81 of file addrtree.h.

◆ first

struct addrnode* addrtree::first

first node in LRU list, first candidate to go

Definition at line 86 of file addrtree.h.

◆ last

struct addrnode* addrtree::last

last node in LRU list, last candidate to go

Definition at line 88 of file addrtree.h.

◆ max_depth

addrlen_t addrtree::max_depth

Maximum prefix length we are willing to cache.

Definition at line 76 of file addrtree.h.

◆ max_node_count

unsigned int addrtree::max_node_count

Maximum number of allowed nodes, will be enforced by LRU list. Excluding the root node, 0 for unlimited

Definition at line 72 of file addrtree.h.

◆ node_count

unsigned int addrtree::node_count

Number of elements in the tree (not always equal to number of nodes)

Definition at line 69 of file addrtree.h.

◆ root

struct addrnode* addrtree::root

Definition at line 66 of file addrtree.h.

◆ size_bytes

size_t addrtree::size_bytes

Size of tree in bytes

Definition at line 74 of file addrtree.h.

◆ sizefunc

size_t(* addrtree::sizefunc) (void *)

External function returning size of elem. Called as sizefunc(addrnode->elem)

Definition at line 84 of file addrtree.h.


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