MySQL 9.3.0
Source Code Documentation
shcore::polyglot::Polyglot_scope Class Referencefinal

Utility class to create a polyglot handle scope which is wiped out as soon as the instance goes out of scope in C++, this is used to avoid polluting the main scope with references preventing garbage collection from cleaning no longer needed objects. More...

#include <polyglot_scope.h>

Public Member Functions

 Polyglot_scope ()=delete
 
 Polyglot_scope (poly_thread thread)
 
 Polyglot_scope (const Polyglot_scope &)=delete
 
Polyglot_scopeoperator= (const Polyglot_scope &)=delete
 
 Polyglot_scope (Polyglot_scope &&)=delete
 
Polyglot_scopeoperator= (Polyglot_scope &&)=delete
 
void close ()
 
 ~Polyglot_scope ()
 

Private Attributes

poly_thread m_thread
 
bool m_open = false
 

Detailed Description

Utility class to create a polyglot handle scope which is wiped out as soon as the instance goes out of scope in C++, this is used to avoid polluting the main scope with references preventing garbage collection from cleaning no longer needed objects.

Constructor & Destructor Documentation

◆ Polyglot_scope() [1/4]

shcore::polyglot::Polyglot_scope::Polyglot_scope ( )
delete

◆ Polyglot_scope() [2/4]

shcore::polyglot::Polyglot_scope::Polyglot_scope ( poly_thread  thread)
explicit

◆ Polyglot_scope() [3/4]

shcore::polyglot::Polyglot_scope::Polyglot_scope ( const Polyglot_scope )
delete

◆ Polyglot_scope() [4/4]

shcore::polyglot::Polyglot_scope::Polyglot_scope ( Polyglot_scope &&  )
delete

◆ ~Polyglot_scope()

shcore::polyglot::Polyglot_scope::~Polyglot_scope ( )
inline

Member Function Documentation

◆ close()

void shcore::polyglot::Polyglot_scope::close ( )

◆ operator=() [1/2]

Polyglot_scope & shcore::polyglot::Polyglot_scope::operator= ( const Polyglot_scope )
delete

◆ operator=() [2/2]

Polyglot_scope & shcore::polyglot::Polyglot_scope::operator= ( Polyglot_scope &&  )
delete

Member Data Documentation

◆ m_open

bool shcore::polyglot::Polyglot_scope::m_open = false
private

◆ m_thread

poly_thread shcore::polyglot::Polyglot_scope::m_thread
private

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