docudb  1.0
Loading...
Searching...
No Matches
docudb::query::queryable_type_eraser Struct Reference

Type-erased Queryable object. More...

#include <docudb.hpp>

Public Member Functions

template<Queryable T>
 queryable_type_eraser (T &&obj)
 
std::string to_query_string () const
 
binder get_binder () const
 

Detailed Description

Type-erased Queryable object.

Definition at line 434 of file docudb.hpp.

Constructor & Destructor Documentation

◆ queryable_type_eraser()

template<Queryable T>
docudb::query::queryable_type_eraser::queryable_type_eraser ( T && obj)
inline

Definition at line 437 of file docudb.hpp.

438 : ptr_(std::make_unique<queryable_wrapper<T>>(std::forward<T>(obj))) {}

Member Function Documentation

◆ get_binder()

binder docudb::query::queryable_type_eraser::get_binder ( ) const
inline

Definition at line 445 of file docudb.hpp.

446 {
447 return ptr_->get_binder();
448 }

◆ to_query_string()

std::string docudb::query::queryable_type_eraser::to_query_string ( ) const
inline

Definition at line 440 of file docudb.hpp.

441 {
442 return ptr_->to_query_string();
443 }

The documentation for this struct was generated from the following file: