Files
envi-code/SourceCode/Code2026/inc/AdsXRx/ListNode.h
T

33 lines
781 B
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-------------------------------------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, SH Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : ListNode 模板类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: ListNode 声明 单向循环链表结点
// 定义方式不能改变,其与const data access有直接关系!
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#ifndef _LISTNODE_H_
#define _LISTNODE_H_
template <class T>class ListNode
{
public:
ListNode();
~ListNode(){;}
public:
T data;
ListNode<T>*next;
};
template <class T>
ListNode<T>::ListNode()
: next(NULL)
{
}
#endif