Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
cadabra::WeightInherit Class Reference

#include <WeightInherit.hh>

Inheritance diagram for cadabra::WeightInherit:
cadabra::WeightBase cadabra::labelled_property cadabra::property

Classes

class  WeightException

Public Types

enum  CombinationType { multiplicative , additive , power }
Public Types inherited from cadabra::property
enum  match_t { no_match , id_match , exact_match }

Public Member Functions

virtual ~WeightInherit ()
virtual bool parse (Kernel &, std::shared_ptr< Ex >, keyval_t &) override
virtual multiplier_t value (const Kernel &, Ex::iterator, const std::string &forcedlabel) const override
virtual std::string unnamed_argument () const override
virtual std::string name () const override
Public Member Functions inherited from cadabra::property
 property (bool hidden=false)
virtual ~property ()
bool parse_to_keyvals (const Ex &, keyval_t &)
virtual bool parse (Kernel &, keyval_t &keyvals)
virtual void validate (const Kernel &, const Ex &) const
virtual void latex (std::ostream &) const
 Display the property on the stream.
virtual match_t equals (const property *) const
void hidden (bool h)
 Properties can be hidden because they only make sense to the system; they will not be printed when the user asks for a list of properties.
bool hidden (void) const

Public Attributes

enum cadabra::WeightInherit::CombinationType combination_type
multiplier_t value_self
Public Attributes inherited from cadabra::labelled_property
std::string label

Member Enumeration Documentation

◆ CombinationType

Enumerator
multiplicative 
additive 
power 

Constructor & Destructor Documentation

◆ ~WeightInherit()

WeightInherit::~WeightInherit ( )
virtual

Member Function Documentation

◆ name()

std::string WeightInherit::name ( ) const
overridevirtual

Implements cadabra::property.

◆ parse()

bool WeightInherit::parse ( Kernel & k,
std::shared_ptr< Ex > ex,
keyval_t & kv )
overridevirtual

Reimplemented from cadabra::labelled_property.

◆ unnamed_argument()

virtual std::string cadabra::WeightInherit::unnamed_argument ( ) const
inlineoverridevirtual

Reimplemented from cadabra::property.

◆ value()

multiplier_t WeightInherit::value ( const Kernel & kernel,
Ex::iterator it,
const std::string & forcedlabel ) const
overridevirtual

Implements cadabra::WeightBase.

Member Data Documentation

◆ combination_type

enum cadabra::WeightInherit::CombinationType cadabra::WeightInherit::combination_type

◆ value_self

multiplier_t cadabra::WeightInherit::value_self

The documentation for this class was generated from the following files: