ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation::dgp::domain::detail::domain_create_txn Class Reference

Transactional domain creation. More...

Inheritance diagram for zxfoundation::dgp::domain::detail::domain_create_txn:
[legend]
Collaboration diagram for zxfoundation::dgp::domain::detail::domain_create_txn:
[legend]

Public Member Functions

auto execute (const char *name) noexcept -> std::expected< domain *, lib::kernel_error >
 Execute the domain creation.
Public Member Functions inherited from zxfoundation::base::transaction< domain_create_txn >
auto commit () noexcept -> void
 Commit — disarms the automatic rollback on destruction.
auto committed () const noexcept -> bool
 Return true if commit() has been called.
auto mark_rolled_back () noexcept -> void
 Explicitly mark as rolled back (for derived classes that do custom rollback before destruction).
auto operator= (const transaction &)=delete
auto rolled_back () const noexcept -> bool
 Return true if rollback has been executed.

Friends

class zxfoundation::base::transaction< domain_create_txn >

Additional Inherited Members

Protected Member Functions inherited from zxfoundation::base::transaction< domain_create_txn >
 ~transaction () noexcept
 Destructor: fires on_rollback() if commit() was never called.

Detailed Description

Transactional domain creation.

Member Function Documentation

◆ execute()

auto zxfoundation::dgp::domain::detail::domain_create_txn::execute ( const char * name) ->std::expected< domain *, lib::kernel_error >
inlinenodiscardnoexcept

Execute the domain creation.

Parameters
[in]nameHuman-readable name (must remain valid for the domain's lifetime).
Returns
Pointer to the activated domain, or kernel_error.

The documentation for this class was generated from the following file:
  • zxfoundation/dgp/domain.zcomponent/core.cxx