Gecode::VarBase< VarImp > Class Template Reference
[Programming views for variables]
Base-class for variables. More...
#include <var.hpp>
Protected Member Functions | |
VarBase (void) | |
Default constructor. | |
VarBase (VarImp *x) | |
Initialize with variable implementation x. | |
Protected Attributes | |
VarImp * | varimp |
Pointer to variable implementation. | |
Generic variable information | |
| |
VarImp * | var (void) const |
Return variable implementation of variable. | |
unsigned int | degree (void) const |
Return degree (number of subscribed propagators and advisors). | |
double | afc (void) const |
Return accumulated failure count (plus degree). | |
Variable comparison | |
| |
bool | same (const VarBase< VarImp > &y) const |
Test whether view is the same as y. | |
bool | before (const VarBase< VarImp > &y) const |
Test whether view comes before y (arbitrary order). |
Detailed Description
template<class VarImp>
class Gecode::VarBase< VarImp >
Base-class for variables.
Definition at line 45 of file var.hpp.
Constructor & Destructor Documentation
template<class VarImp >
Gecode::VarBase< VarImp >::VarBase | ( | void | ) | [inline, protected] |
template<class VarImp>
Gecode::VarBase< VarImp >::VarBase | ( | VarImp * | x | ) | [inline, protected] |
Member Function Documentation
template<class VarImp >
VarImp * Gecode::VarBase< VarImp >::var | ( | void | ) | const [inline] |
template<class VarImp >
unsigned int Gecode::VarBase< VarImp >::degree | ( | void | ) | const [inline] |
template<class VarImp >
double Gecode::VarBase< VarImp >::afc | ( | void | ) | const [inline] |
template<class VarImp>
bool Gecode::VarBase< VarImp >::same | ( | const VarBase< VarImp > & | y | ) | const [inline] |
template<class VarImp>
bool Gecode::VarBase< VarImp >::before | ( | const VarBase< VarImp > & | y | ) | const [inline] |
Member Data Documentation
template<class VarImp>
VarImp* Gecode::VarBase< VarImp >::varimp [protected] |
The documentation for this class was generated from the following file:
- gecode/kernel/var.hpp (Revision: 9894)