| 98 | } |
| 99 | |
| 100 | XdmfArrayList* XdmfArrayListClass::AddArray() |
| 101 | { |
| 102 | XdmfArrayList* res = 0; |
| 103 | if( this->ListIndex >= this->ListLength ){ |
| 104 | XdmfArrayList *NewList = new XdmfArrayList[ this->ListLength + 32]; |
| 105 | if( this->List != NULL ){ |
| 106 | memcpy( NewList, this->List, this->ListLength * sizeof( XdmfArrayList )); |
| 107 | delete [] this->List; |
| 108 | } |
| 109 | this->List = NewList; |
| 110 | this->ListLength += 32; |
| 111 | } |
| 112 | res = this->List + this->ListIndex; |
| 113 | this->ListIndex++; |
| 114 | return res; |
| 115 | } |
| 116 | |
| 117 | void XdmfArrayListClass::RemoveArray(XdmfArray* array) |
| 118 | { |
no outgoing calls