Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
WeightInherit.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Exceptions.hh"
6 
7 namespace cadabra {
8 
9  class WeightInherit : virtual public WeightBase {
10  public:
11  // The following exception class is thrown when 'value' cannot figure out the
12  // weight because a sum contains terms of different weight.
14  public:
15  WeightException(const std::string&);
16  };
17 
18  virtual bool parse(const Kernel&, keyval_t&) override;
19  virtual multiplier_t value(const Kernel&, Ex::iterator, const std::string& forcedlabel) const override;
20  virtual std::string unnamed_argument() const override { return "type"; };
21  virtual std::string name() const override;
22 
24 
26  };
27 
28 }
virtual std::string name() const override
Definition: WeightInherit.cc:7
multiplier_t value_self
Definition: WeightInherit.hh:25
Definition: WeightBase.hh:8
enum cadabra::WeightInherit::@2 combination_type
WeightException(const std::string &)
Definition: WeightInherit.cc:12
Definition: WeightInherit.hh:23
Definition: WeightInherit.hh:13
Arguments to properties get parsed into a keyval_t structure.
Definition: Props.hh:48
Definition: WeightInherit.hh:23
virtual multiplier_t value(const Kernel &, Ex::iterator, const std::string &forcedlabel) const override
Definition: WeightInherit.cc:37
Definition: WeightInherit.hh:9
Definition: WeightInherit.hh:23
mpq_class multiplier_t
Definition: Storage.hh:38
Definition: Exceptions.hh:14
virtual bool parse(const Kernel &, keyval_t &) override
Definition: WeightInherit.cc:17
virtual std::string unnamed_argument() const override
Definition: WeightInherit.hh:20
Definition: Kernel.hh:15