![]() |
libzmq
master
ZeroMQ C++ Core Engine (LIBZMQ)
|
#include <trie.hpp>
Public Member Functions | |
trie_t () | |
~trie_t () | |
bool | add (unsigned char *prefix_, size_t size_) |
void | apply (void(*func_)(unsigned char *data_, size_t size_, void *arg_), void *arg_) |
bool | check (unsigned char *data_, size_t size_) |
bool | rm (unsigned char *prefix_, size_t size_) |
Private Member Functions | |
trie_t (const trie_t &) | |
void | apply_helper (unsigned char **buff_, size_t buffsize_, size_t maxbuffsize_, void(*func_)(unsigned char *data_, size_t size_, void *arg_), void *arg_) |
bool | is_redundant () const |
const trie_t & | operator= (const trie_t &) |
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 |
zmq::trie_t::~trie_t | ( | ) |
Definition at line 53 of file trie.cpp.
References count, LIBZMQ_DELETE, next, and zmq_assert.
|
private |
bool zmq::trie_t::add | ( | unsigned char * | prefix_, |
size_t | size_ | ||
) |
Definition at line 67 of file trie.cpp.
References alloc_assert, count, live_nodes, min, next, refcnt, and zmq_assert.
Referenced by zmq::xsub_t::xsend().
void zmq::trie_t::apply | ( | void(*)(unsigned char *data_, size_t size_, void *arg_) | func_, |
void * | arg_ | ||
) |
Definition at line 298 of file trie.cpp.
References apply_helper().
Referenced by zmq::xsub_t::xattach_pipe(), and zmq::xsub_t::xhiccuped().
|
private |
bool zmq::trie_t::check | ( | unsigned char * | data_, |
size_t | size_ | ||
) |
|
private |
Definition at line 342 of file trie.cpp.
References live_nodes, and refcnt.
Referenced by rm().
bool zmq::trie_t::rm | ( | unsigned char * | prefix_, |
size_t | size_ | ||
) |
Definition at line 146 of file trie.cpp.
References alloc_assert, count, is_redundant(), LIBZMQ_DELETE, live_nodes, min, next, node, refcnt, rm(), and zmq_assert.
Referenced by rm(), and zmq::xsub_t::xsend().
|
private |
|
private |
Definition at line 73 of file trie.hpp.
Referenced by add(), is_redundant(), and rm().
|
private |
union { ... } zmq::trie_t::next |
Referenced by add(), apply_helper(), check(), rm(), and ~trie_t().
class trie_t* zmq::trie_t::node |
|
private |
Definition at line 70 of file trie.hpp.
Referenced by add(), apply_helper(), check(), is_redundant(), and rm().