archive Table

This commit is contained in:
Christopher Lackner 2021-07-17 12:48:59 +02:00
parent a89cf0089a
commit 6f044faaba

View File

@ -168,6 +168,13 @@ namespace ngcore
Swap (data, tab2.data); 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) NETGEN_INLINE Table & operator= (Table && tab2)
{ {
mt.Swap(GetMemUsage(), tab2.mt, tab2.GetMemUsage()); mt.Swap(GetMemUsage(), tab2.mt, tab2.GetMemUsage());