![]() |
ATLAS Offline Software
|
Holds one version of the map. More...
#include <ConcurrentRangeMap.h>
Public Member Functions | |
| Impl (size_t capacity=10) | |
| Constructor. | |
| ~Impl ()=default | |
| Destructor. | |
| value_type * | data () |
| Return a pointer to the start of the data vector. | |
| size_t | capacity () const |
| Return the size of the current data vector. | |
Private Attributes | |
| std::vector< value_type > | m_data |
| Vector holding the map data. | |
Holds one version of the map.
This object holds one version of the map. Within a single version, we can add elements to the end or remove elements from the beginning. If we need to make other changes, or to expand the map, we must make a new version and copy the contents. The UPDATER object is then used to install the new version; old versions should be kept until they are no longer referenced by any thread.
Definition at line 302 of file ConcurrentRangeMap.h.
| CxxUtils::ConcurrentRangeMap< RANGE, KEY, T, COMPARE, UPDATER >::Impl::Impl | ( | size_t | capacity = 10 | ) |
Constructor.
| capacity | Size of the data vector to allocate. |
|
default |
Destructor.
| size_t CxxUtils::ConcurrentRangeMap< RANGE, KEY, T, COMPARE, UPDATER >::Impl::capacity | ( | ) | const |
Return the size of the current data vector.
| value_type * CxxUtils::ConcurrentRangeMap< RANGE, KEY, T, COMPARE, UPDATER >::Impl::data | ( | ) |
Return a pointer to the start of the data vector.
|
private |
Vector holding the map data.
Definition at line 332 of file ConcurrentRangeMap.h.