Runnable

class ampl::Runnable

Represent an object with only one function, which is called as a callback after an async execution has finished.

Inherit from this class and use an instance in AMPL::evalAsync(), AMPL::readAsync(), AMPL::readDataAsync(), AMPL::solveAsync().

Public Functions

inline virtual ~Runnable()

Destructor.

virtual void run() = 0

Function called when the execution of the async operation is finished.