Instance

class ampl::Instance

Base class for instances of modelling entities.

Public Functions

Entity entity() const

Returns the entity that this instance is part of.

std::string name() const

Returns the name of this instance.

std::string toString() const

Returns a string representation of this instance.

template <class InnerInstance>
Instance(BasicInstance<InnerInstance> instance)

Constructor for base class conversions.

template <class InnerInstance>
Instance &operator=(BasicInstance<InnerInstance> instance)

Operator for base class conversions.