Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::shared_blob Class Reference

#include <types.hpp>

Inheritance diagram for sysio::chain::shared_blob:
Collaboration diagram for sysio::chain::shared_blob:

Public Member Functions

 shared_blob ()=delete
 
 shared_blob (shared_blob &&)=default
 
 shared_blob (const shared_blob &s)=default
 
shared_bloboperator= (const shared_blob &s)=default
 
shared_bloboperator= (shared_blob &&)=default
 
template<typename InputIterator >
 shared_blob (InputIterator f, InputIterator l, const allocator_type &a)
 
 shared_blob (const allocator_type &a)
 
- Public Member Functions inherited from chainbase::shared_cow_string
 shared_cow_string (const allocator_type &alloc)
 
template<typename Iter >
 shared_cow_string (Iter begin, Iter end, const allocator_type &alloc)
 
 shared_cow_string (const char *ptr, std::size_t size, const allocator_type &alloc)
 
 shared_cow_string (std::size_t size, boost::container::default_init_t, const allocator_type &alloc)
 
 shared_cow_string (const shared_cow_string &other)
 
 shared_cow_string (shared_cow_string &&other)
 
shared_cow_stringoperator= (const shared_cow_string &other)
 
shared_cow_stringoperator= (shared_cow_string &&other)
 
 ~shared_cow_string ()
 
void resize (std::size_t new_size, boost::container::default_init_t)
 
template<typename F >
void resize_and_fill (std::size_t new_size, F &&f)
 
void assign (const char *ptr, std::size_t size)
 
void assign (const unsigned char *ptr, std::size_t size)
 
const char * data () const
 
std::size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
int compare (std::size_t start, std::size_t count, const char *other, std::size_t other_size) const
 
bool operator== (const shared_cow_string &rhs) const
 
bool operator!= (const shared_cow_string &rhs) const
 
const allocator_typeget_allocator () const
 

Additional Inherited Members

- Public Types inherited from chainbase::shared_cow_string
using allocator_type = bip::allocator<char, pinnable_mapped_file::segment_manager>
 
using iterator = const char*
 
using const_iterator = const char*
 

Detailed Description

For bugs in boost interprocess we moved our blob data to shared_string this wrapper allows us to continue that while also having a type-level distinction for serialization and to/from variant

Definition at line 96 of file types.hpp.

Constructor & Destructor Documentation

◆ shared_blob() [1/5]

sysio::chain::shared_blob::shared_blob ( )
delete

◆ shared_blob() [2/5]

sysio::chain::shared_blob::shared_blob ( shared_blob && )
default

◆ shared_blob() [3/5]

sysio::chain::shared_blob::shared_blob ( const shared_blob & s)
default

◆ shared_blob() [4/5]

template<typename InputIterator >
sysio::chain::shared_blob::shared_blob ( InputIterator f,
InputIterator l,
const allocator_type & a )
inline

Definition at line 109 of file types.hpp.

111 {}
chainbase::shared_string shared_string
Definition types.hpp:83
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
int l

◆ shared_blob() [5/5]

sysio::chain::shared_blob::shared_blob ( const allocator_type & a)
inline

Definition at line 113 of file types.hpp.

115 {}

Member Function Documentation

◆ operator=() [1/2]

shared_blob & sysio::chain::shared_blob::operator= ( const shared_blob & s)
default

◆ operator=() [2/2]

shared_blob & sysio::chain::shared_blob::operator= ( shared_blob && )
default

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