Commit a9cc3208 authored by Jason Rhinelander's avatar Jason Rhinelander

canProduceAny/reserveProduction are pure virtuals

parent add1dd2d
......@@ -20,13 +20,13 @@ public:
virtual bool supplies(const Bundle &b) const override { PYBIND11_OVERLOAD(bool, Firm, supplies, b); }
virtual bool canProduce(const Bundle &b) const override { PYBIND11_OVERLOAD_NAME(bool, Firm, "_can_produce", canProduce, b); }
virtual double canProduceAny(const Bundle &b) const override { PYBIND11_OVERLOAD_NAME(double, Firm, "_can_produce_any", canProduceAny, b); }
virtual double canProduceAny(const Bundle &b) const override { PYBIND11_OVERLOAD_PURE_NAME(double, Firm, "_can_produce_any", canProduceAny, b); }
virtual bool produces(const Bundle &b) const override { PYBIND11_OVERLOAD_NAME(bool, Firm, "_produces", produces, b); }
virtual Firm::Reservation reserve(const BundleNegative &reserve) override { PYBIND11_OVERLOAD(Firm::Reservation, Firm, reserve, reserve); }
virtual Bundle produce(const Bundle &b) override { PYBIND11_OVERLOAD_PURE(Bundle, Firm, produce, b); }
virtual void reserveProduction(const Bundle &reserve) override { PYBIND11_OVERLOAD_NAME(void, Firm, "_reserve_production", reserveProduction, reserve); }
virtual void reserveProduction(const Bundle &reserve) override { PYBIND11_OVERLOAD_PURE_NAME(void, Firm, "_reserve_production", reserveProduction, reserve); }
virtual void reduceExcessProduction() override { PYBIND11_OVERLOAD_PURE_NAME(void, Firm, "_reduce_excess_production", reduceExcessProduction); }
// These are non-virtual, but are protected and need to be exposed, but the name can differ
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment