#include <Ntuple.h>
Public Types | |
template<typename T > | |
using | element_t = std::unique_ptr< typename sqlite::permissive_column< T >::element_type > |
using | row_t = std::tuple< element_t< Args >... > |
using | name_array = sqlite::name_array< nColumns > |
Public Member Functions | |
~Ntuple () noexcept | |
Ntuple (Connection &connection, std::string const &name, name_array const &columns, bool overwriteContents=false, std::size_t bufsize=1000ull) | |
Ntuple (Ntuple const &)=delete | |
Ntuple & | operator= (Ntuple const &)=delete |
std::string const & | name () const |
void | insert (Args const ...) |
void | flush () |
Static Public Attributes | |
static constexpr auto | nColumns = std::tuple_size_v<row_t> |
Private Member Functions | |
template<std::size_t... I> | |
Ntuple (Connection &db, std::string const &name, name_array const &columns, bool overwriteContents, std::size_t bufsize, std::index_sequence< I... >) | |
int | flush_no_throw () |
Private Attributes | |
std::recursive_mutex | mutex_ {} |
Connection & | connection_ |
std::string const | name_ |
std::size_t const | max_ |
std::vector< row_t > | buffer_ {} |
sqlite3_stmt * | insert_statement_ {nullptr} |
Static Private Attributes | |
static constexpr auto | iSequence = std::make_index_sequence<nColumns>() |
using cet::sqlite::Ntuple< Args >::element_t = std::unique_ptr<typename sqlite::permissive_column<T>::element_type> |
using cet::sqlite::Ntuple< Args >::name_array = sqlite::name_array<nColumns> |
using cet::sqlite::Ntuple< Args >::row_t = std::tuple<element_t<Args>...> |
|
noexcept |
cet::sqlite::Ntuple< Args >::Ntuple | ( | Connection & | connection, |
std::string const & | name, | ||
name_array const & | columns, | ||
bool | overwriteContents = false , |
||
std::size_t | bufsize = 1000ull |
||
) |
Definition at line 212 of file Ntuple.h.
|
delete |
|
private |
Definition at line 179 of file Ntuple.h.
void cet::sqlite::Ntuple< Args >::flush | ( | ) |
Definition at line 258 of file Ntuple.h.
|
private |
Definition at line 242 of file Ntuple.h.
void cet::sqlite::Ntuple< Args >::insert | ( | Args | const ... | ) |
|
inline |
|
delete |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
static |