Cadabra
Computer algebra system for field theory problems
Toggle main menu visibility
Loading...
Searching...
No Matches
core
properties
Weight.hh
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
properties/WeightBase.hh
"
5
6
namespace
cadabra
{
7
8
class
Weight
:
virtual
public
WeightBase
{
9
public
:
10
virtual
~Weight
();
11
virtual
multiplier_t
value
(
const
Kernel
&, Ex::iterator,
const
std::string& forcedlabel)
const override
;
12
virtual
bool
parse
(
Kernel
&, std::shared_ptr<Ex>,
keyval_t
&)
override
;
13
virtual
std::string
unnamed_argument
()
const override
14
{
15
return
"value"
;
16
};
17
virtual
std::string
name
()
const override
;
18
private
:
19
multiplier_t
value_
;
20
};
21
22
}
WeightBase.hh
cadabra::Kernel
Definition
Kernel.hh:15
cadabra::WeightBase
Definition
WeightBase.hh:8
cadabra::Weight
Definition
Weight.hh:8
cadabra::Weight::value
virtual multiplier_t value(const Kernel &, Ex::iterator, const std::string &forcedlabel) const override
Definition
Weight.cc:29
cadabra::Weight::unnamed_argument
virtual std::string unnamed_argument() const override
Definition
Weight.hh:13
cadabra::Weight::parse
virtual bool parse(Kernel &, std::shared_ptr< Ex >, keyval_t &) override
Definition
Weight.cc:16
cadabra::Weight::name
virtual std::string name() const override
Definition
Weight.cc:11
cadabra::Weight::~Weight
virtual ~Weight()
Definition
Weight.cc:7
cadabra::Weight::value_
multiplier_t value_
Definition
Weight.hh:19
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