GenericListNode.h

From Giona

(Difference between revisions)
Line 4: Line 4:
#include <cstdlib>
#include <cstdlib>
 +
#include "Debug.h"
typedef int* genericListElemT;
typedef int* genericListElemT;

Revision as of 16:52, 13 December 2007

#ifndef _GENERICLISTNODE_H
#define	_GENERICLISTNODE_H

#include <cstdlib>
#include "Debug.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_*/

BACK

Personal tools