
Set expressions More...
#include <gecode/minimodel.hh>
Public Types | |
| enum | NodeType { NT_VAR , NT_CONST , NT_LEXP , NT_CMPL , NT_INTER , NT_UNION , NT_DUNION } |
| Type of set expression. More... | |
Public Member Functions | |
| SetExpr (void) | |
| Default constructor. | |
| SetExpr (const SetExpr &e) | |
| Copy constructor. | |
| SetExpr (const SetExpr &l, NodeType t, const SetExpr &r) | |
| Construct expression for type and subexpresssions. | |
| SetExpr (const SetVar &x) | |
| Construct expression for variable. | |
| SetExpr (const LinIntExpr &x) | |
| Construct expression for integer variable. | |
| SetExpr (const IntSet &s) | |
| Construct expression for constant. | |
| SetExpr (const SetExpr &e, NodeType t) | |
| Construct expression for negation. | |
| SetVar | post (Home home) const |
| Post propagators for expression. | |
| void | post (Home home, SetRelType srt, const SetExpr &e) const |
| Post propagators for relation. | |
| void | post (Home home, BoolVar b, bool t, SetRelType srt, const SetExpr &e) const |
| Post propagators for reified relation. | |
| const SetExpr & | operator= (const SetExpr &e) |
| Assignment operator. | |
| ~SetExpr (void) | |
| Destructor. | |
Set expressions
Definition at line 1187 of file minimodel.hh.
Type of set expression.
| Enumerator | |
|---|---|
| NT_VAR | Variable. |
| NT_CONST | Constant. |
| NT_LEXP | Linear expression. |
| NT_CMPL | Complement. |
| NT_INTER | Intersection. |
| NT_UNION | Union. |
| NT_DUNION | Disjoint union. |
Definition at line 1190 of file minimodel.hh.
|
inline |
Default constructor.
Definition at line 44 of file set-expr.hpp.
| Gecode::SetExpr::SetExpr | ( | const SetExpr & | e | ) |
Copy constructor.
| Gecode::SetExpr::SetExpr | ( | const SetExpr & | l, |
| NodeType | t, | ||
| const SetExpr & | r ) |
Construct expression for type and subexpresssions.
| Gecode::SetExpr::SetExpr | ( | const SetVar & | x | ) |
Construct expression for variable.
|
explicit |
Construct expression for integer variable.
| Gecode::SetExpr::SetExpr | ( | const IntSet & | s | ) |
Construct expression for constant.
| Gecode::SetExpr::SetExpr | ( | const SetExpr & | e, |
| NodeType | t ) |
Construct expression for negation.
| Gecode::SetExpr::~SetExpr | ( | void | ) |
Destructor.
| void Gecode::SetExpr::post | ( | Home | home, |
| SetRelType | srt, | ||
| const SetExpr & | e ) const |
Post propagators for relation.
| void Gecode::SetExpr::post | ( | Home | home, |
| BoolVar | b, | ||
| bool | t, | ||
| SetRelType | srt, | ||
| const SetExpr & | e ) const |
Post propagators for reified relation.