![]() |
ATLAS Offline Software
|
Helper class which allows to dynamically grow the container list. More...
#include <ContainerList.h>
Classes | |
| struct | ContainerPtr |
| Helper which provides a pointer to a container and the index of the container in the container list. More... | |
Public Types | |
| using | T_ContainerPtr = T_Container * |
Public Member Functions | |
| void | addLargerContainerList (unsigned int container_idx, ContainerList< T_Container > &container_list) |
| If the specified entry does not exist in the container list create an extended copy which contains this entry. | |
| ContainerPtr | getNewContainer (ContainerList< T_Container > &container_list) |
| Get an unused container from the given container list. | |
Public Attributes | |
| std::mutex | m_containerListMutex |
| std::atomic< unsigned int > | m_used {} |
Helper class which allows to dynamically grow the container list.
Definition at line 88 of file ContainerList.h.
| using DynamicContainerListHelper< T_Container >::T_ContainerPtr = T_Container * |
Definition at line 89 of file ContainerList.h.
|
inline |
If the specified entry does not exist in the container list create an extended copy which contains this entry.
| container_idx | The index which specifies the container in the container list |
| container_list | the container list. If container_idx specifies a container beyond this list, the current list is copied and extended to contain the specified container. The operation is mutex protected. |
Definition at line 123 of file ContainerList.h.
|
inline |
Get an unused container from the given container list.
If the preallocated list of containers is exceeded. The container list will be extended.
Definition at line 147 of file ContainerList.h.
| std::mutex DynamicContainerListHelper< T_Container >::m_containerListMutex |
Definition at line 155 of file ContainerList.h.
| std::atomic<unsigned int> DynamicContainerListHelper< T_Container >::m_used {} |
Definition at line 156 of file ContainerList.h.