12 template<
class ElemType >
15 fHead = fThis = fLast = NULL;
24 template<
class ElemType >
31 while ( fHead != NULL )
46 template<
class ElemType >
52 if(fWp) newNode = (Node *) fWp->NewPointer(
sizeof(Node));
53 else newNode =
new (Node);
55 newNode =
new( Node );
57 if ( newNode == NULL )
61 if ( (newNode->next = fThis) == NULL )
64 *fpBefore = fThis = newNode;
73 template<
class ElemType >
78 while ( fThis != NULL )
80 fpBefore = &fThis->next;
84 return( Insert( elem ) );
91 template<
class ElemType >
100 if(!fWp)
delete( *fpBefore );
101 else fWp->Release(*fpBefore);
116 while ( fThis->next != NULL )
130 template<
class ElemType >
144 template<
class ElemType >
149 while ( fThis != NULL )
153 if(fWp) fWp->Release(fHead);
161 fThis = fLast = NULL;
169 template<
class ElemType >
181 while ( src.
Get( &elem ) )
189 src.
fThis = *oldBefore;
int Update(ElemType &elem)
Updates the current list.
void Append(TPZVec< TVar > &u1, TPZVec< TVar > &u2, TPZVec< TVar > &u12)
Append u2 vector after u1 vector in u12 vector.
int Remove()
Removes an element from the list.
int Next()
Moves to the next element on list.
int Insert(ElemType &elem)
Inserts a element on the list.
Implements a linked list of ElemType elements. Matrix utility.
TPZLink< ElemType > & operator=(TPZLink< ElemType > &)
int Get(ElemType *pElem)
Returns an element from the list.
Contains TPZSpMatrix class which defines sparse matrix class.
~TPZLink()
Simple destructor.
int Clear()
Clears the entire list.
TPZLink()
Simple constructor.
Node * fThis
Pointer to current element.
Contains TPZLink class which implements a linked list of ElemType elements.
int Head()
Returns to the head of the list.
int Append(ElemType &elem)
Appends an element to the list.