core queue type for performance and for private use only More...
#include <ZFCoreQueue.h>
Public Member Functions | |
| ZFCoreQueuePOD (void) | |
| main constructor | |
| void | objectInfoT (zfstring &ret) const |
| see objectInfo | |
| zfstring | objectInfo (void) const |
| return object info | |
| void | objectInfoOfContentT (zfstring &ret, zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault, typename ZFCoreInfoGetter< T_POD >::InfoGetter infoGetter=zft_zfnull) const |
| see objectInfoOfContent | |
| zfstring | objectInfoOfContent (zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault, typename ZFCoreInfoGetter< T_POD >::InfoGetter infoGetter=zft_zfnull) const |
| return contents info | |
| zfindex | capacity (void) const |
| get current capacity | |
| void | capacity (zfindex capacity) |
| change the capacity | |
| void | capacityTrim (void) |
| trim the buffer, call only if necessary | |
| T_POD & | add (void) |
| push element at tail of the queue, auto increase capacity if necessary | |
| void | add (T_POD const &e) |
| push element at tail of the queue, auto increase capacity if necessary | |
| template<typename T_Type> | |
| void | addFrom (const ZFCoreArray< T_Type > &arr) |
| push element at tail of the queue, auto increase capacity if necessary | |
| void | addFrom (const T_POD *buf, zfindex count) |
| push element at tail of the queue, auto increase capacity if necessary | |
| T_POD & | take (void) |
| take element at head of the queue, assert fail if empty | |
| T_POD & | takeLast (void) |
| take element at tail of the queue, assert fail if empty | |
| zfindex | count (void) const |
| element count of this array | |
| zfbool | isEmpty (void) const |
| true if empty | |
| void | removeAll (void) |
| remove all contents | |
| template<typename T_Type> | |
| void | toArrayT (ZFCoreArray< T_Type > &array) const |
| copy contents to array | |
| ZFCoreArray< T_POD > | toArray (void) const |
| copy contents to array | |
core queue type for performance and for private use only
|
inline |
get current capacity
capacity would be increased automatically during adding elements