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 705 of file reflection.icc.
Public Member Functions | |
Var (void) | |
Default constructor. | |
template<class V> | |
Var (const V &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. | |
template<class VarImp> | |
VarImp * | var (void) const |
Cast to concrete variable type. | |
template<> | |
Var (const Var &v) |
Constructor & Destructor Documentation
Gecode::Reflection::Var::Var | ( | void | ) | [inline] |
template<class V>
Gecode::Reflection::Var::Var | ( | const V & | v | ) | [inline, explicit] |
Gecode::Reflection::Var::Var | ( | VarImpBase * | var, | |
const Support::Symbol & | vti | |||
) | [inline] |
Construct from var with variable type identifier vti.
Definition at line 777 of file reflection.icc.
template<>
Gecode::Reflection::Var::Var | ( | const Var & | v | ) | [inline] |
Definition at line 774 of file reflection.icc.
Member Function Documentation
std::ostream & Gecode::Reflection::Var::print | ( | std::ostream & | os | ) | const |
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: 6414)
- gecode/kernel/reflection.cc (Revision: 6403)