www.pudn.com > ccache.rar > operator.h


/******************************************************************** 
	created:	2008/01/23 
	filename: 	operator.h 
	author:		Lichuang 
                 
	purpose:     
*********************************************************************/ 
 
#ifndef __OPERATOR_H__ 
#define __OPERATOR_H__ 
 
#ifdef USE_LIST 
 
    #include "list.h" 
 
    #define FIND_NODE(hashindex, key, cache, cmp)                   list_findnode(hashindex, key, cache, cmp) 
    #define INSERT_NODE(hashindex, key, data, cache, cmp, delfun)   list_insertnode(hashindex, key, data, cache, cmp, delfun) 
    #define UPDATE_NODE(hashindex, key, data, cache, cmp)           list_updatenode(hashindex, key, data, cache, cmp) 
    #define DELETE_NODE(hashindex, index, cache, cmp)               list_deletenode(hashindex, index, cache, cmp) 
    #define INIT_NODES(cache)                                       list_initnodes(cache) 
    #define VISIT_NODES(cache, hashindex, visit)                    list_visitnodes(cache, hashindex, visit) 
#endif 
 
#endif /* __OPERATOR_H__ */