Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
WeightInherit.hh
Go to the documentation of this file.
1
2#pragma once
3
4#include "Exceptions.hh"
6
7namespace 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(Kernel&, std::shared_ptr<Ex>, 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
21 {
22 return "type";
23 };
24 virtual std::string name() const override;
25
27
29 };
30
31 }
Definition: Exceptions.hh:14
Definition: Kernel.hh:15
Definition: WeightBase.hh:8
Definition: WeightInherit.hh:13
Definition: WeightInherit.hh:9
CombinationType
Definition: WeightInherit.hh:26
@ multiplicative
Definition: WeightInherit.hh:26
@ power
Definition: WeightInherit.hh:26
@ additive
Definition: WeightInherit.hh:26
virtual bool parse(Kernel &, std::shared_ptr< Ex >, keyval_t &) override
Definition: WeightInherit.cc:17
virtual std::string name() const override
Definition: WeightInherit.cc:7
enum cadabra::WeightInherit::CombinationType combination_type
multiplier_t value_self
Definition: WeightInherit.hh:28
virtual multiplier_t value(const Kernel &, Ex::iterator, const std::string &forcedlabel) const override
Definition: WeightInherit.cc:38
virtual std::string unnamed_argument() const override
Definition: WeightInherit.hh:20
Arguments to properties get parsed into a keyval_t structure.
Definition: Props.hh:68
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
mpq_class multiplier_t
Definition: Storage.hh:38