Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
cadabra::Indices Class Reference

#include <Indices.hh>

Inheritance diagram for cadabra::Indices:
cadabra::list_property cadabra::property

Public Types

enum  position_t { free, fixed, independent }
 
- Public Types inherited from cadabra::property
enum  match_t { no_match, id_match, exact_match }
 

Public Member Functions

 Indices ()
 
virtual bool parse (const Kernel &, keyval_t &) override
 
virtual std::string name () const override
 
virtual std::string unnamed_argument () const override
 
virtual match_t equals (const property *) const override
 
virtual void latex (std::ostream &) const override
 Display the property on the stream. More...
 
- Public Member Functions inherited from cadabra::property
 property (bool hidden=false)
 
virtual ~property ()
 
bool parse_to_keyvals (const Ex &, keyval_t &)
 
virtual void validate (const Kernel &, const Ex &) const
 
void hidden (bool h)
 Properties can be hidden because they only make sense to the system; they will not be printed when the user asks for a list of properties. More...
 
bool hidden (void) const
 

Public Attributes

std::string set_name
 
std::string parent_name
 
enum cadabra::Indices::position_t position_type
 
std::vector< Exvalues
 

Private Member Functions

void collect_index_values (Ex::iterator ind_values)
 Given the right-hand side of a 'values={...}' node, generate a list of all index values in index_values. More...
 

Member Enumeration Documentation

Enumerator
free 
fixed 
independent 

Constructor & Destructor Documentation

Indices::Indices ( )

Member Function Documentation

void Indices::collect_index_values ( Ex::iterator  ind_values)
private

Given the right-hand side of a 'values={...}' node, generate a list of all index values in index_values.

property::match_t Indices::equals ( const property other) const
overridevirtual

Reimplemented from cadabra::property.

void Indices::latex ( std::ostream &  str) const
overridevirtual

Display the property on the stream.

Generate a LaTeX representation of the property, assuming LaTeX is in text mode (so it needs dollar symbols to switch to maths).

Reimplemented from cadabra::property.

std::string Indices::name ( ) const
overridevirtual

Implements cadabra::property.

bool Indices::parse ( const Kernel ,
keyval_t keyvals 
)
overridevirtual

Reimplemented from cadabra::property.

virtual std::string cadabra::Indices::unnamed_argument ( ) const
inlineoverridevirtual

Reimplemented from cadabra::property.

Member Data Documentation

std::string cadabra::Indices::parent_name
enum cadabra::Indices::position_t cadabra::Indices::position_type
std::string cadabra::Indices::set_name
std::vector<Ex> cadabra::Indices::values

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