NeoPZ
|
Implements a linked list of ElemType elements. Matrix utility. More...
#include <pzlink.h>
Classes | |
struct | Node |
Node structure. More... | |
Public Member Functions | |
TPZLink () | |
Simple constructor. More... | |
~TPZLink () | |
Simple destructor. More... | |
TPZLink< ElemType > & | operator= (TPZLink< ElemType > &) |
int | Head () |
Returns to the head of the list. More... | |
int | Next () |
Moves to the next element on list. More... | |
int | Get (ElemType *pElem) |
Returns an element from the list. More... | |
ElemType * | GetNode () |
Returns the node's element type. More... | |
int | GetLast (ElemType *pElem) |
Returns the last element on the list. More... | |
Manipulators | |
Those methods implement manipulations routine with the linked list | |
int | Insert (ElemType &elem) |
Inserts a element on the list. More... | |
int | Append (ElemType &elem) |
Appends an element to the list. More... | |
int | Remove () |
Removes an element from the list. More... | |
int | Update (ElemType &elem) |
Updates the current list. More... | |
int | Clear () |
Clears the entire list. More... | |
Private Attributes | |
Node * | fHead |
Pointer to head of the list. More... | |
Node * | fLast |
Pointer to last element on list. More... | |
Node * | fThis |
Pointer to current element. More... | |
Node ** | fpBefore |
Implements a linked list of ElemType elements. Matrix utility.
Simple constructor.
Definition at line 13 of file pzlink.cpp.
Simple destructor.
Definition at line 25 of file pzlink.cpp.
int TPZLink< ElemType >::Append | ( | ElemType & | elem | ) |
Appends an element to the list.
&elem | Element being appended |
Definition at line 75 of file pzlink.cpp.
Referenced by TPZSSpMatrix< TVar >::Decompose_LDLt().
int TPZLink< ElemType >::Clear | ( | ) |
Clears the entire list.
Definition at line 146 of file pzlink.cpp.
Referenced by TPZSSpMatrix< TVar >::Decompose_LDLt().
|
inline |
Returns an element from the list.
*pElem | contains the returned element |
Definition at line 140 of file pzlink.h.
Referenced by TPZSSpMatrix< TVar >::Decompose_Cholesky(), TPZSSpMatrix< TVar >::Decompose_LDLt(), TPZSpMatrix< TVar >::fAdd(), TPZSpMatrix< TVar >::fMult(), TPZSpMatrix< TVar >::fSub(), TPZSpMatrix< TVar >::GetVal(), TPZSpMatrix< TVar >::MultAdd(), TPZLink< TPZSpMatrix::TPZNode >::operator=(), TPZSpMatrix< TVar >::ProdEsc(), TPZSpMatrix< TVar >::PutVal(), TPZSSpMatrix< TVar >::Subst_Forward(), and TPZSSpMatrix< TVar >::Subst_LForward().
|
inline |
Returns the last element on the list.
*pElem | contains the last element |
Definition at line 161 of file pzlink.h.
Referenced by TPZSSpMatrix< TVar >::Subst_Diag().
|
inline |
Returns the node's element type.
Definition at line 152 of file pzlink.h.
Referenced by TPZSpMatrix< TVar >::GetVal(), and TPZSpMatrix< TVar >::MultAdd().
|
inline |
Returns to the head of the list.
Definition at line 118 of file pzlink.h.
Referenced by TPZSSpMatrix< TVar >::Decompose_Cholesky(), TPZSSpMatrix< TVar >::Decompose_LDLt(), TPZSpMatrix< TVar >::fAdd(), TPZSpMatrix< TVar >::fMult(), TPZSpMatrix< TVar >::fSub(), TPZSpMatrix< TVar >::GetVal(), TPZSpMatrix< TVar >::MultAdd(), TPZLink< TPZSpMatrix::TPZNode >::operator=(), TPZSpMatrix< TVar >::ProdEsc(), TPZSpMatrix< TVar >::PutVal(), TPZSSpMatrix< TVar >::Subst_Forward(), and TPZSSpMatrix< TVar >::Subst_LForward().
int TPZLink< ElemType >::Insert | ( | ElemType & | elem | ) |
Inserts a element on the list.
&elem | Element being inserted |
Definition at line 48 of file pzlink.cpp.
Referenced by TPZSSpMatrix< TVar >::Decompose_Cholesky(), TPZSSpMatrix< TVar >::Decompose_LDLt(), and TPZSpMatrix< TVar >::PutVal().
|
inline |
Moves to the next element on list.
Definition at line 127 of file pzlink.h.
Referenced by TPZSSpMatrix< TVar >::Decompose_Cholesky(), TPZSSpMatrix< TVar >::Decompose_LDLt(), TPZSpMatrix< TVar >::fAdd(), TPZSpMatrix< TVar >::fMult(), TPZSpMatrix< TVar >::fSub(), TPZSpMatrix< TVar >::GetVal(), TPZSpMatrix< TVar >::MultAdd(), TPZLink< TPZSpMatrix::TPZNode >::operator=(), TPZSpMatrix< TVar >::ProdEsc(), TPZSpMatrix< TVar >::PutVal(), TPZSSpMatrix< TVar >::Subst_Forward(), and TPZSSpMatrix< TVar >::Subst_LForward().
TPZLink< ElemType > & TPZLink< ElemType >::operator= | ( | TPZLink< ElemType > & | src | ) |
Definition at line 171 of file pzlink.cpp.
int TPZLink< ElemType >::Remove | ( | ) |
Removes an element from the list.
Definition at line 93 of file pzlink.cpp.
Referenced by TPZSpMatrix< TVar >::PutVal().
int TPZLink< ElemType >::Update | ( | ElemType & | elem | ) |
Updates the current list.
&elem | Updated element on the list |
Definition at line 131 of file pzlink.cpp.
Referenced by TPZSSpMatrix< TVar >::Decompose_Cholesky(), TPZSSpMatrix< TVar >::Decompose_LDLt(), TPZSpMatrix< TVar >::fMult(), and TPZSpMatrix< TVar >::PutVal().
Pointer to head of the list.
Definition at line 100 of file pzlink.h.
Referenced by TPZLink< TPZSpMatrix::TPZNode >::Head().
Pointer to last element on list.
Definition at line 102 of file pzlink.h.
Referenced by TPZLink< TPZSpMatrix::TPZNode >::GetLast().
What the hell
Definition at line 106 of file pzlink.h.
Referenced by TPZLink< TPZSpMatrix::TPZNode >::Head(), TPZLink< TPZSpMatrix::TPZNode >::Next(), and TPZLink< TPZSpMatrix::TPZNode >::operator=().
Pointer to current element.
Definition at line 104 of file pzlink.h.
Referenced by TPZLink< TPZSpMatrix::TPZNode >::Get(), TPZLink< TPZSpMatrix::TPZNode >::GetNode(), TPZLink< TPZSpMatrix::TPZNode >::Head(), TPZLink< TPZSpMatrix::TPZNode >::Next(), and TPZLink< TPZSpMatrix::TPZNode >::operator=().