cds  2.3.2
cds::container::bronson_avltree::traits Struct Reference

BronsonAVLTreeMap traits More...

#include <cds/container/details/bronson_avltree_base.h>

Public Types

typedef opt::none compare
 Key comparison functor. More...
 
typedef opt::none less
 Specifies binary predicate used for key compare. More...
 
typedef CDS_DEFAULT_ALLOCATOR node_allocator
 Allocator for internal node.
 
typedef CDS_DEFAULT_ALLOCATOR allocator
 Allocator for node's value (not used in BronsonAVLTreeMap<RCU, Key, T*, Traits> specialisation)
 
typedef opt::v::delete_disposer disposer
 Disposer (only for pointer-oriented tree specialization) More...
 
typedef cds::sync::injecting_monitor< cds::sync::spinsync_monitor
 Synchronization monitor type for node-level locking
 
typedef atomicity::empty_item_counter item_counter
 Item counter. More...
 
typedef opt::v::relaxed_ordering memory_model
 C++ memory ordering model. More...
 
typedef empty_stat stat
 Internal statistics. More...
 
typedef cds::backoff::empty back_off
 Back-off strategy.
 
typedef cds::opt::v::rcu_throw_deadlock rcu_check_deadlock
 RCU deadlock checking policy. More...
 

Static Public Attributes

static bool const relaxed_insert = false
 Enable relaxed insertion. More...
 

Detailed Description

BronsonAVLTreeMap traits

Note that there are two main specialization of Bronson et al AVL-tree:

Depends on tree specialization, different traits member can be used.

Member Typedef Documentation

◆ compare

Key comparison functor.

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

See cds::opt::compare option description for functor interface.

You should provide compare or less functor.

◆ disposer

typedef opt::v::delete_disposer cds::container::bronson_avltree::traits::disposer

Disposer (only for pointer-oriented tree specialization)

The functor used for dispose removed values. The user-provided disposer is used only for pointer-oriented tree specialization like BronsonAVLTreeMap<GC, Key, T*, Traits>. When the node becomes the routing node without value, the disposer will be called to signal that the memory for the value can be safely freed. Default is cds::container::opt::v::delete_disposer<> which calls delete operator.

◆ item_counter

◆ less

Specifies binary predicate used for key compare.

See cds::opt::less option description for predicate interface.

You should provide compare or less functor.

◆ memory_model

C++ memory ordering model.

List of available memory ordering see opt::memory_model

◆ rcu_check_deadlock

◆ stat

Internal statistics.

By default, internal statistics is disabled (bronson_avltree::empty_stat). To enable it use bronson_avltree::stat.

Field Documentation

◆ relaxed_insert

bool const cds::container::bronson_avltree::traits::relaxed_insert = false
static

Enable relaxed insertion.

About relaxed insertion see bronson_avltree::relaxed_insert option. By default, this option is disabled.


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:30 by Doxygen 1.8.13