STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::runtime::block_registry< Key, Mapped > Class Template Reference

Implements a registry that allows registration of ranges (blocks) of keys to be used by an entity that has a unique id. More...

Public Member Functions

 block_registry (const size_type id, const size_type num_ids)
 
block_registryoperator= (block_registry &&other)
 
bool empty (void) const
 
size_type find_id (const key_type key) const noexcept
 Returns the id that the key belongs to.
 
key_type reserve_id (void)
 
void insert (const key_type key, value_type const &value)
 
void erase (const key_type key)
 
value_type const & retrieve (const key_type key) const
 
bool try_retrieve (const key_type key, value_type &value) const
 

Public Types

typedef Key key_type
 
typedef Mapped value_type
 
typedef std::size_t size_type
 

Detailed Description

template<typename Key, typename Mapped>
class stapl::runtime::block_registry< Key, Mapped >

Implements a registry that allows registration of ranges (blocks) of keys to be used by an entity that has a unique id.


The documentation for this class was generated from the following file: