Cadabra
Computer algebra system for field theory problems
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 
cadabra::Algorithm::iterator
Ex::iterator iterator
Definition: Algorithm.hh:70
cadabra::map_mma
Definition: map_mma.hh:14
cadabra::Kernel
Definition: Kernel.hh:14
Algorithm.hh
cadabra::Ex::result_t
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:159
cadabra::map_mma::can_apply
virtual bool can_apply(iterator)
Definition: map_mma.cc:17
cadabra::Algorithm
Definition: Algorithm.hh:59
cadabra::map_mma::map_mma
map_mma(const Kernel &, Ex &, const std::string &head)
Definition: map_mma.cc:12
cadabra::map_mma::apply
virtual result_t apply(iterator &)
Definition: map_mma.cc:82
cadabra::Ex
Definition: Storage.hh:140
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:80
cadabra::map_mma::index_factors
std::set< Ex::iterator > index_factors
Definition: map_mma.hh:24
cadabra::map_mma::head_
std::string head_
Definition: map_mma.hh:22
cadabra::map_mma::left
std::vector< Ex::iterator > left
Definition: map_mma.hh:23