FRAMES NO FRAMES

Class IlcPrintTrace

Definition file: ilsolver/ilctrace.h
Include file: <ilsolver/ilctrace.h>

An instance of this class is part of the Solver trace mechanism. An instance of this class prints trace events.

Example

Here is an example of how to use a print trace.

 IlcPrintTrace trace(solver, IlcTraceVars | IlcTraceFail);
 

See Also:

Constructor and Destructor Summary
public IlcPrintTrace(IloSolver s, IlcUInt flags=4, const char * name=0)
public IlcPrintTrace(IlcPrintTraceI * impl)
Method Summary
public IlcPrintTraceI *getImpl() const
public voidoperator=(const IlcPrintTrace & trace)
public const IlcPrintTrace &trace(IlcAnySetVar) const
public const IlcPrintTrace &trace(IlcIntSetVar) const
public const IlcPrintTrace &trace(IlcFloatVar) const
public const IlcPrintTrace &trace(IlcAnyVar) const
public const IlcPrintTrace &trace(IlcIntVar) const
Constructor and Destructor Detail

IlcPrintTrace

public IlcPrintTrace(IloSolver s, IlcUInt flags=4, const char * name=0)

This constructor creates a print trace. The parameter flags indicates which events it traces. See the topic Trace Events in the class IlcTraceI for a list of the possible flags.


IlcPrintTrace

public IlcPrintTrace(IlcPrintTraceI * impl)

This constructor creates a handle (an instance of the class IlcPrintTrace) from a pointer to an implementation object (an instance of the implementation class IlcPrintTraceI).


Method Detail

getImpl

public IlcPrintTraceI * getImpl() const

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


operator=

public void operator=(const IlcPrintTrace & trace)

This operator assigns trace to the invoking print trace. After calling this operator, both handles point to the same implementation object.


trace

public const IlcPrintTrace & trace(IlcAnySetVar) const

These member functions hook a variable; that is, they offer a link between a print trace and a variable. (For users of previous versions of Solver, this member function resembles the trace hook mechanism.)


trace

public const IlcPrintTrace & trace(IlcIntSetVar) const

These member functions hook a variable; that is, they offer a link between a print trace and a variable. (For users of previous versions of Solver, this member function resembles the trace hook mechanism.)


trace

public const IlcPrintTrace & trace(IlcFloatVar) const

These member functions hook a variable; that is, they offer a link between a print trace and a variable. (For users of previous versions of Solver, this member function resembles the trace hook mechanism.)


trace

public const IlcPrintTrace & trace(IlcAnyVar) const

These member functions hook a variable; that is, they offer a link between a print trace and a variable. (For users of previous versions of Solver, this member function resembles the trace hook mechanism.)


trace

public const IlcPrintTrace & trace(IlcIntVar) const

These member functions hook a variable; that is, they offer a link between a print trace and a variable. (For users of previous versions of Solver, this member function resembles the trace hook mechanism.)