Gecode::Instance::Column Class Reference
Array built row by row from the values of a repeated statement. More...
#include <gecode/instance/impl.hpp>
Public Member Functions | |
| Column (ValueType t, int depth) | |
| Empty column for rows of type t and depth depth. | |
| void | add (Value &v) |
| Add a row v; throws ShapeError with a phrase completing the name. | |
| void | skip (void) |
| Add a missing row. | |
| Value | finish (void) |
| Return the array. | |
Detailed Description
Array built row by row from the values of a repeated statement.
Row r is the value the name had in iteration r. For example, the rows [1,2], [], and [3] give a value of depth 2 with lengths {3} and {2,0,1} and leaves 1,2,3. A missing row (from an iteration that did not define the name) becomes an empty list, which needs rows that are lists.
Depth and type come from the rows added. A column without rows takes them from the statement defining the name.
Constructor & Destructor Documentation
◆ Column()
| Gecode::Instance::Column::Column | ( | ValueType | t, |
| int | depth ) |
Member Function Documentation
◆ add()
| void Gecode::Instance::Column::add | ( | Value & | v | ) |
Add a row v; throws ShapeError with a phrase completing the name.
◆ skip()
| void Gecode::Instance::Column::skip | ( | void | ) |
◆ finish()
| Value Gecode::Instance::Column::finish | ( | void | ) |
The documentation for this class was generated from the following files:
