xrpld
Loading...
Searching...
No Matches
xrpl::SHAMapItem Class Reference

#include <SHAMapItem.h>

Inheritance diagram for xrpl::SHAMapItem:
Collaboration diagram for xrpl::SHAMapItem:

Public Member Functions

 SHAMapItem ()=delete
 SHAMapItem (SHAMapItem const &other)=delete
SHAMapItemoperator= (SHAMapItem const &other)=delete
 SHAMapItem (SHAMapItem &&other)=delete
SHAMapItemoperator= (SHAMapItem &&)=delete
uint256 const & key () const
std::size_t size () const
void const * data () const
Slice slice () const

Public Attributes

friend Object

Private Member Functions

 SHAMapItem (uint256 const &tag, Slice data)

Static Private Member Functions

static auto & getCounter () noexcept

Private Attributes

uint256 const tag_
std::uint32_t const size_
std::atomic< std::uint32_trefcount_ = 1

Friends

void intrusive_ptr_add_ref (SHAMapItem const *x)
void intrusive_ptr_release (SHAMapItem const *x)
boost::intrusive_ptr< SHAMapItemmakeShamapitem (uint256 const &tag, Slice data)

Detailed Description

Definition at line 15 of file SHAMapItem.h.

Constructor & Destructor Documentation

◆ SHAMapItem() [1/4]

xrpl::SHAMapItem::SHAMapItem ( uint256 const & tag,
Slice data )
private

Definition at line 45 of file SHAMapItem.h.

◆ SHAMapItem() [2/4]

xrpl::SHAMapItem::SHAMapItem ( )
delete

◆ SHAMapItem() [3/4]

xrpl::SHAMapItem::SHAMapItem ( SHAMapItem const & other)
delete

◆ SHAMapItem() [4/4]

xrpl::SHAMapItem::SHAMapItem ( SHAMapItem && other)
delete

Member Function Documentation

◆ operator=() [1/2]

SHAMapItem & xrpl::SHAMapItem::operator= ( SHAMapItem const & other)
delete

◆ operator=() [2/2]

SHAMapItem & xrpl::SHAMapItem::operator= ( SHAMapItem && )
delete

◆ key()

uint256 const & xrpl::SHAMapItem::key ( ) const

Definition at line 66 of file SHAMapItem.h.

◆ size()

std::size_t xrpl::SHAMapItem::size ( ) const

Definition at line 72 of file SHAMapItem.h.

◆ data()

void const * xrpl::SHAMapItem::data ( ) const

Definition at line 78 of file SHAMapItem.h.

◆ slice()

Slice xrpl::SHAMapItem::slice ( ) const

Definition at line 84 of file SHAMapItem.h.

◆ getCounter()

auto & xrpl::CountedObject< SHAMapItem >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

◆ intrusive_ptr_add_ref

void intrusive_ptr_add_ref ( SHAMapItem const * x)
friend

Definition at line 110 of file SHAMapItem.h.

◆ intrusive_ptr_release

void intrusive_ptr_release ( SHAMapItem const * x)
friend

Definition at line 119 of file SHAMapItem.h.

◆ makeShamapitem

boost::intrusive_ptr< SHAMapItem > makeShamapitem ( uint256 const & tag,
Slice data )
friend

Definition at line 139 of file SHAMapItem.h.

Member Data Documentation

◆ tag_

uint256 const xrpl::SHAMapItem::tag_
private

Definition at line 31 of file SHAMapItem.h.

◆ size_

std::uint32_t const xrpl::SHAMapItem::size_
private

Definition at line 36 of file SHAMapItem.h.

◆ refcount_

std::atomic<std::uint32_t> xrpl::SHAMapItem::refcount_ = 1
mutableprivate

Definition at line 39 of file SHAMapItem.h.

◆ Object

Definition at line 134 of file CountedObject.h.