Gecode::Reflection::VarSpec Class Reference
[Reflection API]
List of all members.
Detailed Description
Variable specification
A VarSpec contains an abstract specification of a variable implementation. These specifications are typically stored in a VarMap.
The type of the variable is represented as a Symbol and called vti (variable type identifier). In order to find out what type of variable a VarSpec corresponds to, you can compare the vti with VarImp::vti of a concrete variable type (e.g. IntVarImp::vti).
The domain of a variable is represented as an Arg. The concrete encoding depends on the variable type.
Definition at line 299 of file reflection.icc.
Constructor & Destructor Documentation
Gecode::Reflection::VarSpec::VarSpec |
( |
void |
|
) |
|
Gecode::Reflection::VarSpec::VarSpec |
( |
Support::Symbol |
vti, |
|
|
Arg * |
domain, |
|
|
bool |
assigned = false | |
|
) |
| | |
Construct specification for a variable.
Definition at line 542 of file reflection.cc.
Gecode::Reflection::VarSpec::VarSpec |
( |
const VarSpec & |
s |
) |
|
Gecode::Reflection::VarSpec::~VarSpec |
( |
void |
|
) |
|
Member Function Documentation
const VarSpec & Gecode::Reflection::VarSpec::operator= |
( |
const VarSpec & |
s |
) |
|
bool Gecode::Reflection::VarSpec::hasName |
( |
void |
|
) |
const |
Arg * Gecode::Reflection::VarSpec::dom |
( |
void |
|
) |
const |
bool Gecode::Reflection::VarSpec::assigned |
( |
void |
|
) |
const |
Return whether variable is assigned.
Definition at line 603 of file reflection.cc.
The documentation for this class was generated from the following files: