GenericListNode.h

From Giona

(Difference between revisions)
Line 12: Line 12:
virtual ~GenericListNode();
virtual ~GenericListNode();
void setNext(GenericListNode *next);
void setNext(GenericListNode *next);
-
GenericListNode getNext();
+
GenericListNode* getNext();
void setElem(genericListElemT elem);
void setElem(genericListElemT elem);
genericListElemT getElem();
genericListElemT getElem();

Revision as of 10:38, 15 November 2007

#ifndef GENERICLISTNODE_H_
#define GENERICLISTNODE_H_

typedef int* genericListElemT;


class GenericListNode
{
public:
	GenericListNode();
	virtual ~GenericListNode();
	void setNext(GenericListNode *next);
	GenericListNode* getNext();
	void setElem(genericListElemT elem);
	genericListElemT getElem();
private:
	genericListElemT elem;
	GenericListNode *next;
};
#endif /*GENERICLISTNODE_H_*/
Personal tools