#include <HandleManager.hh>
Public Member Functions | |
| HandleManager (T) | |
| Constructor with init value. | |
| HandleManager (T init, size_t hmax) | |
| Constructor with init value and max. | |
| T | provide () throw (RTIinternalError) |
| Get a new handle. | |
| void | free (T handle) |
| Free a handle. | |
Private Attributes | |
| size_t | maximum |
| T | highest |
| std::list< T > | available |
Freed handles may be provided again in a future request.
Definition at line 43 of file HandleManager.hh.
| HandleManager | ( | T | init | ) | [inline] |
Constructor with init value.
The default maximal value will be based on the type max given by numeric_limits traits.
| [in] | init | Initial handle value (use for first requested handle) |
Definition at line 81 of file HandleManager.hh.
| HandleManager | ( | T | init, | |
| size_t | hmax | |||
| ) | [inline] |
Constructor with init value and max.
| [in] | init | Initial handle value (use for first requested handle) |
| [in] | hmax | Maximal handle value |
Definition at line 85 of file HandleManager.hh.
| T provide | ( | ) | throw (RTIinternalError) [inline] |
Get a new handle.
| RTIinternalError | if all handles between first and maximal are used |
Definition at line 89 of file HandleManager.hh.
References HandleManager::available, HandleManager::highest, and HandleManager::maximum.
Referenced by RTIG::processCreateFederation().
| void free | ( | T | handle | ) | [inline] |
Free a handle.
| handle | Handle to free |
Definition at line 108 of file HandleManager.hh.
Referenced by RTIG::processDestroyFederation().
size_t maximum [private] |
T highest [private] |
std::list<T> available [private] |
1.5.5