|
hpp-pinocchio
4.15.1
Wrapping of the kinematic/dynamic chain Pinocchio for HPP.
|
#include <hpp/pinocchio/pool.hh>
Public Member Functions | |
| T * | acquire () |
| void | release (T *t) |
| 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) |
| template<class InputIterator > | |
| void | push_back (InputIterator first, InputIterator last) |
| ~Pool () | |
| 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 |