透過集合功能整理內容 你可以依據偏好儲存及分類內容。

nl::Weave::系統::物件集區

#include <src/system/SystemObject.h>

A class template used for allocating Object subclass objects from an ObjectArena<> template union.

總結

詳細資料
範本參數
T
要在區域分配的 Object 子類別。
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.

取得統計資料

void GetStatistics(
  nl::Weave::System::Stats::count_t & aNumInUse,
  nl::Weave::System::Stats::count_t & aHighWatermark
)

嘗試建立

T * TryCreate(
  Layer & aLayer
)

Tries to initially retain the first object in the pool that is not retained by any layer.