Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
split_index.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Algorithm.hh"
5 #include "properties/Indices.hh"
7 
8 namespace cadabra {
9 
10  class split_index : public Algorithm {
11  public:
12  split_index(const Kernel&, Ex&, Ex&);
13 
14  virtual bool can_apply(iterator);
15  virtual result_t apply(iterator&);
16 
17  private:
21  long num1, num2;
22 
24  };
25 
26 }
Base class for all algorithms, containing generic routines and in particular the logic for index clas...
Definition: Algorithm.hh:58
const Indices * part1_class
Definition: split_index.hh:18
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:130
const Coordinate * part2_coord
Definition: split_index.hh:19
bool part2_is_number
Definition: split_index.hh:20
Definition: Indices.hh:8
iterator part1_coord_node
Definition: split_index.hh:23
long num1
Definition: split_index.hh:21
iterator part2_coord_node
Definition: split_index.hh:23
long num2
Definition: split_index.hh:21
Definition: split_index.hh:10
bool part1_is_number
Definition: split_index.hh:20
split_index(const Kernel &, Ex &, Ex &)
Definition: split_index.cc:6
virtual result_t apply(iterator &)
Definition: split_index.cc:53
const Coordinate * part1_coord
Definition: split_index.hh:19
Ex::iterator iterator
Definition: Algorithm.hh:69
virtual bool can_apply(iterator)
Definition: split_index.cc:48
const Indices * part2_class
Definition: split_index.hh:18
const Indices * full_class
Definition: split_index.hh:18
Definition: Kernel.hh:15
result_t
Keeping track of what algorithms have done to this expression.
Definition: Storage.hh:149
Definition: Coordinate.hh:8