added GetRawData() and GetSeries() functions in DataStackPool<>

This commit is contained in:
hyzboy 2024-03-24 00:52:46 +08:00
parent 214b9bb66b
commit 182f307541

View File

@ -6,7 +6,8 @@
namespace hgl namespace hgl
{ {
/** /**
* () * ()<br>
*
*/ */
template<typename T> class DataStackPool template<typename T> class DataStackPool
{ {
@ -16,6 +17,11 @@ namespace hgl
T *end; ///<结束指针 T *end; ///<结束指针
SeriesInt series; ///<序号池 SeriesInt series; ///<序号池
public:
T *GetRawData()const{return data_array;} ///<取得原始数据指针
SeriesInt *GetSeries(){return &series;} ///<取得序号池
public: public:
DataStackPool(const int max_count):series(max_count) DataStackPool(const int max_count):series(max_count)