27 template <
typename T>
inline void copyConf(
28 const T* source, T* destination,
31 memcpy(destination, source, dim*
sizeof(T));
38 const int dim, tabSize;
39 std::vector<T*> prevTabs;
41 Allocator(
const int dim,
const int tabSize = 10000);
50 if (currentId >= tabSize)
53 return &(currentTab[ currentId * dim ]);
56 inline T* makeCopy(
const T* conf)
58 T* currentPlace = newConf();
59 copyConf<T>( conf, currentPlace, dim );
64 inline T* makeExternalCopy(
const T* conf)
67 copyConf( conf, res, dim );