Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Spinor.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
5 
6 namespace cadabra {
7 
8  class Spinor : public ImplicitIndex, virtual public property {
9  public:
10  Spinor();
11  virtual ~Spinor() {};
12  virtual std::string name() const override;
13 // virtual void display(std::ostream&) const;
14  virtual bool parse(const Kernel&, keyval_t& keyvals) override;
15 
16  int dimension;
17  bool weyl;
18  enum { positive, negative } chirality; // only in combination with weyl
19  bool majorana;
20  };
21 
22 }
virtual ~Spinor()
Definition: Spinor.hh:11
Definition: Spinor.hh:18
Definition: Spinor.hh:18
bool weyl
Definition: Spinor.hh:17
Definition: ImplicitIndex.hh:8
virtual std::string name() const override
Definition: Spinor.cc:13
Arguments to properties get parsed into a keyval_t structure.
Definition: Props.hh:48
Base class for all properties, handling argument parsing and defining the interface.
Definition: Props.hh:107
virtual bool parse(const Kernel &, keyval_t &keyvals) override
Definition: Spinor.cc:18
Spinor()
Definition: Spinor.cc:8
int dimension
Definition: Spinor.hh:16
Definition: Spinor.hh:8
Definition: Kernel.hh:15
bool majorana
Definition: Spinor.hh:19
enum cadabra::Spinor::@1 chirality