Merge branch 'archive_table' into 'master'

archive Table

See merge request jschoeberl/netgen!396
This commit is contained in:
Christopher Lackner 2021-07-17 11:50:50 +00:00
commit 117095823e

View File

@ -168,6 +168,13 @@ namespace ngcore
Swap (data, tab2.data);
}
void DoArchive(Archive& ar)
{
ar & size;
ar.Do(index, size+1);
ar.Do(data, index[size]);
}
NETGEN_INLINE Table & operator= (Table && tab2)
{
mt.Swap(GetMemUsage(), tab2.mt, tab2.GetMemUsage());