透過集合功能整理內容
你可以依據偏好儲存及分類內容。
nl::Weave::System::ObjectPool
#include <src/system/SystemObject.h>
A class template used for allocating Object subclass objects from an ObjectArena<> template union.
摘要
| 詳細資料 |
| 範本參數 |
T
|
|
N
|
要從競技場中配置的 T 類別物件為正整數。
|
|
公開的靜態函式
|
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.
除非另有註明,否則本網頁內容採用創用 CC 姓名標示 4.0 授權,程式碼範例則採用阿帕契 2.0 授權。詳情請參閱 Google Developers 網站政策。Java 是 Oracle 和/或其關係企業的註冊商標。OpenThread 與相關的符號為 Thread Group 的商標,且經過授權使用。
上次更新時間:2025-07-24 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-24 (世界標準時間)。"],[],[]]