Cadabra
Computer algebra system for field theory problems
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
cadabra::IndexMap Class Reference

Description

To ensure consistency when creating adjforms out of two different Ex objects an IndexMap object is required which keeps track of which numeric index represents which index name.

#include <Adjform.hh>

Public Member Functions

 IndexMap (const Kernel &kernel)
 
 ~IndexMap ()
 
Adjform::value_type get_free_index (Ex::iterator index)
 

Static Public Member Functions

static bool is_coordinate (const Kernel &kernel, Ex::iterator index)
 

Private Attributes

std::unique_ptr< Ex_comparatorcomp
 
std::unique_ptr< Exdata
 

Constructor & Destructor Documentation

◆ IndexMap()

cadabra::IndexMap::IndexMap ( const Kernel kernel)

◆ ~IndexMap()

cadabra::IndexMap::~IndexMap ( )

Member Function Documentation

◆ get_free_index()

Adjform::value_type cadabra::IndexMap::get_free_index ( Ex::iterator  index)

◆ is_coordinate()

bool cadabra::IndexMap::is_coordinate ( const Kernel kernel,
Ex::iterator  index 
)
static

Member Data Documentation

◆ comp

std::unique_ptr<Ex_comparator> cadabra::IndexMap::comp
private

◆ data

std::unique_ptr<Ex> cadabra::IndexMap::data
private

The documentation for this class was generated from the following files: