Public Member Functions | Private Member Functions | Private Attributes | List of all members
zmq::trie_t Class Reference

#include <trie.hpp>

Public Member Functions

bool add (unsigned char *prefix_, size_t size_)
 
void apply (void(*func_)(unsigned char *data_, size_t size_, void *arg_), void *arg_)
 
bool check (const unsigned char *data_, size_t size_) const
 
bool rm (unsigned char *prefix_, size_t size_)
 
 trie_t ()
 
 ~trie_t ()
 

Private Member Functions

void apply_helper (unsigned char **buff_, size_t buffsize_, size_t maxbuffsize_, void(*func_)(unsigned char *data_, size_t size_, void *arg_), void *arg_) const
 
bool is_redundant () const
 

Private Attributes

unsigned short _count
 
unsigned short _live_nodes
 
unsigned char _min
 
union {
   class trie_t *   node
 
   class trie_t **   table
 
_next
 
uint32_t _refcnt
 

Detailed Description

Definition at line 14 of file trie.hpp.

Constructor & Destructor Documentation

◆ trie_t()

zmq::trie_t::trie_t ( )

Definition at line 13 of file trie.cpp.

◆ ~trie_t()

zmq::trie_t::~trie_t ( )

Definition at line 17 of file trie.cpp.

Member Function Documentation

◆ add()

bool zmq::trie_t::add ( unsigned char *  prefix_,
size_t  size_ 
)

Definition at line 30 of file trie.cpp.

◆ apply()

void zmq::trie_t::apply ( void(*)(unsigned char *data_, size_t size_, void *arg_)  func_,
void arg_ 
)

Definition at line 245 of file trie.cpp.

◆ apply_helper()

void zmq::trie_t::apply_helper ( unsigned char **  buff_,
size_t  buffsize_,
size_t  maxbuffsize_,
void(*)(unsigned char *data_, size_t size_, void *arg_)  func_,
void arg_ 
) const
private

Definition at line 253 of file trie.cpp.

◆ check()

bool zmq::trie_t::check ( const unsigned char *  data_,
size_t  size_ 
) const

Definition at line 212 of file trie.cpp.

◆ is_redundant()

bool zmq::trie_t::is_redundant ( ) const
private

Definition at line 293 of file trie.cpp.

◆ rm()

bool zmq::trie_t::rm ( unsigned char *  prefix_,
size_t  size_ 
)

Definition at line 100 of file trie.cpp.

Member Data Documentation

◆ _count

unsigned short zmq::trie_t::_count
private

Definition at line 47 of file trie.hpp.

◆ _live_nodes

unsigned short zmq::trie_t::_live_nodes
private

Definition at line 48 of file trie.hpp.

◆ _min

unsigned char zmq::trie_t::_min
private

Definition at line 46 of file trie.hpp.

◆ _next

union { ... } zmq::trie_t::_next

◆ _refcnt

uint32_t zmq::trie_t::_refcnt
private

Definition at line 45 of file trie.hpp.

◆ node

class trie_t* zmq::trie_t::node

Definition at line 51 of file trie.hpp.

◆ table

class trie_t** zmq::trie_t::table

Definition at line 52 of file trie.hpp.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:11