Gecode::Reflection::Var Class Reference
[Reflection API]
Detailed Description
Generic variables.A generic variable can represent any Gecode variable. It can be used in VarArrays, and it supports generic update during cloning.
Definition at line 707 of file reflection.icc.
Public Member Functions | |
Var (void) | |
Default constructor. | |
template<class VarImp> | |
Var (const VarBase< VarImp > &v) | |
Construct from v. | |
Var (const Var &v) | |
Construct from v. | |
Var (VarImpBase *var, const Support::Symbol &vti) | |
Construct from var with variable type identifier vti. | |
void | update (Space *home, bool share, Var &v) |
Update during cloning. | |
std::ostream & | print (std::ostream &os) const |
Output to os. | |
Arg * | spec (const Space *home, VarMap &vm) const |
Reflection. | |
VarImpBase * | varImpBase (void) const |
Cast to variable implementation base. | |
template<class VarImp> | |
VarImp * | var (void) const |
Cast to concrete variable type. |
Constructor & Destructor Documentation
Gecode::Reflection::Var::Var | ( | void | ) | [inline] |
Gecode::Reflection::Var::Var | ( | const Var & | v | ) | [inline] |
Gecode::Reflection::Var::Var | ( | VarImpBase * | var, | |
const Support::Symbol & | vti | |||
) | [inline] |
Construct from var with variable type identifier vti.
Definition at line 781 of file reflection.icc.
Member Function Documentation
std::ostream & Gecode::Reflection::Var::print | ( | std::ostream & | os | ) | const |
VarImpBase * Gecode::Reflection::Var::varImpBase | ( | void | ) | const [inline] |
template<class VarImp>
VarImp * Gecode::Reflection::Var::var | ( | void | ) | const [inline] |
The documentation for this class was generated from the following files:
- gecode/kernel/reflection.icc (Revision: 7297)
- gecode/kernel/reflection.cc (Revision: 7297)