Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
map_mma.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Algorithm.hh"
5 
6 namespace cadabra {
7 
13 
14 class map_mma : public Algorithm {
15  public:
16  map_mma(const Kernel&, Ex&, const std::string& head);
17 
18  virtual bool can_apply(iterator);
19  virtual result_t apply(iterator&);
20 
21  private:
22  std::string head_;
23  std::vector<Ex::iterator> left;
24  std::set<Ex::iterator> index_factors;
25 };
26 
27 }
28 
Base class for all algorithms, containing generic routines and in particular the logic for index clas...
Definition: Algorithm.hh:58
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:130
virtual result_t apply(iterator &)
Definition: map_mma.cc:82
std::set< Ex::iterator > index_factors
Definition: map_mma.hh:24
Functionality to act with Mathematica on all scalar parts of an expression, and keep the result in-pl...
Definition: map_mma.hh:14
Ex::iterator iterator
Definition: Algorithm.hh:69
virtual bool can_apply(iterator)
Definition: map_mma.cc:17
Definition: Kernel.hh:15
map_mma(const Kernel &, Ex &, const std::string &head)
Definition: map_mma.cc:12
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:149
std::string head_
Definition: map_mma.hh:22
std::vector< Ex::iterator > left
Definition: map_mma.hh:23