Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Integer.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Props.hh"
5 
6 namespace cadabra {
7 
12 
13  class Integer : public property {
14  public:
15  virtual ~Integer() {};
16  virtual std::string name() const override;
17  virtual bool parse(const Kernel&, keyval_t& keyvals) override;
18 // virtual bool parse(Ex&, Ex::iterator, Ex::iterator, keyval_t&);
19  virtual void display(std::ostream&) const;
20  virtual std::string unnamed_argument() const override { return "range"; };
21 
22  Ex from, to, difference;
23  };
24 
25 }
26 
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:130
Ex difference
Definition: Integer.hh:20
virtual ~Integer()
Definition: Integer.hh:15
virtual void display(std::ostream &) const
Definition: Integer.cc:51
virtual std::string unnamed_argument() const override
Definition: Integer.hh:20
Arguments to properties get parsed into a keyval_t structure.
Definition: Props.hh:48
virtual std::string name() const override
Definition: Integer.cc:9
Base class for all properties, handling argument parsing and defining the interface.
Definition: Props.hh:107
Property indicating that a symbolic object always takes integer values.
Definition: Integer.hh:13
Ex to
Definition: Integer.hh:20
Ex from
Definition: Integer.hh:20
Definition: Kernel.hh:15
virtual bool parse(const Kernel &, keyval_t &keyvals) override
Definition: Integer.cc:14