NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSQLITE_StatementLock Class Reference

Search Toolkit Book for CSQLITE_StatementLock

"Scoped" statement activity object. More...

#include <db/sqlite/sqlitewrapp.hpp>

+ Collaboration diagram for CSQLITE_StatementLock:

Public Member Functions

 CSQLITE_StatementLock (CSQLITE_Statement *stmt)
 Bind activity control to the given statement. More...
 
 ~CSQLITE_StatementLock (void)
 
CSQLITE_Statementoperator* (void)
 Smart pointer's transformation. More...
 
CSQLITE_Statementoperator-> (void)
 Smart pointer's transformation. More...
 
 operator CSQLITE_Statement * (void)
 Smart pointer's transformation. More...
 

Private Member Functions

 CSQLITE_StatementLock (const CSQLITE_StatementLock &)
 
CSQLITE_StatementLockoperator= (const CSQLITE_StatementLock &)
 

Private Attributes

CSQLITE_Statementm_Stmt
 Statement this object is bound to. More...
 

Detailed Description

"Scoped" statement activity object.

Object binds to some statement and ensures that by the end of the scope statement will be reseted and all database locks will be released. Besides that object acts as smart pointer to the statement.

Definition at line 515 of file sqlitewrapp.hpp.

Constructor & Destructor Documentation

◆ CSQLITE_StatementLock() [1/2]

CSQLITE_StatementLock::CSQLITE_StatementLock ( CSQLITE_Statement stmt)
inline

Bind activity control to the given statement.

Definition at line 889 of file sqlitewrapp.hpp.

References _ASSERT, and stmt.

◆ ~CSQLITE_StatementLock()

CSQLITE_StatementLock::~CSQLITE_StatementLock ( void  )

Definition at line 839 of file sqlitewrapp.cpp.

References ERR_POST, m_Stmt, and CSQLITE_Statement::Reset().

◆ CSQLITE_StatementLock() [2/2]

CSQLITE_StatementLock::CSQLITE_StatementLock ( const CSQLITE_StatementLock )
private

Member Function Documentation

◆ operator CSQLITE_Statement *()

CSQLITE_StatementLock::operator CSQLITE_Statement * ( void  )
inline

Smart pointer's transformation.

Definition at line 908 of file sqlitewrapp.hpp.

◆ operator*()

CSQLITE_Statement & CSQLITE_StatementLock::operator* ( void  )
inline

Smart pointer's transformation.

Definition at line 896 of file sqlitewrapp.hpp.

References m_Stmt.

◆ operator->()

CSQLITE_Statement * CSQLITE_StatementLock::operator-> ( void  )
inline

Smart pointer's transformation.

Definition at line 902 of file sqlitewrapp.hpp.

References m_Stmt.

◆ operator=()

CSQLITE_StatementLock& CSQLITE_StatementLock::operator= ( const CSQLITE_StatementLock )
private

Member Data Documentation

◆ m_Stmt

CSQLITE_Statement* CSQLITE_StatementLock::m_Stmt
private

Statement this object is bound to.

Definition at line 537 of file sqlitewrapp.hpp.

Referenced by operator*(), operator->(), and ~CSQLITE_StatementLock().


The documentation for this class was generated from the following files:
Modified on Wed May 29 18:37:44 2024 by modify_doxy.py rev. 669887