/** @file lortensor.h
*
- * Interface to GiNaC´s lortensor objects. */
+ * Interface to GiNaC's Lorentz tensors. */
/*
* GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
// member functions
- // default constructor, destructor, copy constructor assignment operator and helpers
-public:
- lortensor();
- ~lortensor();
- lortensor(const lortensor & other);
- const lortensor & operator=(const lortensor & other);
-protected:
- void copy(const lortensor & other);
- void destroy(bool call_parent);
-
// other constructors
protected:
lortensor(lortensor_types const lt, const std::string & n);
//functions overriding virtual functions from base classes
public:
- basic * duplicate() const;
void printraw(std::ostream & os) const;
void printtree(std::ostream & os, unsigned indent) const;
void print(std::ostream & os, unsigned upper_precedence=0) const;
bool info(unsigned inf) const;
ex eval(int level=0) const;
protected:
- int compare_same_type(const basic & other) const;
bool is_equal_same_type(const basic & other) const;
unsigned return_type(void) const;
unsigned return_type_tinfo(void) const;
static unsigned next_serial;
};
-// global constants
-
-extern const lortensor some_lortensor;
-extern const std::type_info & typeid_lortensor;
-
// utility functions
inline const lortensor & ex_to_lortensor(const ex &e)