diff --git a/CMakeLists.txt b/CMakeLists.txt index ffc2774..d785feb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,10 +68,10 @@ add_executable(PoolTest datatype/PoolTest.cpp) set_example_project_folder("DataType/DataArray" PoolTest) add_executable(ActiveIDManagerTest datatype/ActiveIDManagerTest.cpp) -set_example_project_folder("DataType/DataArray" ActiveIDManagerTest) +cm_example_project("DataType/DataArray" ActiveIDManagerTest) add_executable(ActiveDataManagerTest datatype/ActiveDataManagerTest.cpp) -set_example_project_folder("DataType/DataArray" ActiveDataManagerTest) +cm_example_project("DataType/DataArray" ActiveDataManagerTest) add_executable(MapTest datatype/MapTest.cpp) set_example_project_folder("DataType/DataArray" MapTest) diff --git a/datatype/ActiveDataManagerTest.cpp b/datatype/ActiveDataManagerTest.cpp new file mode 100644 index 0000000..518d7d4 --- /dev/null +++ b/datatype/ActiveDataManagerTest.cpp @@ -0,0 +1,121 @@ +#include +#include +#include +#include"UserInfo.h" + +using namespace hgl; +using namespace std; + +void DebugOutputArray(const char *hint,const int **id,const int count) +{ + cout<<"("< &da) +{ + DebugOutputArray(hint,ambm,da.GetData(),da.GetCount()); +} + +void DebugAIMOutput(const char *hint,const ActiveMemoryBlockManager &ambm) +{ + cout<