void OperationTracker::addOperation( int callID, void (*fnPtr) (double value) ) { Operation dOperation; dOperation.setOperation(callID, fnPtr); this->addOperation(dOperation); }
void OperationTracker::addOperation( int callID, void (*fnPtr) () ) { Operation dOperation; dOperation.setOperation(callID, fnPtr); this->addOperation(dOperation); // //a temporary holder of the data // Operation tempOperation[trackerSize + 1]; // for (int i = 0; i < trackerSize; i++) // { // tempOperation[i].setOperation(tracker[i]); // } // //add the new option // tempOperation[trackerSize].setOperation( dOperation ); // trackerSize += 1; // //resize selection // tracker = new Operation[trackerSize]; // //copy the data back into selection // for (int i = 0; i < trackerSize; i++) // { // tracker[i].setOperation(tempOperation[i]); // } }