#define NULL 0 #include "IntFamily.h" IntFamily::IntFamily(int Parent) { childList = new LList() ; parent = Parent ; } void IntFamily::addChild(int NewChild) { (void) childList->append(NewChild) ; } int IntFamily::getParent() const { return parent ; } int IntFamily::getSize() const { return childList->leftLength() + childList->rightLength() ; } int IntFamily::getChild(int I) const { int retMe ; if (childList->setPos(I) && childList->getValue(retMe)) return retMe ; else return -1 ; } IntFamily::~IntFamily() { delete childList; }