From 59f82d222f9493d4e11764dae92fa2da6f134485 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 23 Mar 2024 22:22:13 +0800 Subject: [PATCH] added a new example that it's util/SeriesPoolTest.cpp, and then TEST OK! --- utils/SeriesPoolTest.cpp | 119 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 116 insertions(+), 3 deletions(-) diff --git a/utils/SeriesPoolTest.cpp b/utils/SeriesPoolTest.cpp index a8285b6..c207be6 100644 --- a/utils/SeriesPoolTest.cpp +++ b/utils/SeriesPoolTest.cpp @@ -1,17 +1,130 @@ #include +#include +#include #include -#include +#include +#include using namespace std; using namespace hgl; constexpr int POOL_MAX_COUNT=10; +template void out_series_pool(const SeriesPool &sp) +{ + const int free_count=sp.GetFreeCount(); + + cout<<"Series Pool("<0)cout<<","; + cout< void out_list(const List &l) +{ + cout<<"List("<0)cout<<","; + cout< tmp_list; //临时序列号列表 - cout<<"Series pool MaxCount="<