rippled
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
ripple::SHAMapItem Class Reference
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

const uint256 tag_
 
const std::uint32_t 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 34 of file SHAMapItem.h.

Constructor & Destructor Documentation

◆ SHAMapItem() [1/4]

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

Definition at line 64 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 87 of file SHAMapItem.h.

◆ size()

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

Definition at line 93 of file SHAMapItem.h.

◆ data()

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

Definition at line 99 of file SHAMapItem.h.

◆ slice()

Slice ripple::SHAMapItem::slice ( ) const

Definition at line 105 of file SHAMapItem.h.

◆ getCounter()

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

Definition at line 128 of file CountedObject.h.

Friends And Related Function Documentation

◆ intrusive_ptr_add_ref

void intrusive_ptr_add_ref ( SHAMapItem const *  x)
friend

Definition at line 131 of file SHAMapItem.h.

◆ intrusive_ptr_release

void intrusive_ptr_release ( SHAMapItem const *  x)
friend

Definition at line 140 of file SHAMapItem.h.

◆ make_shamapitem

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

Definition at line 160 of file SHAMapItem.h.

Member Data Documentation

◆ tag_

const uint256 ripple::SHAMapItem::tag_
private

Definition at line 50 of file SHAMapItem.h.

◆ size_

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

Definition at line 55 of file SHAMapItem.h.

◆ refcount_

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

Definition at line 58 of file SHAMapItem.h.