#include "table.h"
Element::Element(ASTNodeType _type) : ASTNode(_type) {
- initDefVectorASTNode(GETELEMENTPARENTS(this));
initElementEncoding(&encoding, (Element *) this);
}
ElementFunction::ElementFunction(Function *_function, Element **array, uint numArrays, Boolean *_overflowstatus) : Element(ELEMFUNCRETURN), function(_function), inputs(array, numArrays), overflowstatus(_overflowstatus) {
for (uint i = 0; i < numArrays; i++)
- pushVectorASTNode(GETELEMENTPARENTS(array[i]), this);
+ GETELEMENTPARENTS(array[i])->push(this);
initFunctionEncoding(&functionencoding, this);
}
Element::~Element() {
deleteElementEncoding(&encoding);
- deleteVectorArrayASTNode(GETELEMENTPARENTS(this));
}