#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; #define tf(IsTrue) ((IsTrue) ? "True" : "False") int main() { uCalc uc; uCalc::Transformer t; auto myRule = t.FromTo("A", "B"); // Get the parent from the rule auto parent = myRule.ParentTransformer(); // Check if the parent is the original transformer using its unique memory index cout << tf(parent.MemoryIndex() == t.MemoryIndex()) << endl; }