libcss
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
hash.h File Reference
#include <libwapcaplet/libwapcaplet.h>
#include <libcss/unit.h>
#include <libcss/errors.h>
#include <libcss/functypes.h>
#include "select/bloom.h"
#include "select/strings.h"

Go to the source code of this file.

Classes

struct  css_hash_selection_requirments
 

Typedefs

typedef struct css_selector_hash css_selector_hash
 
typedef css_error(* css_selector_hash_iterator) (const struct css_hash_selection_requirments *req, const struct css_selector **current, const struct css_selector ***next)
 

Functions

css_error css__selector_hash_create (css_selector_hash **hash)
 
css_error css__selector_hash_destroy (css_selector_hash *hash)
 
css_error css__selector_hash_insert (css_selector_hash *hash, const struct css_selector *selector)
 
css_error css__selector_hash_remove (css_selector_hash *hash, const struct css_selector *selector)
 
css_error css__selector_hash_find (css_selector_hash *hash, const struct css_hash_selection_requirments *req, css_selector_hash_iterator *iterator, const struct css_selector ***matched)
 
css_error css__selector_hash_find_by_class (css_selector_hash *hash, const struct css_hash_selection_requirments *req, css_selector_hash_iterator *iterator, const struct css_selector ***matched)
 
css_error css__selector_hash_find_by_id (css_selector_hash *hash, const struct css_hash_selection_requirments *req, css_selector_hash_iterator *iterator, const struct css_selector ***matched)
 
css_error css__selector_hash_find_universal (css_selector_hash *hash, const struct css_hash_selection_requirments *req, css_selector_hash_iterator *iterator, const struct css_selector ***matched)
 
css_error css__selector_hash_size (css_selector_hash *hash, size_t *size)
 

Typedef Documentation

◆ css_selector_hash

◆ css_selector_hash_iterator

typedef css_error(* css_selector_hash_iterator) (const struct css_hash_selection_requirments *req, const struct css_selector **current, const struct css_selector ***next)

Function Documentation

◆ css__selector_hash_create()

css_error css__selector_hash_create ( css_selector_hash **  hash)

Create a hash

Parameters
hashPointer to location to receive result
Returns
CSS_OK on success, appropriate error otherwise

◆ css__selector_hash_destroy()

css_error css__selector_hash_destroy ( css_selector_hash hash)

Destroy a hash

Parameters
hashThe hash to destroy
Returns
CSS_OK on success, appropriate error otherwise

◆ css__selector_hash_find()

css_error css__selector_hash_find ( css_selector_hash hash,
const struct css_hash_selection_requirments req,
css_selector_hash_iterator iterator,
const struct css_selector ***  matched 
)

◆ css__selector_hash_find_by_class()

css_error css__selector_hash_find_by_class ( css_selector_hash hash,
const struct css_hash_selection_requirments req,
css_selector_hash_iterator iterator,
const struct css_selector ***  matched 
)

◆ css__selector_hash_find_by_id()

css_error css__selector_hash_find_by_id ( css_selector_hash hash,
const struct css_hash_selection_requirments req,
css_selector_hash_iterator iterator,
const struct css_selector ***  matched 
)

◆ css__selector_hash_find_universal()

css_error css__selector_hash_find_universal ( css_selector_hash hash,
const struct css_hash_selection_requirments req,
css_selector_hash_iterator iterator,
const struct css_selector ***  matched 
)

◆ css__selector_hash_insert()

css_error css__selector_hash_insert ( css_selector_hash hash,
const struct css_selector selector 
)

◆ css__selector_hash_remove()

css_error css__selector_hash_remove ( css_selector_hash hash,
const struct css_selector selector 
)

◆ css__selector_hash_size()

css_error css__selector_hash_size ( css_selector_hash hash,
size_t *  size 
)

Determine the memory-resident size of a hash

Parameters
hashHash to consider
sizePointer to location to receive byte count
Returns
CSS_OK on success.
Note
The returned size will represent the size of the hash datastructures, and will not include the size of the data stored in the hash.