From 30cd6bf2fbcadf214179f2865e7347d4d9443e8a Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 23 Mar 2024 22:24:34 +0800 Subject: [PATCH] Added few functions in SeriesPool<>. --- inc/hgl/type/SeriesPool.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/hgl/type/SeriesPool.h b/inc/hgl/type/SeriesPool.h index 6589feb..72105d0 100644 --- a/inc/hgl/type/SeriesPool.h +++ b/inc/hgl/type/SeriesPool.h @@ -1,5 +1,5 @@ #pragma once -//#include +#include namespace hgl { @@ -18,7 +18,11 @@ namespace hgl public: - const int GetMaxCount()const{return max_count;} + const T * GetRawData ()const{return series_data;} ///<取得原始数据指针 + + const T GetMaxCount ()const{return max_count;} ///<取得最大数量 + const T GetFreeCount()const{return access-series_data;} ///<取得空闲数量 + const T GetUseCount ()const{return end-access;} ///<取得使用数量 public: