Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Weight.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
5 
6 namespace cadabra {
7 
8  class Weight : virtual public WeightBase {
9  public:
10  virtual multiplier_t value(const Kernel&, Ex::iterator, const std::string& forcedlabel) const override;
11  virtual bool parse(const Kernel&, keyval_t&) override;
12  virtual std::string unnamed_argument() const override{ return "value"; };
13  virtual std::string name() const override;
14  private:
16  };
17 
18 }
Definition: WeightBase.hh:8
virtual std::string name() const override
Definition: Weight.cc:6
virtual std::string unnamed_argument() const override
Definition: Weight.hh:12
Definition: Weight.hh:8
virtual bool parse(const Kernel &, keyval_t &) override
Definition: Weight.cc:11
Arguments to properties get parsed into a keyval_t structure.
Definition: Props.hh:48
multiplier_t value_
Definition: Weight.hh:15
mpq_class multiplier_t
Definition: Storage.hh:38
virtual multiplier_t value(const Kernel &, Ex::iterator, const std::string &forcedlabel) const override
Definition: Weight.cc:20
Definition: Kernel.hh:15