Google は、黒人コミュニティのための人種的公平の促進に取り組んでいます。
詳細をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
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.
パブリック関数
Get
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.
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。OPENTHREAD および関連するマークは Thread Group の商標であり、ライセンスに基づいて使用されています。
最終更新日 2025-07-24 UTC。
[[["わかりやすい","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 UTC。"],[],[]]