Everett
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
everett::persistent_engine< Core, Ids >::contribution_type Struct Reference

#include <connection.h>

Classes

struct  borrowed
 

Public Types

using value_type = std::variant< ordinary_contribution, prepared_transaction, borrowed >
 

Public Member Functions

 contribution_type (ordinary_contribution input)
 
 contribution_type (prepared_transaction input)
 
 contribution_type (borrowed input)
 
 contribution_type (contribution_type const &)=delete
 
contribution_type & operator= (contribution_type const &)=delete
 
 contribution_type (contribution_type &&other)
 
contribution_type & operator= (contribution_type &&)=delete
 

Static Public Member Functions

template<class C >
requires std::constructible_from<ordinary_contribution, C &&>
static contribution_type borrow (C &&input)
 

Public Attributes

value_type value
 

Static Private Member Functions

static auto take (contribution_type &other) -> value_type
 

Member Typedef Documentation

◆ value_type

template<class Core = active_engine<>, class Ids = random_object_ids>
using everett::persistent_engine< Core, Ids >::contribution_type::value_type = std::variant<ordinary_contribution, prepared_transaction, borrowed>

Constructor & Destructor Documentation

◆ contribution_type() [1/5]

template<class Core = active_engine<>, class Ids = random_object_ids>
everett::persistent_engine< Core, Ids >::contribution_type::contribution_type ( ordinary_contribution  input)
inline

◆ contribution_type() [2/5]

template<class Core = active_engine<>, class Ids = random_object_ids>
everett::persistent_engine< Core, Ids >::contribution_type::contribution_type ( prepared_transaction  input)
inline

◆ contribution_type() [3/5]

template<class Core = active_engine<>, class Ids = random_object_ids>
everett::persistent_engine< Core, Ids >::contribution_type::contribution_type ( borrowed  input)
inlineexplicit

◆ contribution_type() [4/5]

template<class Core = active_engine<>, class Ids = random_object_ids>
everett::persistent_engine< Core, Ids >::contribution_type::contribution_type ( contribution_type const &  )
delete

◆ contribution_type() [5/5]

template<class Core = active_engine<>, class Ids = random_object_ids>
everett::persistent_engine< Core, Ids >::contribution_type::contribution_type ( contribution_type &&  other)
inline

Member Function Documentation

◆ borrow()

template<class Core = active_engine<>, class Ids = random_object_ids>
template<class C >
requires std::constructible_from<ordinary_contribution, C &&>
static contribution_type everett::persistent_engine< Core, Ids >::contribution_type::borrow ( C &&  input)
inlinestatic

◆ operator=() [1/2]

template<class Core = active_engine<>, class Ids = random_object_ids>
contribution_type & everett::persistent_engine< Core, Ids >::contribution_type::operator= ( contribution_type &&  )
delete

◆ operator=() [2/2]

template<class Core = active_engine<>, class Ids = random_object_ids>
contribution_type & everett::persistent_engine< Core, Ids >::contribution_type::operator= ( contribution_type const &  )
delete

◆ take()

template<class Core = active_engine<>, class Ids = random_object_ids>
static auto everett::persistent_engine< Core, Ids >::contribution_type::take ( contribution_type &  other) -> value_type
inlinestaticprivate

Member Data Documentation

◆ value

template<class Core = active_engine<>, class Ids = random_object_ids>
value_type everett::persistent_engine< Core, Ids >::contribution_type::value

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