GenericListNode.h

From Giona

Revision as of 12:07, 15 December 2007 by Rmarino (Talk | contribs)
#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();
	void setNotAnObject();
private:
	genericListElemT elem;
	GenericListNode *next;
	bool notAnObject;
};
#endif /*GENERICLISTNODE_H_*/


BACK

Personal tools