clistnodebase.cpp

来自「unix下的 Clist类实现」· C++ 代码 · 共 82 行

CPP
82
字号
/*
    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 + =
减小字号Ctrl + -
显示快捷键?