Cadabra
Computer algebra system for field theory problems
Toggle main menu visibility
Loading...
Searching...
No Matches
core
properties
WeightInherit.hh
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
Exceptions.hh
"
5
#include "
properties/WeightBase.hh
"
6
7
namespace
cadabra
{
8
9
class
WeightInherit
:
virtual
public
WeightBase
{
10
public
:
11
virtual
~WeightInherit
();
12
13
// The following exception class is thrown when 'value' cannot figure out the
14
// weight because a sum contains terms of different weight.
15
class
WeightException
:
public
ConsistencyException
{
16
public
:
17
WeightException
(
const
std::string&);
18
};
19
20
virtual
bool
parse
(
Kernel
&, std::shared_ptr<Ex>,
keyval_t
&)
override
;
21
virtual
multiplier_t
value
(
const
Kernel
&, Ex::iterator,
const
std::string& forcedlabel)
const override
;
22
virtual
std::string
unnamed_argument
()
const override
23
{
24
return
"type"
;
25
};
26
virtual
std::string
name
()
const override
;
27
28
enum
CombinationType
{
multiplicative
,
additive
,
power
}
combination_type
;
29
30
multiplier_t
value_self
;
31
};
32
33
}
Exceptions.hh
WeightBase.hh
ConsistencyException::ConsistencyException
ConsistencyException(std::string)
Definition
Exceptions.cc:15
cadabra::Kernel
Definition
Kernel.hh:15
cadabra::WeightBase
Definition
WeightBase.hh:8
cadabra::WeightInherit::WeightException::WeightException
WeightException(const std::string &)
Definition
WeightInherit.cc:17
cadabra::WeightInherit
Definition
WeightInherit.hh:9
cadabra::WeightInherit::CombinationType
CombinationType
Definition
WeightInherit.hh:28
cadabra::WeightInherit::multiplicative
@ multiplicative
Definition
WeightInherit.hh:28
cadabra::WeightInherit::power
@ power
Definition
WeightInherit.hh:28
cadabra::WeightInherit::additive
@ additive
Definition
WeightInherit.hh:28
cadabra::WeightInherit::parse
virtual bool parse(Kernel &, std::shared_ptr< Ex >, keyval_t &) override
Definition
WeightInherit.cc:22
cadabra::WeightInherit::name
virtual std::string name() const override
Definition
WeightInherit.cc:12
cadabra::WeightInherit::combination_type
enum cadabra::WeightInherit::CombinationType combination_type
cadabra::WeightInherit::value_self
multiplier_t value_self
Definition
WeightInherit.hh:30
cadabra::WeightInherit::~WeightInherit
virtual ~WeightInherit()
Definition
WeightInherit.cc:8
cadabra::WeightInherit::value
virtual multiplier_t value(const Kernel &, Ex::iterator, const std::string &forcedlabel) const override
Definition
WeightInherit.cc:46
cadabra::WeightInherit::unnamed_argument
virtual std::string unnamed_argument() const override
Definition
WeightInherit.hh:22
cadabra::keyval_t
Arguments to properties get parsed into a keyval_t structure.
Definition
Props.hh:68
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition
Adjform.cc:83
cadabra::multiplier_t
Multiplier multiplier_t
Definition
Storage.hh:44
Generated by
1.17.0