Generated on Sat Feb 7 2015 02:01:40 for Gecode by doxygen 1.8.9.1
Gecode::LinFloatExpr::Node Class Reference

Nodes for linear expressions. More...

Public Member Functions

 Node (void)
 Default constructor. More...
 
void fill (Home home, Float::Linear::Term *&tf, FloatVal m, FloatVal &d) const
 Generate linear terms from expression. More...
 
FloatVal fill (Home home, Float::Linear::Term *tf) const
 Generate linear terms for expressions. More...
 
bool decrement (void)
 Decrement reference count and possibly free memory. More...
 
 ~Node (void)
 Destructor. More...
 

Static Public Member Functions

static void * operator new (size_t size)
 Memory management. More...
 
static void operator delete (void *p, size_t size)
 Memory management. More...
 

Public Attributes

unsigned int use
 Nodes are reference counted. More...
 
int n_float
 Float variables in tree. More...
 
NodeType t
 Type of expression. More...
 
Nodel
 Subexpressions. More...
 
Noder
 
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. More...
 
FloatVal a
 Coefficient and offset. More...
 
FloatVal c
 
FloatVar x_float
 Float variable (potentially) More...
 

Detailed Description

Nodes for linear expressions.

Definition at line 47 of file float-expr.cpp.

Constructor & Destructor Documentation

Gecode::LinFloatExpr::Node::Node ( void  )
inline

Default constructor.

Definition at line 92 of file float-expr.cpp.

Gecode::LinFloatExpr::Node::~Node ( void  )
inline

Destructor.

Definition at line 96 of file float-expr.cpp.

Member Function Documentation

void Gecode::LinFloatExpr::Node::fill ( Home  home,
Float::Linear::Term *&  tf,
FloatVal  m,
FloatVal d 
) const

Generate linear terms from expression.

Definition at line 346 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 147 of file float-expr.cpp.

bool Gecode::LinFloatExpr::Node::decrement ( void  )

Decrement reference count and possibly free memory.

Definition at line 120 of file float-expr.cpp.

void * Gecode::LinFloatExpr::Node::operator new ( size_t  size)
inlinestatic

Memory management.

Definition at line 110 of file float-expr.cpp.

void Gecode::LinFloatExpr::Node::operator delete ( void *  p,
size_t  size 
)
inlinestatic

Memory management.

Definition at line 115 of file float-expr.cpp.

Member Data Documentation

unsigned int Gecode::LinFloatExpr::Node::use

Nodes are reference counted.

Definition at line 50 of file float-expr.cpp.

int Gecode::LinFloatExpr::Node::n_float

Float variables in tree.

Definition at line 52 of file float-expr.cpp.

NodeType Gecode::LinFloatExpr::Node::t

Type of expression.

Definition at line 54 of file float-expr.cpp.

Node* Gecode::LinFloatExpr::Node::l

Subexpressions.

Definition at line 56 of file float-expr.cpp.

Node * Gecode::LinFloatExpr::Node::r

Definition at line 56 of file float-expr.cpp.

Float::Linear::Term* Gecode::LinFloatExpr::Node::tf

Integer views and coefficients.

Definition at line 60 of file float-expr.cpp.

NonLinFloatExpr* Gecode::LinFloatExpr::Node::ne

Non-linear expression.

Definition at line 62 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 65 of file float-expr.cpp.

FloatVal Gecode::LinFloatExpr::Node::c

Definition at line 65 of file float-expr.cpp.

FloatVar Gecode::LinFloatExpr::Node::x_float

Float variable (potentially)

Definition at line 67 of file float-expr.cpp.


The documentation for this class was generated from the following file: