template <class T, unsigned int N>
class ObjectPool
Defined at line 178 of file gen/third_party/openweave-core/src/include/SystemLayer/SystemObject.h
A class template used for allocating Object subclass objects from an ObjectArena
<
> template union.
Template Parameters
Public Methods
size_t Size ()
Returns the number of objects that can be simultaneously retained from a pool.
Defined at line 203 of file gen/third_party/openweave-core/src/include/SystemLayer/SystemObject.h
T * Get (const Layer & aLayer, size_t aIndex)
Returns a pointer the object at
or
if the object is not retained by
Defined at line 213 of file gen/third_party/openweave-core/src/include/SystemLayer/SystemObject.h
T * TryCreate (Layer & aLayer)
Tries to initially retain the first object in the pool that is not retained by any layer.
Defined at line 230 of file gen/third_party/openweave-core/src/include/SystemLayer/SystemObject.h
void GetStatistics (nl::Weave::System::Stats::count_t & aNumInUse, nl::Weave::System::Stats::count_t & aHighWatermark)
Defined at line 315 of file gen/third_party/openweave-core/src/include/SystemLayer/SystemObject.h
Friends
template <class Tunsigned int N>
class TestObject