Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Funciones
Referencia del Archivo src/libpq/include/nodes/pg_list.h
#include "nodes/nodes.h"

Ir al código fuente de este archivo.

Clases

struct  List
struct  ListCell

'defines'

#define NIL   ((List *) NULL)
#define lnext(lc)   ((lc)->next)
#define lfirst(lc)   ((lc)->data.ptr_value)
#define lfirst_int(lc)   ((lc)->data.int_value)
#define lfirst_oid(lc)   ((lc)->data.oid_value)
#define linitial(l)   lfirst(list_head(l))
#define linitial_int(l)   lfirst_int(list_head(l))
#define linitial_oid(l)   lfirst_oid(list_head(l))
#define lsecond(l)   lfirst(lnext(list_head(l)))
#define lsecond_int(l)   lfirst_int(lnext(list_head(l)))
#define lsecond_oid(l)   lfirst_oid(lnext(list_head(l)))
#define lthird(l)   lfirst(lnext(lnext(list_head(l))))
#define lthird_int(l)   lfirst_int(lnext(lnext(list_head(l))))
#define lthird_oid(l)   lfirst_oid(lnext(lnext(list_head(l))))
#define lfourth(l)   lfirst(lnext(lnext(lnext(list_head(l)))))
#define lfourth_int(l)   lfirst_int(lnext(lnext(lnext(list_head(l)))))
#define lfourth_oid(l)   lfirst_oid(lnext(lnext(lnext(list_head(l)))))
#define llast(l)   lfirst(list_tail(l))
#define llast_int(l)   lfirst_int(list_tail(l))
#define llast_oid(l)   lfirst_oid(list_tail(l))
#define list_make1(x1)   lcons(x1, NIL)
#define list_make2(x1, x2)   lcons(x1, list_make1(x2))
#define list_make3(x1, x2, x3)   lcons(x1, list_make2(x2, x3))
#define list_make4(x1, x2, x3, x4)   lcons(x1, list_make3(x2, x3, x4))
#define list_make1_int(x1)   lcons_int(x1, NIL)
#define list_make2_int(x1, x2)   lcons_int(x1, list_make1_int(x2))
#define list_make3_int(x1, x2, x3)   lcons_int(x1, list_make2_int(x2, x3))
#define list_make4_int(x1, x2, x3, x4)   lcons_int(x1, list_make3_int(x2, x3, x4))
#define list_make1_oid(x1)   lcons_oid(x1, NIL)
#define list_make2_oid(x1, x2)   lcons_oid(x1, list_make1_oid(x2))
#define list_make3_oid(x1, x2, x3)   lcons_oid(x1, list_make2_oid(x2, x3))
#define list_make4_oid(x1, x2, x3, x4)   lcons_oid(x1, list_make3_oid(x2, x3, x4))
#define foreach(cell, l)   for ((cell) = list_head(l); (cell) != NULL; (cell) = lnext(cell))
#define for_each_cell(cell, initcell)   for ((cell) = (initcell); (cell) != NULL; (cell) = lnext(cell))
#define forboth(cell1, list1, cell2, list2)

'typedefs'

typedef struct ListCell ListCell
typedef struct List List

Funciones

ListCelllist_head (List *l)
ListCelllist_tail (List *l)
int list_length (List *l)
Listlappend (List *list, void *datum)
Listlappend_int (List *list, int datum)
Listlappend_oid (List *list, Oid datum)
ListCelllappend_cell (List *list, ListCell *prev, void *datum)
ListCelllappend_cell_int (List *list, ListCell *prev, int datum)
ListCelllappend_cell_oid (List *list, ListCell *prev, Oid datum)
Listlcons (void *datum, List *list)
Listlcons_int (int datum, List *list)
Listlcons_oid (Oid datum, List *list)
Listlist_concat (List *list1, List *list2)
Listlist_truncate (List *list, int new_size)
void * list_nth (List *list, int n)
int list_nth_int (List *list, int n)
Oid list_nth_oid (List *list, int n)
bool list_member (List *list, void *datum)
bool list_member_ptr (List *list, void *datum)
bool list_member_int (List *list, int datum)
bool list_member_oid (List *list, Oid datum)
Listlist_delete (List *list, void *datum)
Listlist_delete_ptr (List *list, void *datum)
Listlist_delete_int (List *list, int datum)
Listlist_delete_oid (List *list, Oid datum)
Listlist_delete_first (List *list)
Listlist_delete_cell (List *list, ListCell *cell, ListCell *prev)
Listlist_union (List *list1, List *list2)
Listlist_union_ptr (List *list1, List *list2)
Listlist_union_int (List *list1, List *list2)
Listlist_union_oid (List *list1, List *list2)
Listlist_difference (List *list1, List *list2)
Listlist_difference_ptr (List *list1, List *list2)
Listlist_difference_int (List *list1, List *list2)
Listlist_difference_oid (List *list1, List *list2)
Listlist_append_unique (List *list, void *datum)
Listlist_append_unique_ptr (List *list, void *datum)
Listlist_append_unique_int (List *list, int datum)
Listlist_append_unique_oid (List *list, Oid datum)
Listlist_concat_unique (List *list1, List *list2)
Listlist_concat_unique_ptr (List *list1, List *list2)
Listlist_concat_unique_int (List *list1, List *list2)
Listlist_concat_unique_oid (List *list1, List *list2)
void list_free (List *list)
void list_free_deep (List *list)
Listlist_copy (List *list)
Listlist_copy_tail (List *list, int nskip)

Documentación de los 'defines'

#define for_each_cell (   cell,
  initcell 
)    for ((cell) = (initcell); (cell) != NULL; (cell) = lnext(cell))
#define forboth (   cell1,
  list1,
  cell2,
  list2 
)
Valor:
for ((cell1) = list_head(list1), (cell2) = list_head(list2);    \
                 (cell1) != NULL && (cell2) != NULL;                                            \
                 (cell1) = lnext(cell1), (cell2) = lnext(cell2))
#define foreach (   cell,
 
)    for ((cell) = list_head(l); (cell) != NULL; (cell) = lnext(cell))
#define lfirst (   lc)    ((lc)->data.ptr_value)
#define lfirst_int (   lc)    ((lc)->data.int_value)
#define lfirst_oid (   lc)    ((lc)->data.oid_value)
#define lfourth (   l)    lfirst(lnext(lnext(lnext(list_head(l)))))
#define lfourth_int (   l)    lfirst_int(lnext(lnext(lnext(list_head(l)))))
#define lfourth_oid (   l)    lfirst_oid(lnext(lnext(lnext(list_head(l)))))
#define linitial (   l)    lfirst(list_head(l))
#define linitial_int (   l)    lfirst_int(list_head(l))
#define linitial_oid (   l)    lfirst_oid(list_head(l))
#define list_make1 (   x1)    lcons(x1, NIL)
#define list_make1_int (   x1)    lcons_int(x1, NIL)
#define list_make1_oid (   x1)    lcons_oid(x1, NIL)
#define list_make2 (   x1,
  x2 
)    lcons(x1, list_make1(x2))
#define list_make2_int (   x1,
  x2 
)    lcons_int(x1, list_make1_int(x2))
#define list_make2_oid (   x1,
  x2 
)    lcons_oid(x1, list_make1_oid(x2))
#define list_make3 (   x1,
  x2,
  x3 
)    lcons(x1, list_make2(x2, x3))
#define list_make3_int (   x1,
  x2,
  x3 
)    lcons_int(x1, list_make2_int(x2, x3))
#define list_make3_oid (   x1,
  x2,
  x3 
)    lcons_oid(x1, list_make2_oid(x2, x3))
#define list_make4 (   x1,
  x2,
  x3,
  x4 
)    lcons(x1, list_make3(x2, x3, x4))
#define list_make4_int (   x1,
  x2,
  x3,
  x4 
)    lcons_int(x1, list_make3_int(x2, x3, x4))
#define list_make4_oid (   x1,
  x2,
  x3,
  x4 
)    lcons_oid(x1, list_make3_oid(x2, x3, x4))
#define llast (   l)    lfirst(list_tail(l))
#define llast_int (   l)    lfirst_int(list_tail(l))
#define llast_oid (   l)    lfirst_oid(list_tail(l))
#define lnext (   lc)    ((lc)->next)
#define lsecond (   l)    lfirst(lnext(list_head(l)))
#define lsecond_int (   l)    lfirst_int(lnext(list_head(l)))
#define lsecond_oid (   l)    lfirst_oid(lnext(list_head(l)))
#define lthird (   l)    lfirst(lnext(lnext(list_head(l))))
#define lthird_int (   l)    lfirst_int(lnext(lnext(list_head(l))))
#define lthird_oid (   l)    lfirst_oid(lnext(lnext(list_head(l))))
#define NIL   ((List *) NULL)

Documentación de los 'typedefs'

typedef struct List List
typedef struct ListCell ListCell

Documentación de las funciones

List* lappend ( List list,
void *  datum 
)
ListCell* lappend_cell ( List list,
ListCell prev,
void *  datum 
)
ListCell* lappend_cell_int ( List list,
ListCell prev,
int  datum 
)
ListCell* lappend_cell_oid ( List list,
ListCell prev,
Oid  datum 
)
List* lappend_int ( List list,
int  datum 
)
List* lappend_oid ( List list,
Oid  datum 
)
List* lcons ( void *  datum,
List list 
)
List* lcons_int ( int  datum,
List list 
)
List* lcons_oid ( Oid  datum,
List list 
)
List* list_append_unique ( List list,
void *  datum 
)
List* list_append_unique_int ( List list,
int  datum 
)
List* list_append_unique_oid ( List list,
Oid  datum 
)
List* list_append_unique_ptr ( List list,
void *  datum 
)
List* list_concat ( List list1,
List list2 
)
List* list_concat_unique ( List list1,
List list2 
)
List* list_concat_unique_int ( List list1,
List list2 
)
List* list_concat_unique_oid ( List list1,
List list2 
)
List* list_concat_unique_ptr ( List list1,
List list2 
)
List* list_copy ( List list)
List* list_copy_tail ( List list,
int  nskip 
)
List* list_delete ( List list,
void *  datum 
)
List* list_delete_cell ( List list,
ListCell cell,
ListCell prev 
)
List* list_delete_first ( List list)
List* list_delete_int ( List list,
int  datum 
)
List* list_delete_oid ( List list,
Oid  datum 
)
List* list_delete_ptr ( List list,
void *  datum 
)
List* list_difference ( List list1,
List list2 
)
List* list_difference_int ( List list1,
List list2 
)
List* list_difference_oid ( List list1,
List list2 
)
List* list_difference_ptr ( List list1,
List list2 
)
void list_free ( List list)
void list_free_deep ( List list)
ListCell* list_head ( List l)
int list_length ( List l)
bool list_member ( List list,
void *  datum 
)
bool list_member_int ( List list,
int  datum 
)
bool list_member_oid ( List list,
Oid  datum 
)
bool list_member_ptr ( List list,
void *  datum 
)
void* list_nth ( List list,
int  n 
)
int list_nth_int ( List list,
int  n 
)
Oid list_nth_oid ( List list,
int  n 
)
ListCell* list_tail ( List l)
List* list_truncate ( List list,
int  new_size 
)
List* list_union ( List list1,
List list2 
)
List* list_union_int ( List list1,
List list2 
)
List* list_union_oid ( List list1,
List list2 
)
List* list_union_ptr ( List list1,
List list2 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'