![]() |
MySQL 9.3.0
Source Code Documentation
|
Helper class to handle polyglot values made permanent. More...
#include <polyglot_store.h>
Public Member Functions | |
Store ()=default | |
Store (poly_thread thread) noexcept | |
Store (poly_thread thread, poly_handle object) | |
Store (const Store &other)=delete | |
Store & | operator= (const Store &other)=delete |
Store (Store &&other) noexcept | |
Store & | operator= (Store &&other) noexcept |
~Store () noexcept | |
Store & | reset (bool throw_on_error=true) |
Store & | operator= (std::nullptr_t) |
operator bool () const | |
poly_reference | get () const noexcept |
poly_thread | thread () const |
Private Attributes | |
poly_thread | m_thread = nullptr |
poly_reference | m_reference = nullptr |
Helper class to handle polyglot values made permanent.
An instance of this class will create a polyglot reference for the given value, making it permanent and available even across contexts.
On destruction the created reference will be removed making the value subject for garbage collection if no additional references are held.
|
default |
|
inlineexplicitnoexcept |
shcore::polyglot::Store::Store | ( | poly_thread | thread, |
poly_handle | object | ||
) |
|
delete |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicit |
|
inline |
Store & shcore::polyglot::Store::reset | ( | bool | throw_on_error = true | ) |
|
inline |
|
private |
|
private |