DataPool is a data pool, used for recycling data. More...
Public Member Functions | |
| T * | createData () |
| Allocates a data from unallocated pool. More... | |
| void | lockLatestData () |
| Push current data into unallocated pool. | |
| void | lockData (T *data) |
| Push the specified data into unallocated pool. More... | |
| void | lockAllDatas () |
| Push all allocated datas into unallocated pool. | |
| T * | getFirst () |
| Get the first data of allocated pool. More... | |
| T * | getNext () |
| Get the next data of allocated pool. More... | |
| const PoolList & | getActiveDataList () const |
| Get the allocated pool. More... | |
| var | getActiveDataList () |
| Get the allocated pool. More... | |
| local | getActiveDataList () |
| Get the allocated pool. More... | |
| const PoolList & | getUnActiveDataList () const |
| Get the unallocated pool. More... | |
| void | addData (T *data) |
| add a new data into unallocated pool. | |
| bool | empty () const |
| To determine whether the allocated pool is empty. | |
| void | removeAllDatas () |
| Remove all datas. | |
DataPool is a data pool, used for recycling data.
|
inline |
Allocates a data from unallocated pool.
A allocated data.
|
inline |
Allocates a data from unallocated pool.
A allocated data.
|
inline |
Allocates a data from unallocated pool.
A allocated data.
|
inline |
Push the specified data into unallocated pool.
The pointer of data.
|
inline |
Push the specified data into unallocated pool.
The pointer of data.
|
inline |
Push the specified data into unallocated pool.
The pointer of data.
|
inline |
Get the first data of allocated pool.
The pointer of data.
|
inline |
Get the first data of allocated pool.
The pointer of data.
|
inline |
Get the first data of allocated pool.
The pointer of data.
|
inline |
Get the next data of allocated pool.
The pointer of data.
|
inline |
Get the next data of allocated pool.
The pointer of data.
|
inline |
Get the next data of allocated pool.
The pointer of data.
|
inline |
Get the allocated pool.
The allocated pool.
|
inline |
Get the allocated pool.
The allocated pool.
|
inline |
Get the allocated pool.
The allocated pool.
|
inline |
Get the unallocated pool.
The unallocated pool.
|
inline |
Get the unallocated pool.
The unallocated pool.
|
inline |
Get the unallocated pool.
The unallocated pool.