pstore2
Public Member Functions | List of all members
pstore::serialize::archive::database_writer Class Referencefinal
Inheritance diagram for pstore::serialize::archive::database_writer:
Inheritance graph
[legend]
Collaboration diagram for pstore::serialize::archive::database_writer:
Collaboration graph
[legend]

Public Member Functions

 database_writer (transaction_base &transaction)
 Constructs the writer using the transaction. More...
 
- Public Member Functions inherited from pstore::serialize::archive::writer_base< details::database_writer_policy >
 writer_base (writer_base const &)=delete
 
 writer_base (writer_base &&) noexcept=default
 
writer_baseoperator= (writer_base &&) noexcept=default
 
writer_baseoperator= (writer_base const &)=delete
 
void flush ()
 Flushes the stream to the output.
 
std::size_t bytes_consumed () const
 Returns the number of bytes that have been written via this archive.
 
std::size_t bytes_produced () const
 Returns the number of bytes that the policy object wrote to its final destination. More...
 
auto put (Ty const &t) -> result_type
 Writes one or more instances of a standard-layout type Ty to the output. Must not be used once the stream has been flushed. More...
 
auto putn (Span sp) -> result_type
 Writes a span of values to the output. More...
 
details::database_writer_policywriter_policy () noexcept
 
details::database_writer_policy const & writer_policy () const noexcept
 

Additional Inherited Members

- Public Types inherited from pstore::serialize::archive::writer_base< details::database_writer_policy >
using policy_type = details::database_writer_policy
 
using result_type = typename policy_type::result_type
 
- Protected Member Functions inherited from pstore::serialize::archive::writer_base< details::database_writer_policy >
 writer_base (details::database_writer_policy policy=details::database_writer_policy())
 

Constructor & Destructor Documentation

◆ database_writer()

pstore::serialize::archive::database_writer::database_writer ( transaction_base transaction)
inlineexplicit

Constructs the writer using the transaction.

Parameters
transactionThe active transaction to the store to which the database_writer will write.

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