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

#include <query.h>

Public Types

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

Public Member Functions

 query_cursor (query_root< P, Blob > const &root, bit_view query)
 
bool done () const noexcept
 
bool has_match () const noexcept
 
bool failed () const noexcept
 
std::uint64_t step (std::uint64_t catalog_budget=1)
 
match_type take_match ()
 

Private Attributes

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

Member Typedef Documentation

◆ blob_type

template<class P , class Blob >
using everett::query_cursor< P, Blob >::blob_type = Blob

◆ match_type

template<class P , class Blob >
using everett::query_cursor< P, Blob >::match_type = query_match<P, Blob>

◆ pair_type

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

◆ policy_type

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

Constructor & Destructor Documentation

◆ query_cursor()

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

Member Function Documentation

◆ done()

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

◆ failed()

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

◆ has_match()

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

◆ step()

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

◆ take_match()

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

Member Data Documentation

◆ context_

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

◆ current_

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

◆ failed_

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

◆ group_

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

◆ pending_

template<class P , class Blob >
std::optional<match_type> everett::query_cursor< P, Blob >::pending_
private

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