nl:: بافت:: سیستم:: ObjectPool
#include <src/system/SystemObject.h>
A class template used for allocating Object subclass objects from an ObjectArena<> template union.
خلاصه
جزئیات | |||||
---|---|---|---|---|---|
پارامترهای قالب |
|
توابع استاتیک عمومی | |
---|---|
Size (void) | size_t Returns the number of objects that can be simultaneously retained from a pool. |
توابع عمومی | |
---|---|
Get (const Layer & aLayer, size_t aIndex) | T * Returns a pointer the object at \c aIndex or \c NULL if the object is not retained by \c aLayer. |
GetStatistics (nl::Weave::System::Stats::count_t & aNumInUse, nl::Weave::System::Stats::count_t & aHighWatermark) | void |
TryCreate ( Layer & aLayer) | T * Tries to initially retain the first object in the pool that is not retained by any layer. |
توابع استاتیک عمومی
اندازه
size_t Size( void )
Returns the number of objects that can be simultaneously retained from a pool.
توابع عمومی
گرفتن
T * Get( const Layer & aLayer, size_t aIndex )
Returns a pointer the object at \c aIndex or \c NULL if the object is not retained by \c aLayer.
GetStatistics
void GetStatistics( nl::Weave::System::Stats::count_t & aNumInUse, nl::Weave::System::Stats::count_t & aHighWatermark )
TryCreate را امتحان کنید
T * TryCreate( Layer & aLayer )
Tries to initially retain the first object in the pool that is not retained by any layer.
جز در مواردی که غیر از این ذکر شده باشد، محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است و نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است. Thread علامت تجاری ثبتشده Thread Group, Inc است.
تاریخ آخرین بهروزرسانی 2023-12-01 بهوقت ساعت هماهنگ جهانی.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"اطلاعاتی که نیاز دارم وجود ندارد"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"بیشازحد پیچیده/ مراحل بسیار زیاد"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"قدیمی"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"مشکل ترجمه"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشکل کد / نمونهها"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غیره"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"درک آسان"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"مشکلم را برطرف کرد"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غیره"
}]