cds  2.3.2
cds::intrusive::lazy_list::traits Struct Reference

LazyList traits. More...

#include <cds/intrusive/details/lazy_list_base.h>

Public Types

typedef base_hook hook
 Hook used. More...
 
typedef opt::none compare
 Key comparing functor. More...
 
typedef opt::none less
 Specifies binary predicate used for comparing keys. More...
 
typedef opt::none equal_to
 Specifies binary functor used for comparing keys for equality (for unordered list only) More...
 
typedef cds::backoff::Default back_off
 Back-off strategy.
 
typedef opt::v::empty_disposer disposer
 Disposer for removing items.
 
typedef atomicity::empty_item_counter item_counter
 Item counting feature; by default, disabled. Use cds::atomicity::item_counter or atomicity::cache_friendly_item_counter to enable item counting.
 
typedef empty_stat stat
 Internal statistics. More...
 
typedef opt::v::relaxed_ordering memory_model
 C++ memory ordering model. More...
 
typedef opt::v::rcu_throw_deadlock rcu_check_deadlock
 RCU deadlock checking policy (only for RCU-based LazyList) More...
 

Static Public Attributes

static const bool sort = true
 Specifies list ordering policy. More...
 
static const opt::link_check_type link_checker = opt::debug_check_link
 Link fields checking feature. More...
 

Detailed Description

LazyList traits.

Member Typedef Documentation

◆ compare

Key comparing functor.

No default functor is provided. If the functor is not specified, the less is used.

◆ equal_to

Specifies binary functor used for comparing keys for equality (for unordered list only)

If equal_to option is not specified, compare is used, if compare is not specified, less is used, if less is not specified, then std::equal_to<T> is used.

◆ hook

◆ less

Specifies binary predicate used for comparing keys.

Default is std::less<T>.

◆ memory_model

C++ memory ordering model.

Can be opt::v::relaxed_ordering (relaxed memory model, the default) or opt::v::sequential_consistent (sequentially consisnent memory model).

◆ rcu_check_deadlock

RCU deadlock checking policy (only for RCU-based LazyList)

List of available options see opt::rcu_check_deadlock

◆ stat

Internal statistics.

By default, internal statistics is disabled (lazy_list::empty_stat). Use lazy_list::stat to enable it.

Field Documentation

◆ link_checker

const opt::link_check_type cds::intrusive::lazy_list::traits::link_checker = opt::debug_check_link
static

Link fields checking feature.

Default is opt::debug_check_link

◆ sort

const bool cds::intrusive::lazy_list::traits::sort = true
static

Specifies list ordering policy.

If sort is true, than list maintains items in sorted order, otherwise the list is unordered. Default is true. Note that if sort is false, than lookup operations scan entire list.


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

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:44 by Doxygen 1.8.13