|
|
| Index () |
| | Default constructor.
|
| |
| | Index (const std::string &t_name, unsigned short t_id=0) |
| | Constructor that initializes only the name of the Index. More...
|
| |
|
| Index (char value) |
| |
| | Index (const Index &index)=default |
| | Copy constructor = C++ default. More...
|
| |
| | Index (const std::string &t_name, const Space *t_space, unsigned short t_id=0) |
| | Constructor that initializes fully the Index. More...
|
| |
|
| ~Index () |
| | Destructor.
|
| |
|
std::string_view | getName () const |
| |
|
std::string | getIndexCodeName () const |
| |
|
ID_type | getID () const |
| |
| char | getValue () const |
| |
| bool | getSign () const |
| |
| bool | getFree () const |
| |
| cslIndex::Type | getType () const |
| |
| int | getMax () const |
| |
| const Space * | getSpace () const |
| |
|
Index | rename () const |
| |
| Index | getFlipped () const |
| |
| void | setName (const std::string &t_name) |
| |
|
void | setID (ID_type t_id) |
| |
| void | setSpace (const Space *t_space) |
| | Changes the current space of the Index. More...
|
| |
| void | setValue (char t_value) |
| | Sets the value of the Index and therefore sets its type to cslIndex::Fixed. More...
|
| |
| void | setSign (bool t_sign) |
| |
|
void | flipSign () |
| |
| void | setFree (bool t_free) |
| |
| void | setType (cslIndex::Type t_type) |
| |
| bool | testContraction (const Index &t_index) const |
| | Tests if the Index can be contracted with t_index. Basically, returns true if the two indices are free and contractible with respect to Einstein's conventions. More...
|
| |
|
void | print () const |
| | Prints the Index in standard output.
|
| |
|
std::string | printLaTeX () const |
| | Returns the LaTeX name of the Index (for now there is no difference with the regular name).
|
| |
|
void | printDefinition (std::ostream &out, int indentSize) const |
| |
| Index & | operator= (const Index &index)=default |
| | operator=, copy the properties of index in the current object. More...
|
| |
| Index & | operator= (int t_value) |
| | Sets the value of the Index. See Index::setValue(). More...
|
| |
| bool | compareWithDummy (const Index &t_index) const |
| | Equivalent to Index::operator==() except for dummy indices for which the name does not count in the comparison. More...
|
| |
| bool | compareWithoutSign (const Index &t_index) const |
| | Tells if two indices are equal, independently of their sign if they live in a signed Space. For now equivalent to Index::operator==(). More...
|
| |
| bool | exactMatch (const Index &t_index) const |
| | Tells if two indices are equal, taking their sign into account, differently from the Index::compareWithoutSign() function. More...
|
| |
|
Index & | operator++ () |
| |
|
Index | operator++ (int) |
| |
| bool | operator== (const Index &t_index) const |
| | operator==, compares two indices and tells if they are equal, independently of their sign, i.e. two indices are equals if they have the same name, space, and type. Equivalent to Index::compareWithoutSign() More...
|
| |
| bool | operator== (int value) const |
| | operator==, compares two indices and tells if they are equal, independently of their sign, i.e. two indices are equals if they have the same name, space, and type. Equivalent to Index::compareWithoutSign() More...
|
| |
| bool | operator== (size_t value) const |
| | operator==, compares two indices and tells if they are equal, independently of their sign, i.e. two indices are equals if they have the same name, space, and type. Equivalent to Index::compareWithoutSign() More...
|
| |
| bool | operator!= (const Index &t_index) const |
| | operator!=, opposite of the operator!= More...
|
| |
|
bool | operator!= (int value) const |
| |
|
bool | operator!= (size_t value) const |
| |
| bool | operator|= (const Index &index) const |
| | operator|=, simplicity comparator. More...
|
| |
| bool | operator &= (const Index &index) const |
| | operator&=, simplicity comparator. More...
|
| |
| bool | operator< (const Index &index) const |
| | operator<, simplicity comparator. More...
|
| |
| bool | operator> (const Index &index) const |
| | operator>, simplicity comparator. More...
|
| |
| bool | operator<= (const Index &index) const |
| | operator<=, simplicity comparator. More...
|
| |
| bool | operator>= (const Index &index) const |
| | operator>=, simplicity comparator. More...
|
| |
Index object that is used for indicial objects.