Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chainbase::offset_node_value_traits< Node, Tag > Struct Template Reference

#include <undo_index.hpp>

Public Types

using node_traits = offset_node_traits<Tag>
 
using node_ptr = typename node_traits::node_ptr
 
using const_node_ptr = typename node_traits::const_node_ptr
 
using value_type = typename Node::value_type
 
using pointer = value_type*
 
using const_pointer = const value_type*
 

Static Public Member Functions

static node_ptr to_node_ptr (value_type &value)
 
static const_node_ptr to_node_ptr (const value_type &value)
 
static pointer to_value_ptr (node_ptr n)
 
static const_pointer to_value_ptr (const_node_ptr n)
 

Static Public Attributes

static constexpr boost::intrusive::link_mode_type link_mode = boost::intrusive::normal_link
 

Detailed Description

template<typename Node, typename Tag>
struct chainbase::offset_node_value_traits< Node, Tag >

Definition at line 120 of file undo_index.hpp.

Member Typedef Documentation

◆ const_node_ptr

template<typename Node , typename Tag >
using chainbase::offset_node_value_traits< Node, Tag >::const_node_ptr = typename node_traits::const_node_ptr

Definition at line 123 of file undo_index.hpp.

◆ const_pointer

template<typename Node , typename Tag >
using chainbase::offset_node_value_traits< Node, Tag >::const_pointer = const value_type*

Definition at line 126 of file undo_index.hpp.

◆ node_ptr

template<typename Node , typename Tag >
using chainbase::offset_node_value_traits< Node, Tag >::node_ptr = typename node_traits::node_ptr

Definition at line 122 of file undo_index.hpp.

◆ node_traits

template<typename Node , typename Tag >
using chainbase::offset_node_value_traits< Node, Tag >::node_traits = offset_node_traits<Tag>

Definition at line 121 of file undo_index.hpp.

◆ pointer

template<typename Node , typename Tag >
using chainbase::offset_node_value_traits< Node, Tag >::pointer = value_type*

Definition at line 125 of file undo_index.hpp.

◆ value_type

template<typename Node , typename Tag >
using chainbase::offset_node_value_traits< Node, Tag >::value_type = typename Node::value_type

Definition at line 124 of file undo_index.hpp.

Member Function Documentation

◆ to_node_ptr() [1/2]

template<typename Node , typename Tag >
static const_node_ptr chainbase::offset_node_value_traits< Node, Tag >::to_node_ptr ( const value_type & value)
inlinestatic

Definition at line 131 of file undo_index.hpp.

131 {
132 return const_node_ptr{static_cast<const Node*>(boost::intrusive::get_parent_from_member(&value, &value_holder<value_type>::_item))};
133 }
#define value
Definition pkcs11.h:157
typename node_traits::const_node_ptr const_node_ptr

◆ to_node_ptr() [2/2]

template<typename Node , typename Tag >
static node_ptr chainbase::offset_node_value_traits< Node, Tag >::to_node_ptr ( value_type & value)
inlinestatic

Definition at line 128 of file undo_index.hpp.

128 {
129 return node_ptr{static_cast<Node*>(boost::intrusive::get_parent_from_member(&value, &value_holder<value_type>::_item))};
130 }
typename node_traits::node_ptr node_ptr

◆ to_value_ptr() [1/2]

template<typename Node , typename Tag >
static const_pointer chainbase::offset_node_value_traits< Node, Tag >::to_value_ptr ( const_node_ptr n)
inlinestatic

Definition at line 135 of file undo_index.hpp.

135{ return const_pointer{&static_cast<const Node*>(&*n)->_item}; }

◆ to_value_ptr() [2/2]

template<typename Node , typename Tag >
static pointer chainbase::offset_node_value_traits< Node, Tag >::to_value_ptr ( node_ptr n)
inlinestatic

Definition at line 134 of file undo_index.hpp.

134{ return pointer{&static_cast<Node*>(&*n)->_item}; }

Member Data Documentation

◆ link_mode

template<typename Node , typename Tag >
boost::intrusive::link_mode_type chainbase::offset_node_value_traits< Node, Tag >::link_mode = boost::intrusive::normal_link
staticconstexpr

Definition at line 137 of file undo_index.hpp.


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