|
| DList (void) |
| Default constructor. More...
|
|
| DList (int tp, int i) |
| Constructor - node of element of type "tp" and first data field "i". Pointer are initialized with NULL. More...
|
|
| DList (int tp, int i, int j) |
| Constructor - node of element of type "tp", first data field "i" and second data field "j". Pointer are initialized with NULL. More...
|
|
| DList (const DList &L) |
| Constructor by copy. More...
|
|
| ~DList (void) |
| Destructor. More...
|
|
void | clear () |
| Deletes all nodes from DList. More...
|
|
void | negate () |
| Changes the sign of DList. More...
|
|
void | add (elemType) |
| Adds one node at the end of DList (scans the list). Updates actual pointer to be the last node. More...
|
|
void | add_begin (elemType) |
| Adds one node in the beginning of DList. Updates actual pointer to be the new first node. More...
|
|
void | add_end (elemType) |
| Adds one node in the end of DList. Updates actual pointer to be the last node. More...
|
|
void | set (elemType i) |
| Sets data (elemtype) of the node being pointed by actual pointer. More...
|
|
void | set_begin () |
| Changes actual pointer to point at the first element of DList (beg pointer). More...
|
|
void | set_end () |
| Changes actual pointer to point at the last element of DList (end pointer). More...
|
|
void | set_sign (int ii) |
| Sets the sign of DList. More...
|
|
void | join (DList &L) |
| Joins a DList to the end of the current DList (this). Updates "actual" pointer to be the end of the final DList. More...
|
|
void | loop_right () |
| Shifts actual pointer to next node. If actual node is the end node, shift to beg node. More...
|
|
void | loop_left () |
| Shifts actual pointer to previous node. If actual node is the beg node, shift to end node. More...
|
|
DList | rearrange () |
| Creates and returns a new DList by copying nodes in DList ordered by type. The nodes that first appear in the new ordered DList are $$'s (type=2) and then all other elements: $b$ (type=0) and $b^$ (type=1) unordered. Constant elements are removed. More...
|
|
void | remove (unsigned int type) |
| Removes the first element with "data.get\_type()==type" found in DList. Updates actual pointer to be the first node. More...
|
|
void | remove_actual () |
| Removes the element for which the actual pointer, "actual", is pointing at in DList. More...
|
|
void | shift_right () |
| Shifts actual pointer to next node. If actual node is the end node, stops. More...
|
|
void | shift_left () |
| Shifts actual pointer to previous node. If actual node if first node (begin), stops. More...
|
|
void | swap_next () |
| Swaps the actual node with the next node of DList. More...
|
|
elemType | get () |
| Returns elemtype of the node being pointed by actual (current element). More...
|
|
int | getSign () |
| Returns the sign of DList. More...
|
|
vector< int > | getIds () |
| Creates and returns an integer vector sequence container with the ids (data fields) of $b$'s and $b^$'s elements. More...
|
|
void | getBandBdaggerIds (bool &BandBdagger, vector< string > &id0, vector< string > &id1, int &sign) |
| Updates integer vector sequence containers "id0" and "id1" with ids (data fields) of $b$'s and $b^$'s elements, respectively. "sign" is updated with the sign of DList. "BandBdagger" is a boolean which is true if DList contains at least one $b$ or $b^$, and false otherwise. More...
|
|
void | getDeltaIds (bool &AllDeltas, vector< string > &id0, vector< string > &id1, int &sign) |
| Updates integer vector sequence containers "id0" and "id1" with first and second ids (data fields) of $$ elements, respectively. "sign" is updated with the sign of DList. "AllDeltas" is a boolean which is true if all elements in DList are of $$ type, and false otherwise. More...
|
|
void | getBandBdaggerAndDeltasIds (vector< string > &id0, vector< string > &id1, vector< string > &id2, vector< string > &id3, int &sign) |
| Updates integer vector sequence containers "id0" and "id1" with ids (data fields) of $b$'s and $b^$'s elements, respectively, and "id2" and "id3" integer vector sequence containers with first and second data fields of $$'s elements, respectively. "sign" is updated with the sign of DList. More...
|
|
int | numDeltas () |
| Returns the number of elements of type $$ (type=2). More...
|
|
int | numBs () |
| Returns the number of elements of type b (type=0). More...
|
|
bool | search_last (unsigned int type1) |
| Search the last element with "data.get\_type()==type1" found in DList. Returns true a node was found. More...
|
|
bool | search_first (unsigned int type1) |
| Search the first element with "data.get\_type()==type" found in DList. Returns true if the symbol is not the first, and false otherwise. More...
|
|
bool | search_first (unsigned int type0, unsigned int type1) |
| Checks for the order of appearance in DList of types "type0" and "type1". Returns true if order of appearance is the same as the parameter's order and false otherwise. More...
|
|
bool | search_elem (unsigned int type1) |
| Searches for the element with "data.get\_type()==type" found in DList. Returns true if the element is found, false otherwise. More...
|
|
bool | check () |
| Verifies if the number of $b$'s and $b^$'s matches and if each one is less or equal than N of SO(2N). More...
|
|
bool | checkDeltaIndex () |
| Checks the indexes of $$ elements. They must be less or equal to the n of SO(2n). Checks also if the the indexes of a delta are equal. Returns true if each $$ is not zero, false otherwise. More...
|
|
bool | check_num () |
| Verifies if the number of $b$'s and $b^$'s is less or equal than N of SO(2N). Returns true if so, false otherwise. More...
|
|
bool | check_same_num () |
| Verifies if the number of $b$'s and $b^$'s match. Returns true if they match, false otherwise. More...
|
|
bool | isActualLast () |
| Returns true if actual pointer is pointing to the last (end) node of DList. More...
|
|
bool | isEmpty () |
| Returns true if DList has no nodes. More...
|
|
bool | hasNoDeltas () |
| Returns true if there is no elements of type $$ in DList. More...
|
|
bool | hasOnlyDeltas () |
| Returns true if all nodes in DList are of $$ type. More...
|
|
bool | hasRepeatedIndex () |
| Returns true if there is elements with the same id (data fields) in the DList (repeated ids). More...
|
|
DList & | operator= (const DList &L) |
| Copies a DList. More...
|
|
const DList | operator- () const |
| Negates operator, change sign of DList. More...
|
|