libdballe  7.7
Public Member Functions | Data Fields | Protected Attributes
dballe::memdb::Results< T > Struct Template Reference
Inheritance diagram for dballe::memdb::Results< T >:
dballe::memdb::results::Base

Public Member Functions

 Results (const ValueStorage< T > &values)
 
template<typename K >
bool add (const Index< K > &index, const K &val)
 
template<typename K >
bool add (const Index< K > &index, const K &min, const K &max)
 
template<typename K >
bool add_since (const Index< K > &index, const typename Index< K >::const_iterator begin)
 
template<typename K >
bool add_until (const Index< K > &index, const typename Index< K >::const_iterator end)
 
void add (Match< T > *f)
 
template<typename OUTITER >
void copy_valptrs_to (OUTITER res)
 Send results to res. More...
 
template<typename OUTITER >
void copy_indices_to (OUTITER res)
 Send results to res. More...
 
- Public Member Functions inherited from dballe::memdb::results::Base
bool is_select_all () const
 Check if we just select all elements.
 
bool is_empty () const
 Check if we just select all elements.
 
void set_to_empty ()
 Disregard everything and just return no items.
 
void add_union (std::unique_ptr< stl::Sequences< size_t >> seq)
 
void add_singleton (size_t singleton)
 Add a set of one single element to intersect with the rest.
 
void add_set (const std::set< size_t > &p)
 
void add_set (std::unique_ptr< std::set< size_t > > p)
 Add a set, taking over its memory management.
 

Data Fields

const ValueStorage< T > & values
 

Protected Attributes

match::FilterBuilder< T > filter
 Filters to apply to each candidate result.
 
- Protected Attributes inherited from dballe::memdb::results::Base
std::vector< std::set< size_t > * > transient_sets
 Keep track of transient sets here, for memory management purpose.
 
stl::Sequences< size_t > * others_to_intersect
 Sequences of possible results to be intersected.
 
stl::SetIntersection< size_t > * indices
 Sets of possible results, to be intersected.
 
bool all
 True if all elements are selected.
 
bool empty
 True if it has been determined that there are no results.
 

Member Function Documentation

template<typename T>
template<typename OUTITER >
void dballe::memdb::Results< T >::copy_indices_to ( OUTITER  res)

Send results to res.

It empties all sequences, so it can only be used once.

template<typename T>
template<typename OUTITER >
void dballe::memdb::Results< T >::copy_valptrs_to ( OUTITER  res)

Send results to res.

It empties all sequences, so it can only be used once.


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