FRAMES NO FRAMES

Class IlcVariableSlopeShape

Definition file: ilsched/shaperct.h
Include file: <ilsched/ilsched.h>

An instance of IlcVariableSlopeShape holds a description of a shape with variable slope.

See Also:

Constructor Summary
public IlcVariableSlopeShape()
public IlcVariableSlopeShape(IlcShapeI * impl)
public IlcVariableSlopeShape(const IlcShape & shape)
Method Summary
public IlcShapeI *getImpl() const
public IlcFloatVargetSlopeVariable() const
public voidoperator=(const IlcVariableSlopeShape & h)
Inherited Methods from IlcShape
getImpl, getName, getObject, getResourceConstraint, getSolver, getSolverI, isVariableSlopeShape, operator=, setName, setObject
Constructor Detail

IlcVariableSlopeShape

public IlcVariableSlopeShape()
This constructor creates an instance which is empty, that is, one whose handle pointer is null. You must assign it a value before you access it. Any attempt to access it before assignment leads to undefined behaviour.

IlcVariableSlopeShape

public IlcVariableSlopeShape(IlcShapeI * impl)
This constructor creates an instance of the handle class from the pointer to an instance of the implementation class.

IlcVariableSlopeShape

public IlcVariableSlopeShape(const IlcShape & shape)

This copy-constructor provides a safe down-cast of a generic instance of IlcShape into an instance of IlcVariableSlopeShape. In debug mode, an assertion failure will be raised if the IlcShape is not an instance of IlcVariableSlopeShape.


Method Detail

getImpl

public IlcShapeI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

getSlopeVariable

public IlcFloatVar getSlopeVariable() const

This member function returns the variable parameterizing the slope of the shape. This parameter is supplied at construction time, when invoking IlcResourceConstraint::makeVariableSlopeShape.

See Also:


operator=

public void operator=(const IlcVariableSlopeShape & 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. After execution of this operator, the invoking object and the provided argument point to the same implementation object.