#include <hpp/pinocchio/pool.hh>
Public Member Functions | |
| T * | acquire () |
| Get an object from the pool. More... | |
| void | release (T *t) |
| Release a previously acquired object. More... | |
| bool | available () const |
| Returns true is at least one object is not locked. More... | |
| std::size_t | size () const |
| void | clear () |
| Deletes all internal objects. More... | |
| void | push_back (T *t) |
| Adds an object to the pool The pool takes ownership of the object. More... | |
| template<class InputIterator > | |
| void | push_back (InputIterator first, InputIterator last) |
| Add objects to the pool The pool takes ownership of the object. More... | |
| ~Pool () | |
| Destructor Calls Pool::clear() More... | |
| Pool () | |
| Constructor. More... | |
Pool of objects.
Usage:
|
inline |
Destructor Calls Pool::clear()
|
inline |
Constructor.
|
inline |
Get an object from the pool.
If the pool is empty, wait until one element becomes available.
|
inline |
Returns true is at least one object is not locked.
|
inline |
Deletes all internal objects.
|
inline |
Adds an object to the pool The pool takes ownership of the object.
|
inline |
Add objects to the pool The pool takes ownership of the object.
|
inline |
Release a previously acquired object.
|
inline |
Referenced by hpp::pinocchio::Pool< hpp::pinocchio::DeviceData >::Pool().