SOMHunter Core
sh::Query Struct Reference

The type representing the whole query. More...

#include <query-types.h>

Collaboration diagram for sh::Query:

Public Member Functions

 Query ()=default
 
template<typename QueryType >
 Query (const std::vector< QueryType > &temp_queries)
 
const bool is_relocation () const
 
const bool score_secondary () const
 
void score_secondary (bool new_value)
 
const bool is_canvas () const
 
const bool is_bitmap_canvas () const
 
const bool is_text_canvas () const
 
const bool is_temporal_text () const
 
const bool is_text () const
 
const bool empty () const
 
const std::vector< TemporalQuery > & queries () const
 
void set_targets (const std::vector< VideoFrame > &ts)
 
std::string get_plain_text_query () const
 
void transform_to_no_pos_queries ()
 
nlohmann::json to_JSON () const
 
template<class Archive >
void serialize (Archive &archive)
 

Public Attributes

RescoreMetadata metadata
 
Filters filters
 
RelevanceFeedbackQuery relevance_feeedback
 
std::vector< TemporalQuerytemporal_queries
 
std::vector< FrameIdtargets
 
bool is_save { false }
 
bool _score_secondary { false }
 

Detailed Description

The type representing the whole query.

Constructor & Destructor Documentation

◆ Query() [1/2]

sh::Query::Query ( )
default

◆ Query() [2/2]

template<typename QueryType >
sh::Query::Query ( const std::vector< QueryType > &  temp_queries)
inline

Member Function Documentation

◆ empty()

const bool sh::Query::empty ( ) const
inline

◆ get_plain_text_query()

std::string sh::Query::get_plain_text_query ( ) const
inline

◆ is_bitmap_canvas()

const bool sh::Query::is_bitmap_canvas ( ) const
inline

◆ is_canvas()

const bool sh::Query::is_canvas ( ) const
inline

◆ is_relocation()

const bool sh::Query::is_relocation ( ) const
inline

◆ is_temporal_text()

const bool sh::Query::is_temporal_text ( ) const
inline
Here is the call graph for this function:

◆ is_text()

const bool sh::Query::is_text ( ) const
inline

◆ is_text_canvas()

const bool sh::Query::is_text_canvas ( ) const
inline

◆ queries()

const std::vector<TemporalQuery>& sh::Query::queries ( ) const
inline

◆ score_secondary() [1/2]

const bool sh::Query::score_secondary ( ) const
inline

◆ score_secondary() [2/2]

void sh::Query::score_secondary ( bool  new_value)
inline

◆ serialize()

template<class Archive >
void sh::Query::serialize ( Archive &  archive)
inline

◆ set_targets()

void sh::Query::set_targets ( const std::vector< VideoFrame > &  ts)
inline

◆ to_JSON()

nlohmann::json Query::to_JSON ( ) const
Here is the call graph for this function:

◆ transform_to_no_pos_queries()

void sh::Query::transform_to_no_pos_queries ( )
inline
Here is the call graph for this function:

Member Data Documentation

◆ _score_secondary

bool sh::Query::_score_secondary { false }

◆ filters

Filters sh::Query::filters

◆ is_save

bool sh::Query::is_save { false }

◆ metadata

RescoreMetadata sh::Query::metadata

◆ relevance_feeedback

RelevanceFeedbackQuery sh::Query::relevance_feeedback

◆ targets

std::vector<FrameId> sh::Query::targets

◆ temporal_queries

std::vector<TemporalQuery> sh::Query::temporal_queries

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