FRAMES NO FRAMES

Class IlcDemon

Definition file: ilsolver/basic.h
Include file: <ilsolver/ilosolver.h>

Instances of IlcDemon are handles to demons. Demons differ from goals in these ways:

For more information, see the concepts Propagation and Propagation Events.

See Also:

Constructor Summary
public IlcDemon()
public IlcDemon(IlcDemonI * impl)
public IlcDemon(const IlcDemon & demon)
Method Summary
public IlcConstraintgetConstraint() const
public IlcDemonI *getImpl() const
public IloSolvergetSolver() const
public voidoperator=(const IlcDemon & h)
Constructor Detail

IlcDemon

public IlcDemon()

This constructor creates an empty handle. You must initialize it before you use it.


IlcDemon

public IlcDemon(IlcDemonI * impl)

This constructor creates a handle object from a pointer to an implementation object.


IlcDemon

public IlcDemon(const IlcDemon & demon)

This constructor creates a handle demon from the reference indicated by demon.


Method Detail

getConstraint

public IlcConstraint getConstraint() const

This member function returns a handle of the constraint associated with the invoking demon. If there is no such constraint, this member function returns 0 (zero). The invoking demon is known as the parent of the constraint.


getImpl

public IlcDemonI * getImpl() const
This constructor creates an object by copying another one.

This member function returns a pointer to the implementation object of the invoking handle.


getSolver

public IloSolver getSolver() const

This member function returns an instance of IloSolver associated with the invoking object.


operator=

public void operator=(const IlcDemon & h)

This operator assigns an address to the handle pointer of the invoking object. That address is the location of the implementation object of the provided argument.