#pragma once #include "properties/WeightBase.hh" namespace cadabra { class Weight : virtual public WeightBase { public: virtual ~Weight(); virtual multiplier_t value(const Kernel&, Ex::iterator, const std::string& forcedlabel) const override; virtual bool parse(Kernel&, std::shared_ptr, keyval_t&) override; virtual std::string unnamed_argument() const override { return "value"; }; virtual std::string name() const override; private: multiplier_t value_; }; }