Nodes for linear expressions. More...
Public Member Functions | |
Node (void) | |
Default constructor. | |
void | fill (Home home, Float::Linear::Term *&tf, FloatVal m, FloatVal &d) const |
Generate linear terms from expression. | |
FloatVal | fill (Home home, Float::Linear::Term *tf) const |
Generate linear terms for expressions. | |
bool | decrement (void) |
Decrement reference count and possibly free memory. | |
~Node (void) | |
Destructor. |
Static Public Member Functions | |
static void * | operator new (size_t size) |
Memory management. | |
static void | operator delete (void *p, size_t size) |
Memory management. |
Public Attributes | |
unsigned int | use |
Nodes are reference counted. | |
int | n_float |
Float variables in tree. | |
NodeType | t |
Type of expression. | |
Node * | l |
Subexpressions. | |
Node * | r |
union { | |
Float::Linear::Term * tf | |
Integer views and coefficients. More... | |
NonLinFloatExpr * ne | |
Non-linear expression. More... | |
} | sum |
Sum of integer or Boolean variables, or non-linear expression. | |
FloatVal | a |
Coefficient and offset. | |
FloatVal | c |
FloatVar | x_float |
Float variable (potentially) |
Nodes for linear expressions.
Definition at line 43 of file float-expr.cpp.
|
inline |
Default constructor.
Definition at line 88 of file float-expr.cpp.
|
inline |
Destructor.
Definition at line 92 of file float-expr.cpp.
void Gecode::LinFloatExpr::Node::fill | ( | Home | home, |
Float::Linear::Term *& | tf, | ||
FloatVal | m, | ||
FloatVal & | d ) const |
Generate linear terms from expression.
Definition at line 344 of file float-expr.cpp.
FloatVal Gecode::LinFloatExpr::Node::fill | ( | Home | home, |
Float::Linear::Term * | tf ) const |
Generate linear terms for expressions.
Definition at line 143 of file float-expr.cpp.
bool Gecode::LinFloatExpr::Node::decrement | ( | void | ) |
Decrement reference count and possibly free memory.
Definition at line 116 of file float-expr.cpp.
|
inlinestatic |
Memory management.
Definition at line 106 of file float-expr.cpp.
|
inlinestatic |
Memory management.
Definition at line 111 of file float-expr.cpp.
unsigned int Gecode::LinFloatExpr::Node::use |
Nodes are reference counted.
Definition at line 46 of file float-expr.cpp.
int Gecode::LinFloatExpr::Node::n_float |
Float variables in tree.
Definition at line 48 of file float-expr.cpp.
NodeType Gecode::LinFloatExpr::Node::t |
Type of expression.
Definition at line 50 of file float-expr.cpp.
Node* Gecode::LinFloatExpr::Node::l |
Subexpressions.
Definition at line 52 of file float-expr.cpp.
Node * Gecode::LinFloatExpr::Node::r |
Definition at line 52 of file float-expr.cpp.
Float::Linear::Term* Gecode::LinFloatExpr::Node::tf |
Integer views and coefficients.
Definition at line 56 of file float-expr.cpp.
NonLinFloatExpr* Gecode::LinFloatExpr::Node::ne |
Non-linear expression.
Definition at line 58 of file float-expr.cpp.
union { ... } Gecode::LinFloatExpr::Node::sum |
Sum of integer or Boolean variables, or non-linear expression.
FloatVal Gecode::LinFloatExpr::Node::a |
Coefficient and offset.
Definition at line 61 of file float-expr.cpp.
FloatVal Gecode::LinFloatExpr::Node::c |
Definition at line 61 of file float-expr.cpp.
FloatVar Gecode::LinFloatExpr::Node::x_float |
Float variable (potentially)
Definition at line 63 of file float-expr.cpp.