ThinSQLite++
A thin, safe and convenient modern C++ wrapper for SQLite API.
Loading...
Searching...
No Matches
handle< T, Derived > Class Template Reference

Base functionality for all fake wrapper classes More...

Public Member Functions

void operator delete (void *) noexcept
 Operator delete for a fake pointer is no-op.
 
 handle ()=delete
 You cannot construct it.
 
 handle (const handle &)=delete
 You cannot copy (or move) it.
 
handleoperator= (const handle &)=delete
 You cannot assign it.
 
T * c_ptr () const noexcept
 Access the real underlying SQLite type.
 

Static Public Member Functions

static Derived * from (T *obj) noexcept
 Create fake pointer from the underlying SQLite one.
 

Friends

T * c_ptr (const handle< T, Derived > &obj) noexcept
 Access the real underlying SQLite type.
 
T * c_ptr (const handle< T, Derived > *obj) noexcept
 Access the real underlying SQLite type.
 

Detailed Description

template<class T, class Derived>
class thinsqlitepp::handle< T, Derived >

Base functionality for all fake wrapper classes

This is a CRTP base class that implements functionality common to all fake wrapper classes.

Template Parameters
Tthe underlying SQLite type
Derivedthe derived class for CRTP casts