Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Metric.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Props.hh"
6 
7 namespace cadabra {
8 
9  class Metric : public Symmetric, virtual public property {
10  public:
11  Metric();
12  virtual std::string name() const override;
13  virtual bool parse(const Kernel&, keyval_t&) override;
14  virtual void validate(const Kernel&, const Ex&) const override;
15  virtual void latex(std::ostream&) const override;
16 
17  int signature;
18  };
19 
20 }
virtual std::string name() const override
Definition: Metric.cc:15
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:130
Metric()
Definition: Metric.cc:7
Arguments to properties get parsed into a keyval_t structure.
Definition: Props.hh:48
Definition: Symmetric.hh:8
Base class for all properties, handling argument parsing and defining the interface.
Definition: Props.hh:107
Definition: Metric.hh:9
virtual void validate(const Kernel &, const Ex &) const override
Definition: Metric.cc:29
int signature
Definition: Metric.hh:17
virtual bool parse(const Kernel &, keyval_t &) override
Definition: Metric.cc:20
Definition: Kernel.hh:15
virtual void latex(std::ostream &) const override
Display the property on the stream.
Definition: Metric.cc:35