Files
envi-code/SourceCode/Code2026/inc/AdsXRx/Node.h
T
2026-09-28 15:28:50 +08:00

38 lines
786 B
C++

//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, SH Software Co. Ltd.
// = FileName : Node 模板类
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
// = Description: Node 声明 通用节点类模板
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#ifndef _NODE_H_
#define _NODE_H_
template <class R>
class Node
{
public:
Node(Node<R> *p, Node<R> *n, R* d);
~Node(){}
public:
R * data;
Node<R> * previous;
Node<R> * next;
};
template <class R>
Node<R>::Node(Node<R> *p, Node<R> *n, R* d)
{
assert(d!=NULL);
previous=p;
next = n;
data = d;
}
#endif