OpenSDN source code
patricia_api.cc File Reference
#include "patricia_map.h"
#include "patricia_api.h"
Include dependency graph for patricia_api.cc:

Go to the source code of this file.

Functions

patroot * patricia_root_init (patroot *root, boolean key_is_ptr, uint16_t klen, uint8_t koffset)
 
void patricia_root_delete (patroot *root)
 
boolean patricia_add (patroot *root, patnode *node)
 
boolean patricia_delete (patroot *root, patnode *node)
 
patnode * patricia_lookup (patroot *root, const void *key)
 
patnode * patricia_lookup_least (patroot *root)
 
patnode * patricia_lookup_greatest (patroot *root)
 
patnode * patricia_get_next (patroot *root, patnode *node)
 
patnode * patricia_get_previous (patroot *root, patnode *node)
 
patnode * patricia_lookup_geq (patroot *root, patnode *node)
 

Function Documentation

◆ patricia_add()

boolean patricia_add ( patroot *  root,
patnode *  node 
)

Definition at line 50 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_delete()

boolean patricia_delete ( patroot *  root,
patnode *  node 
)

Definition at line 67 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_get_next()

patnode* patricia_get_next ( patroot *  root,
patnode *  node 
)

Definition at line 133 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_get_previous()

patnode* patricia_get_previous ( patroot *  root,
patnode *  node 
)

Definition at line 146 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_lookup()

patnode* patricia_lookup ( patroot *  root,
const void *  key 
)

Definition at line 83 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_lookup_geq()

patnode* patricia_lookup_geq ( patroot *  root,
patnode *  node 
)

Definition at line 159 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_lookup_greatest()

patnode* patricia_lookup_greatest ( patroot *  root)

Definition at line 119 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_lookup_least()

patnode* patricia_lookup_least ( patroot *  root)

Definition at line 104 of file patricia_api.cc.

Here is the call graph for this function:

◆ patricia_root_delete()

void patricia_root_delete ( patroot *  root)

Definition at line 36 of file patricia_api.cc.

◆ patricia_root_init()

patroot* patricia_root_init ( patroot *  root,
boolean  key_is_ptr,
uint16_t  klen,
uint8_t  koffset 
)

Definition at line 15 of file patricia_api.cc.