2018-07-23 04:59:16 +00:00
|
|
|
#ifndef LIST_EXPAND_H
|
2018-08-03 10:32:20 +00:00
|
|
|
#define LIST_EXPAND_H
|
|
|
|
|
2018-08-03 03:38:19 +00:00
|
|
|
#include "list.h"
|
2018-07-23 04:59:16 +00:00
|
|
|
|
2018-08-03 03:38:19 +00:00
|
|
|
Node *nodeWithInt(int);
|
|
|
|
Node *nodeWithDouble(double);
|
|
|
|
Node *nodeWithString(const char *);
|
|
|
|
Node *nodeWithPointer(void *);
|
2018-07-23 04:59:16 +00:00
|
|
|
|
2018-08-03 03:38:19 +00:00
|
|
|
Node *nodeWithComplex(void);
|
|
|
|
int addValueForComplex(Node *, int type, void *value);
|
|
|
|
int addIntForComplex(Node *, int);
|
|
|
|
int addDoubleForComplex(Node *, double);
|
|
|
|
int addStringForComplex(Node *, char *);
|
|
|
|
int addPointerForComplex(Node *, void *);
|
2018-07-23 04:59:16 +00:00
|
|
|
|
2018-08-03 03:38:19 +00:00
|
|
|
Node *findByIndexForNode(List *, unsigned long long);
|
|
|
|
Node *findByIntForNode(List *, int);
|
|
|
|
Node *findByDoubleForNode(List *, double);
|
|
|
|
Node *findByStringForNode(List *, char *);
|
|
|
|
Node *findByPointerForNode(List *, void *);
|
2018-07-23 04:59:16 +00:00
|
|
|
|
2018-08-03 03:38:19 +00:00
|
|
|
List *m_findByIntForNode(List*, int);
|
|
|
|
List *m_findByDoubleForNode(List*, double);
|
|
|
|
List *m_findByStringForNode(List*, char *);
|
|
|
|
List *m_findByPointerForNode(List*, void *);
|
2018-07-23 04:59:16 +00:00
|
|
|
|
2018-08-03 03:38:19 +00:00
|
|
|
void printListInfo(List *p_list,int priority);
|
|
|
|
void printNodeInfo(Node *p_node,int priority);
|
|
|
|
void printList(List *);
|
|
|
|
void printNode(Node *p_node);
|
2018-07-23 04:59:16 +00:00
|
|
|
|
2018-08-03 03:38:19 +00:00
|
|
|
int getByIntForNode(Node *);
|
|
|
|
double getByDoubleForNode(Node *);
|
|
|
|
char *getByStringForNode(Node *);
|
|
|
|
void *getByPointerForNode(Node *);
|
2018-07-23 04:59:16 +00:00
|
|
|
unsigned long long getIndexByNode(List *p_list,Node *p_node);
|
2018-08-03 03:38:19 +00:00
|
|
|
int listThrough(List *p_list, int (*p_func)(unsigned int type, void *value));
|
2018-07-23 05:47:31 +00:00
|
|
|
unsigned long long calListMemory(List *);
|
2018-07-23 04:59:16 +00:00
|
|
|
|
|
|
|
#endif
|