Public Attributes

changeitem Struct Reference

Simple struct that stores a queued change to the model tree. More...

#include <AmplModel.h>

List of all members.

Public Attributes

ModelCompcomp
 The component to be added or removed.
AmplModelmodel
 The model to which it should be added/removed.
int action
 The action: CHANGE_REM/CHANGE_ADD.

Detailed Description

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)


Member Data Documentation

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().


The documentation for this struct was generated from the following file: