Hey i'm trying to create a header file for a doubly linked list node. So far i have
can someone let me know if any of this is right. The Set funtion is supposed to set the private data members, the retreive is supposed to retreive the private data members. And I need a constructor that allows a node to be immediately linked into a list. I have them in there just not sure if they are right.Code:#ifndef DLLISTNODE_H
#define DLLISTNODE_H
#include <iostream>
using namespace std;
template <class T>
class DLListNode
{
public:
DLListNode();
DLListNode(const T&)
DLListNode(const T&, DLListNode<T>*
~DLListNode();
void set(data, nextPtr, prevPtr)
void retrieve(data)
private:
T data;
DLListNode<T>* nextPtr;
DLListNode<T>*prevPtr;
};
#include "DLListNode.template"
#endif