Simple struct that stores a queued change to the model tree. More...
#include <AmplModel.h>
Public Attributes | |
ModelComp * | comp |
The component to be added or removed. | |
AmplModel * | model |
The model to which it should be added/removed. | |
int | action |
The action: CHANGE_REM/CHANGE_ADD. |
Simple struct that stores a queued change to the model tree.
This is needed to treat expectation constraints that in the postprocessing need to be removed from the model in which they are defined and added to a different model. This action cannot be done by recursively working through all models and ModelComps (since removing/adding comps invalidates the iterators used in the recursion)
The action: CHANGE_REM/CHANGE_ADD.
Referenced by AmplModel::applyChanges().
The component to be added or removed.
Referenced by AmplModel::applyChanges().
The model to which it should be added/removed.
Referenced by AmplModel::applyChanges().