libcopp  1.2.0
Public Types | Public Member Functions | Static Public Attributes
cotask::core::standard_int_id_allocator< TKey > Class Template Reference

#include <standard_int_id_allocator.h>

Collaboration diagram for cotask::core::standard_int_id_allocator< TKey >:
Collaboration graph

Public Types

typedef cotask::impl::id_allocator< TKey > base_type
 
typedef base_type::value_type value_type
 

Public Member Functions

value_type allocate () UTIL_CONFIG_NOEXCEPT
 
void deallocate (value_type) UTIL_CONFIG_NOEXCEPT
 

Static Public Attributes

static const value_type npos = 0
 

Detailed Description

template<typename TKey = uint64_t>
class cotask::core::standard_int_id_allocator< TKey >

allocate a id of specify type

Note
we guarantee id will not repeated for a short time. the time depennd the length of TKey.

Definition at line 31 of file standard_int_id_allocator.h.

Member Typedef Documentation

template<typename TKey = uint64_t>
typedef cotask::impl::id_allocator<TKey> cotask::core::standard_int_id_allocator< TKey >::base_type

Definition at line 33 of file standard_int_id_allocator.h.

template<typename TKey = uint64_t>
typedef base_type::value_type cotask::core::standard_int_id_allocator< TKey >::value_type

Definition at line 34 of file standard_int_id_allocator.h.

Member Function Documentation

template<typename TKey = uint64_t>
value_type cotask::core::standard_int_id_allocator< TKey >::allocate ( )
inline
template<typename TKey = uint64_t>
void cotask::core::standard_int_id_allocator< TKey >::deallocate ( value_type  )
inline

Definition at line 74 of file standard_int_id_allocator.h.

Field Documentation

template<typename TKey = uint64_t>
const value_type cotask::core::standard_int_id_allocator< TKey >::npos = 0
static

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