//DNode.h #ifndef DNODE_H #define DNODE_H extern class ElementD; // provides easy change of used class // there are some assumptions: // - it has to handle its memory issues // if allocates memory dynamically; // Class DNode: // This class is a representation of one data element in the container. // All of its data members are public, because the class is entirely // handled by the container class. There is no need to hide information. class DNode { public: DNode(); DNode(ElementD item, DNode* newPrevious, DNode* newNext); friend class DLinkedList; private: ElementD data; DNode* next; DNode* previous; }; #endif