⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clistnodebase.cpp

📁 unix下的 Clist类实现
💻 CPP
字号:
/*
    Name                : CListNode BaseClass
    Usage               : List Class
    begin               : 2001.12.08   
    version             : v3.0.0                                        
    copyright           : (C) 2001 by Nanjing Linkage System Integration CO.,LTD 
    email               : fangj@lianchuang.com
    user		: fangjian
    update		:                                
*/

#include <stdio.h>
#include "CListNodeBase.h"
/****************************************************************
 *
 *	Function:CListNodeBase
 *	Purpose:构造函数,清空next、prev指针
 *	Return:	
 ****************************************************************/
CListNodeBase::CListNodeBase()
{
	 next = NULL;
	 prev = NULL;
}

/****************************************************************
 *
 *	Function:fnClearPoint
 *	Purpose:清空next、prev指针
 *	Return:	
 ****************************************************************/
void CListNodeBase::fnClearPoint()
{
	 next = NULL;
	 prev = NULL;
}

/****************************************************************
 *
 *	Function:fnGetNext
 *	Purpose:得到本对象所指的下一个对象的指针
 *	Return:	返回下一个对象的指针
 ****************************************************************/
CListNodeBase* CListNodeBase::fnGetNext()
{
	return next;
}

/****************************************************************
 *
 *	Function:fnGetNext
 *	Purpose:得到本对象所指的上一个对象的指针
 *	Return:	返回上一个对象的指针
 ****************************************************************/
CListNodeBase* CListNodeBase::fnGetPrev()
{
	return prev;
}

/****************************************************************
 *
 *	Function:fnGetNext
 *	Purpose:将某一对象point设置成本对象的下链
 *	Return:	
 ****************************************************************/
void CListNodeBase::fnSetNext(CListNodeBase* pUser)
{
	next = pUser;
}


/****************************************************************
 *
 *	Function:fnSetPrev
 *	Purpose:将某一对象point设置成本对象的上链
 *	Return:	
 ****************************************************************/
void CListNodeBase::fnSetPrev(CListNodeBase* pUser)
{
	prev = pUser;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -