📄 _gdsl_node.3
字号:
.TH "Low-level doubly-linked node manipulation module" 3 "22 Jun 2006" "Version 1.4" "gdsl" \" -*- nroff -*-.ad l.nh.SH NAMELow-level doubly-linked node manipulation module \- .PP.SS "Typedefs".in +1c.ti -1c.RI "typedef _gdsl_node * \fB_gdsl_node_t\fP".br.RI "\fIGDSL low-level doubly linked node type. \fP".ti -1c.RI "typedef int(* \fB_gdsl_node_map_func_t\fP )(const \fB_gdsl_node_t\fP NODE, void *USER_DATA)".br.RI "\fIGDSL low-level doubly-linked node map function type. \fP".ti -1c.RI "typedef void(* \fB_gdsl_node_write_func_t\fP )(const \fB_gdsl_node_t\fP NODE, FILE *OUTPUT_FILE, void *USER_DATA)".br.RI "\fIGDSL low-level doubly-linked node write function type. \fP".in -1c.SS "Functions".in +1c.ti -1c.RI "\fB_gdsl_node_t\fP \fB_gdsl_node_alloc\fP (void)".br.RI "\fICreate a new low-level node. \fP".ti -1c.RI "\fBgdsl_element_t\fP \fB_gdsl_node_free\fP (\fB_gdsl_node_t\fP NODE)".br.RI "\fIDestroy a low-level node. \fP".ti -1c.RI "\fB_gdsl_node_t\fP \fB_gdsl_node_get_succ\fP (const \fB_gdsl_node_t\fP NODE)".br.RI "\fIGet the successor of a low-level node. \fP".ti -1c.RI "\fB_gdsl_node_t\fP \fB_gdsl_node_get_pred\fP (const \fB_gdsl_node_t\fP NODE)".br.RI "\fIGet the predecessor of a low-level node. \fP".ti -1c.RI "\fBgdsl_element_t\fP \fB_gdsl_node_get_content\fP (const \fB_gdsl_node_t\fP NODE)".br.RI "\fIGet the content of a low-level node. \fP".ti -1c.RI "void \fB_gdsl_node_set_succ\fP (\fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_t\fP SUCC)".br.RI "\fISet the successor of a low-level node. \fP".ti -1c.RI "void \fB_gdsl_node_set_pred\fP (\fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_t\fP PRED)".br.RI "\fISet the predecessor of a low-level node. \fP".ti -1c.RI "void \fB_gdsl_node_set_content\fP (\fB_gdsl_node_t\fP NODE, const \fBgdsl_element_t\fP CONTENT)".br.RI "\fISet the content of a low-level node. \fP".ti -1c.RI "void \fB_gdsl_node_link\fP (\fB_gdsl_node_t\fP NODE1, \fB_gdsl_node_t\fP NODE2)".br.RI "\fILink two low-level nodes together. \fP".ti -1c.RI "void \fB_gdsl_node_unlink\fP (\fB_gdsl_node_t\fP NODE1, \fB_gdsl_node_t\fP NODE2)".br.RI "\fIUnlink two low-level nodes. \fP".ti -1c.RI "void \fB_gdsl_node_write\fP (const \fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_write_func_t\fP WRITE_F, FILE *OUTPUT_FILE, void *USER_DATA)".br.RI "\fIWrite a low-level node to a file. \fP".ti -1c.RI "void \fB_gdsl_node_write_xml\fP (const \fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_write_func_t\fP WRITE_F, FILE *OUTPUT_FILE, void *USER_DATA)".br.RI "\fIWrite a low-level node to a file into XML. \fP".ti -1c.RI "void \fB_gdsl_node_dump\fP (const \fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_write_func_t\fP WRITE_F, FILE *OUTPUT_FILE, void *USER_DATA)".br.RI "\fIDump the internal structure of a low-level node to a file. \fP".in -1c.SH "Typedef Documentation".PP .SS "typedef struct _gdsl_node* \fB_gdsl_node_t\fP".PPGDSL low-level doubly linked node type. .PPThis type is voluntary opaque. Variables of this kind could'nt be directly used, but by the functions of this module. .PPDefinition at line 53 of file _gdsl_node.h..SS "typedef int(* \fB_gdsl_node_map_func_t\fP)(const \fB_gdsl_node_t\fP NODE, void *USER_DATA)".PPGDSL low-level doubly-linked node map function type. .PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node to map. .br\fIUSER_DATA\fP The user datas to pass to this function. .RE.PP\fBReturns:\fP.RS 4GDSL_MAP_STOP if the mapping must be stopped. .PPGDSL_MAP_CONT if the mapping must be continued. .RE.PP.PPDefinition at line 62 of file _gdsl_node.h..SS "typedef void(* \fB_gdsl_node_write_func_t\fP)(const \fB_gdsl_node_t\fP NODE, FILE *OUTPUT_FILE, void *USER_DATA)".PPGDSL low-level doubly-linked node write function type. .PP\fBParameters:\fP.RS 4\fITREE\fP The low-level doubly-linked node to write. .br\fIOUTPUT_FILE\fP The file where to write NODE. .br\fIUSER_DATA\fP The user datas to pass to this function. .RE.PP.PPDefinition at line 72 of file _gdsl_node.h..SH "Function Documentation".PP .SS "\fB_gdsl_node_t\fP _gdsl_node_alloc (void)".PPCreate a new low-level node. .PPAllocate a new low-level node data structure..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4nothing. .RE.PP\fBReturns:\fP.RS 4the newly allocated low-level node in case of success. .PPNULL in case of insufficient memory. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_free()\fP .RE.PP.SS "\fBgdsl_element_t\fP _gdsl_node_free (\fB_gdsl_node_t\fP NODE)".PPDestroy a low-level node. .PPDeallocate the low-level node NODE..PP\fBNote:\fP.RS 4O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL .RE.PP\fBReturns:\fP.RS 4the content of NODE (without modification). .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_alloc()\fP .RE.PP.SS "\fB_gdsl_node_t\fP _gdsl_node_get_succ (const \fB_gdsl_node_t\fP NODE)".PPGet the successor of a low-level node. .PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node which we want to get the successor from. .RE.PP\fBReturns:\fP.RS 4the sucessor of the low-level node NODE if NODE has a successor. .PPNULL if the low-level node NODE has no successor. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_get_pred()\fP .PP\fB_gdsl_node_set_succ()\fP .PP\fB_gdsl_node_set_pred()\fP .RE.PP.SS "\fB_gdsl_node_t\fP _gdsl_node_get_pred (const \fB_gdsl_node_t\fP NODE)".PPGet the predecessor of a low-level node. .PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node which we want to get the predecessor from. .RE.PP\fBReturns:\fP.RS 4the predecessor of the low-level node NODE if NODE has a predecessor. .PPNULL if the low-level node NODE has no predecessor. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_get_succ()\fP .PP\fB_gdsl_node_set_succ()\fP .PP\fB_gdsl_node_set_pred()\fP .RE.PP.SS "\fBgdsl_element_t\fP _gdsl_node_get_content (const \fB_gdsl_node_t\fP NODE)".PPGet the content of a low-level node. .PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node which we want to get the content from. .RE.PP\fBReturns:\fP.RS 4the content of the low-level node NODE if NODE has a content. .PPNULL if the low-level node NODE has no content. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_set_content()\fP .RE.PP.SS "void _gdsl_node_set_succ (\fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_t\fP SUCC)".PPSet the successor of a low-level node. .PPModifie the sucessor of the low-level node NODE to SUCC..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node which want to change the successor from. .br\fISUCC\fP The new successor of NODE. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_get_succ()\fP .RE.PP.SS "void _gdsl_node_set_pred (\fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_t\fP PRED)".PPSet the predecessor of a low-level node. .PPModifie the predecessor of the low-level node NODE to PRED..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node which want to change the predecessor from. .br\fIPRED\fP The new predecessor of NODE. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_get_pred()\fP .RE.PP.SS "void _gdsl_node_set_content (\fB_gdsl_node_t\fP NODE, const \fBgdsl_element_t\fP CONTENT)".PPSet the content of a low-level node. .PPModifie the content of the low-level node NODE to CONTENT..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node which want to change the content from. .br\fICONTENT\fP The new content of NODE. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_get_content()\fP .RE.PP.SS "void _gdsl_node_link (\fB_gdsl_node_t\fP NODE1, \fB_gdsl_node_t\fP NODE2)".PPLink two low-level nodes together. .PPLink the two low-level nodes NODE1 and NODE2 together. After the link, NODE1's successor is NODE2 and NODE2's predecessor is NODE1..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE1 != NULL & NODE2 != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE1\fP The first low-level node to link to NODE2. .br\fINODE2\fP The second low-level node to link from NODE1. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_unlink()\fP .RE.PP.SS "void _gdsl_node_unlink (\fB_gdsl_node_t\fP NODE1, \fB_gdsl_node_t\fP NODE2)".PPUnlink two low-level nodes. .PPUnlink the two low-level nodes NODE1 and NODE2. After the unlink, NODE1's successor is NULL and NODE2's predecessor is NULL..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE1 != NULL & NODE2 != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE1\fP The first low-level node to unlink from NODE2. .br\fINODE2\fP The second low-level node to unlink from NODE1. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_link()\fP .RE.PP.SS "void _gdsl_node_write (const \fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_write_func_t\fP WRITE_F, FILE * OUTPUT_FILE, void * USER_DATA)".PPWrite a low-level node to a file. .PPWrite the low-level node NODE to OUTPUT_FILE, using WRITE_F function. Additionnal USER_DATA argument could be passed to WRITE_F..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL & WRITE_F != NULL & OUTPUT_FILE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node to write. .br\fIWRITE_F\fP The write function. .br\fIOUTPUT_FILE\fP The file where to write NODE. .br\fIUSER_DATA\fP User's datas passed to WRITE_F. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_write_xml()\fP .PP\fB_gdsl_node_dump()\fP .RE.PP.SS "void _gdsl_node_write_xml (const \fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_write_func_t\fP WRITE_F, FILE * OUTPUT_FILE, void * USER_DATA)".PPWrite a low-level node to a file into XML. .PPWrite the low-level node NODE to OUTPUT_FILE, into XML language. If WRITE_F != NULL, then uses WRITE_F function to write NODE to OUTPUT_FILE. Additionnal USER_DATA argument could be passed to WRITE_F..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL & OUTPUT_FILE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node to write. .br\fIWRITE_F\fP The write function. .br\fIOUTPUT_FILE\fP The file where to write NODE. .br\fIUSER_DATA\fP User's datas passed to WRITE_F. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_write()\fP .PP\fB_gdsl_node_dump()\fP .RE.PP.SS "void _gdsl_node_dump (const \fB_gdsl_node_t\fP NODE, const \fB_gdsl_node_write_func_t\fP WRITE_F, FILE * OUTPUT_FILE, void * USER_DATA)".PPDump the internal structure of a low-level node to a file. .PPDump the structure of the low-level node NODE to OUTPUT_FILE. If WRITE_F != NULL, then uses WRITE_F function to write NODE to OUTPUT_FILE. Additionnal USER_DATA argument could be passed to WRITE_F..PP\fBNote:\fP.RS 4Complexity: O( 1 ) .RE.PP\fBPrecondition:\fP.RS 4NODE != NULL & OUTPUT_FILE != NULL .RE.PP\fBParameters:\fP.RS 4\fINODE\fP The low-level node to dump. .br\fIWRITE_F\fP The write function. .br\fIOUTPUT_FILE\fP The file where to write NODE. .br\fIUSER_DATA\fP User's datas passed to WRITE_F. .RE.PP\fBSee also:\fP.RS 4\fB_gdsl_node_write()\fP .PP\fB_gdsl_node_write_xml()\fP .RE.PP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -