#include "node.h" Node::Node(void *obj, Node *lst) { parent = this; size = -1; // No significance object = obj; next = lst; } Node::Node (void *obj) { parent = this; size = 1; // Only for inverted trees object = obj; next = NULL; } void *Node::getObject() { return object; } Node *Node::identify() { if (this == parent) return this; return parent = parent->identify(); }