libzmq master
The Intelligent Transport Layer
Public Member Functions | Private Member Functions | Private Attributes

zmq::trie_t Class Reference

#include <trie.hpp>

Collaboration diagram for zmq::trie_t:

List of all members.

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_)
const trie_toperator= (const trie_t &)

Private Attributes

unsigned short count
unsigned char min
union {
   class trie_t *   node
   class trie_t **   table
next
uint32_t refcnt

Detailed Description

Definition at line 32 of file trie.hpp.


Constructor & Destructor Documentation

zmq::trie_t::trie_t ( )

Definition at line 35 of file trie.cpp.

zmq::trie_t::~trie_t ( )

Definition at line 42 of file trie.cpp.

zmq::trie_t::trie_t ( const trie_t ) [private]

Member Function Documentation

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

Definition at line 54 of file trie.cpp.

References node, table, and zmq_assert.

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

Definition at line 186 of file trie.cpp.

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_ 
) [private]

Definition at line 194 of file trie.cpp.

References zmq_assert.

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

Definition at line 152 of file trie.cpp.

References count, min, next, node, refcnt, and table.

const trie_t& zmq::trie_t::operator= ( const trie_t ) [private]
bool zmq::trie_t::rm ( unsigned char *  prefix_,
size_t  size_ 
)

Definition at line 128 of file trie.cpp.

References node, rm(), and table.

Referenced by rm().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

unsigned short zmq::trie_t::count [private]

Definition at line 63 of file trie.hpp.

Referenced by check().

unsigned char zmq::trie_t::min [private]

Definition at line 62 of file trie.hpp.

Referenced by check().

union { ... } zmq::trie_t::next [private]

Referenced by check().

Definition at line 65 of file trie.hpp.

Referenced by add(), check(), and rm().

uint32_t zmq::trie_t::refcnt [private]

Definition at line 61 of file trie.hpp.

Referenced by check().

Definition at line 66 of file trie.hpp.

Referenced by add(), check(), and rm().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines