Everett
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
everett::cola_query_cursor< P, Blob > Struct Template Reference

#include <cola_query.h>

Classes

struct  prepared_query
 

Public Types

using policy_type = P
 
using pair_type = std::shared_ptr< Blob const >
 
using match_type = cola_query_match< P, Blob >
 

Public Member Functions

 cola_query_cursor (cola_query_root< P, Blob > const &root, bit_view query)
 
 cola_query_cursor (cola_query_cursor const &)=default
 
cola_query_cursor & operator= (cola_query_cursor const &)=default
 
 cola_query_cursor (cola_query_cursor &&other) noexcept
 
cola_query_cursor & operator= (cola_query_cursor &&other) noexcept
 
bool has_match () const noexcept
 
bool done () const noexcept
 
bool failed () const noexcept
 
std::uint64_t step (std::uint64_t main_budget=1)
 
match_type take_match ()
 

Static Public Member Functions

static cola_query_cursor from_owned (cola_query_root< P, Blob > const &root, bit_string query)
 

Private Member Functions

 cola_query_cursor (cola_query_root< P, Blob > const &root, profile_query_context< P > context, prepared_query)
 

Private Attributes

pair_type current_
 
profile_query_context< P > context_
 
std::uint64_t group_ = 0
 
std::array< std::optional< match_type >, 2 > pending_
 
bool failed_ = false
 

Member Typedef Documentation

◆ match_type

template<class P , class Blob >
using everett::cola_query_cursor< P, Blob >::match_type = cola_query_match<P, Blob>

◆ pair_type

template<class P , class Blob >
using everett::cola_query_cursor< P, Blob >::pair_type = std::shared_ptr<Blob const>

◆ policy_type

template<class P , class Blob >
using everett::cola_query_cursor< P, Blob >::policy_type = P

Constructor & Destructor Documentation

◆ cola_query_cursor() [1/4]

template<class P , class Blob >
everett::cola_query_cursor< P, Blob >::cola_query_cursor ( cola_query_root< P, Blob > const &  root,
bit_view  query 
)
inlineexplicit

◆ cola_query_cursor() [2/4]

template<class P , class Blob >
everett::cola_query_cursor< P, Blob >::cola_query_cursor ( cola_query_cursor< P, Blob > const &  )
default

◆ cola_query_cursor() [3/4]

template<class P , class Blob >
everett::cola_query_cursor< P, Blob >::cola_query_cursor ( cola_query_cursor< P, Blob > &&  other)
inlinenoexcept

◆ cola_query_cursor() [4/4]

template<class P , class Blob >
everett::cola_query_cursor< P, Blob >::cola_query_cursor ( cola_query_root< P, Blob > const &  root,
profile_query_context< P >  context,
prepared_query   
)
inlineprivate

Member Function Documentation

◆ done()

template<class P , class Blob >
bool everett::cola_query_cursor< P, Blob >::done ( ) const
inlinenoexcept

◆ failed()

template<class P , class Blob >
bool everett::cola_query_cursor< P, Blob >::failed ( ) const
inlinenoexcept

◆ from_owned()

template<class P , class Blob >
static cola_query_cursor everett::cola_query_cursor< P, Blob >::from_owned ( cola_query_root< P, Blob > const &  root,
bit_string  query 
)
inlinestatic

◆ has_match()

template<class P , class Blob >
bool everett::cola_query_cursor< P, Blob >::has_match ( ) const
inlinenoexcept

◆ operator=() [1/2]

template<class P , class Blob >
cola_query_cursor & everett::cola_query_cursor< P, Blob >::operator= ( cola_query_cursor< P, Blob > &&  other)
inlinenoexcept

◆ operator=() [2/2]

template<class P , class Blob >
cola_query_cursor & everett::cola_query_cursor< P, Blob >::operator= ( cola_query_cursor< P, Blob > const &  )
default

◆ step()

template<class P , class Blob >
std::uint64_t everett::cola_query_cursor< P, Blob >::step ( std::uint64_t  main_budget = 1)
inline

◆ take_match()

template<class P , class Blob >
match_type everett::cola_query_cursor< P, Blob >::take_match ( )
inline

Member Data Documentation

◆ context_

template<class P , class Blob >
profile_query_context<P> everett::cola_query_cursor< P, Blob >::context_
private

◆ current_

template<class P , class Blob >
pair_type everett::cola_query_cursor< P, Blob >::current_
private

◆ failed_

template<class P , class Blob >
bool everett::cola_query_cursor< P, Blob >::failed_ = false
private

◆ group_

template<class P , class Blob >
std::uint64_t everett::cola_query_cursor< P, Blob >::group_ = 0
private

◆ pending_

template<class P , class Blob >
std::array<std::optional<match_type>, 2> everett::cola_query_cursor< P, Blob >::pending_
private

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