GenericListNode.h

From Giona

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 1: Line 1:
<pre>
<pre>
-
#ifndef GENERICLISTNODE_H_
+
#ifndef _GENERICLISTNODE_H
-
#define GENERICLISTNODE_H_
+
#define _GENERICLISTNODE_H
 +
 
 +
#include <cstdlib>
 +
#include "Debug.h"
typedef int* genericListElemT;
typedef int* genericListElemT;
Line 15: Line 18:
void setElem(genericListElemT elem);
void setElem(genericListElemT elem);
genericListElemT getElem();
genericListElemT getElem();
 +
void setNotAnObject();
private:
private:
genericListElemT elem;
genericListElemT elem;
GenericListNode *next;
GenericListNode *next;
 +
bool notAnObject;
};
};
#endif /*GENERICLISTNODE_H_*/
#endif /*GENERICLISTNODE_H_*/
 +
</pre>
</pre>
 +
[[Il database Object Oriented Generico|BACK]]
[[Category:Codice Sorgente]]
[[Category:Codice Sorgente]]

Current revision as of 17:36, 17 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();
	void setNotAnObject();
private:
	genericListElemT elem;
	GenericListNode *next;
	bool notAnObject;
};
#endif /*GENERICLISTNODE_H_*/

BACK

Personal tools