hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cf_ll.h File Reference
#include <pthread.h>
#include <stdint.h>
#include "citrusleaf/cf_base_types.h"
Include dependency graph for cf_ll.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cf_ll_element_s
struct  cf_ll_s

Macros

#define CF_LL_REDUCE_DELETE   (1)
#define CF_LL_REDUCE_INSERT   (2)

Typedefs

typedef int(* cf_ll_reduce_fn )(struct cf_ll_element_s *e, void *udata)
typedef void(* cf_ll_destructor )(struct cf_ll_element_s *e)
typedef struct cf_ll_element_s cf_ll_element
typedef struct cf_ll_s cf_ll

Functions

void cf_ll_prepend (cf_ll *ll, cf_ll_element *e)
void cf_ll_append (cf_ll *ll, cf_ll_element *e)
void cf_ll_insert_after (cf_ll *ll, cf_ll_element *cur, cf_ll_element *ins)
void cf_ll_insert_before (cf_ll *ll, cf_ll_element *cur, cf_ll_element *ins)
void cf_ll_delete (cf_ll *ll, cf_ll_element *e)
uint32_t cf_ll_size (cf_ll *ll)
int cf_ll_reduce (cf_ll *ll, bool forward, cf_ll_reduce_fn fn, void *udata)
int cf_ll_insert_reduce (cf_ll *ll, cf_ll_element *e, bool forward, cf_ll_reduce_fn fn, void *udata)
int cf_ll_init (cf_ll *ll, cf_ll_destructor destroy_fn, bool uselock)

Macro Definition Documentation

#define CF_LL_REDUCE_DELETE   (1)

Definition at line 37 of file cf_ll.h.

#define CF_LL_REDUCE_INSERT   (2)

Definition at line 38 of file cf_ll.h.

Typedef Documentation

typedef struct cf_ll_s cf_ll
typedef void(* cf_ll_destructor)(struct cf_ll_element_s *e)

Definition at line 42 of file cf_ll.h.

typedef int(* cf_ll_reduce_fn)(struct cf_ll_element_s *e, void *udata)

Definition at line 41 of file cf_ll.h.

Function Documentation

void cf_ll_append ( cf_ll ll,
cf_ll_element e 
)
void cf_ll_delete ( cf_ll ll,
cf_ll_element e 
)
int cf_ll_init ( cf_ll ll,
cf_ll_destructor  destroy_fn,
bool  uselock 
)
void cf_ll_insert_after ( cf_ll ll,
cf_ll_element cur,
cf_ll_element ins 
)
void cf_ll_insert_before ( cf_ll ll,
cf_ll_element cur,
cf_ll_element ins 
)
int cf_ll_insert_reduce ( cf_ll ll,
cf_ll_element e,
bool  forward,
cf_ll_reduce_fn  fn,
void *  udata 
)
void cf_ll_prepend ( cf_ll ll,
cf_ll_element e 
)
int cf_ll_reduce ( cf_ll ll,
bool  forward,
cf_ll_reduce_fn  fn,
void *  udata 
)
uint32_t cf_ll_size ( cf_ll ll)