rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
ripple::SHAMapItem Class Reference

#include <SHAMapItem.h>

Inheritance diagram for ripple::SHAMapItem:
Inheritance graph
[legend]
Collaboration diagram for ripple::SHAMapItem:
Collaboration graph
[legend]

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
 

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< SHAMapItemmake_shamapitem (uint256 const &tag, Slice data)
 

Detailed Description

Definition at line 35 of file SHAMapItem.h.

Constructor & Destructor Documentation

◆ SHAMapItem() [1/4]

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

Definition at line 65 of file SHAMapItem.h.

◆ SHAMapItem() [2/4]

ripple::SHAMapItem::SHAMapItem ( )
delete

◆ SHAMapItem() [3/4]

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

◆ SHAMapItem() [4/4]

ripple::SHAMapItem::SHAMapItem ( SHAMapItem &&  other)
delete

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ key()

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

Definition at line 88 of file SHAMapItem.h.

◆ size()

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

Definition at line 94 of file SHAMapItem.h.

◆ data()

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

Definition at line 100 of file SHAMapItem.h.

◆ slice()

Slice ripple::SHAMapItem::slice ( ) const

Definition at line 106 of file SHAMapItem.h.

◆ getCounter()

static auto & ripple::CountedObject< SHAMapItem >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 129 of file CountedObject.h.

Friends And Related Symbol Documentation

◆ intrusive_ptr_add_ref

void intrusive_ptr_add_ref ( SHAMapItem const *  x)
friend

Definition at line 132 of file SHAMapItem.h.

◆ intrusive_ptr_release

void intrusive_ptr_release ( SHAMapItem const *  x)
friend

Definition at line 141 of file SHAMapItem.h.

◆ make_shamapitem

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

Definition at line 161 of file SHAMapItem.h.

Member Data Documentation

◆ tag_

uint256 const ripple::SHAMapItem::tag_
private

Definition at line 51 of file SHAMapItem.h.

◆ size_

std::uint32_t const ripple::SHAMapItem::size_
private

Definition at line 56 of file SHAMapItem.h.

◆ refcount_

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

Definition at line 59 of file SHAMapItem.h.