SOMHunter Core
sh::SearchContext Struct Reference

Represents exactly one momentary state of a search session. More...

#include <search-context.h>

Collaboration diagram for sh::SearchContext:

Public Member Functions

 SearchContext ()=delete
 
 SearchContext (size_t ID, const Settings &_logger_settings, const DatasetFrames &_dataset_frames)
 
bool operator== (const SearchContext &other) const
 
void reset ()
 
void reset_filters ()
 

Public Attributes

std::size_t ID
 
UsedTools used_tools
 
std::vector< VideoFramePointercurrent_display
 
DisplayType curr_disp_type { DisplayType::DTopN }
 
ScoreModel scores
 
size_t temporal_size
 
std::vector< TemporalQuerylast_temporal_queries
 
LikesCont likes
 
ShownFramesCont shown_images
 Frames that were seen since the last rescore. More...
 
std::string screenshot_fpth {}
 
std::string label
 
Filters filters
 Filters based on metadata (hour, weekday). More...
 
std::vector< VideoFramecurr_targets
 Target we were looking for. More...
 
Query _prev_query
 

Detailed Description

Represents exactly one momentary state of a search session.

It can be ome point in HISTORY.

Constructor & Destructor Documentation

◆ SearchContext() [1/2]

sh::SearchContext::SearchContext ( )
delete

◆ SearchContext() [2/2]

SearchContext::SearchContext ( size_t  ID,
const Settings _logger_settings,
const DatasetFrames _dataset_frames 
)

Member Function Documentation

◆ operator==()

bool SearchContext::operator== ( const SearchContext other) const

◆ reset()

void sh::SearchContext::reset ( )
inline
Here is the call graph for this function:

◆ reset_filters()

void sh::SearchContext::reset_filters ( )
inline

Member Data Documentation

◆ _prev_query

Query sh::SearchContext::_prev_query

◆ curr_disp_type

DisplayType sh::SearchContext::curr_disp_type { DisplayType::DTopN }

◆ curr_targets

std::vector<VideoFrame> sh::SearchContext::curr_targets

Target we were looking for.

(Data collection.)

◆ current_display

std::vector<VideoFramePointer> sh::SearchContext::current_display

◆ filters

Filters sh::SearchContext::filters

Filters based on metadata (hour, weekday).

◆ ID

std::size_t sh::SearchContext::ID

◆ label

std::string sh::SearchContext::label

◆ last_temporal_queries

std::vector<TemporalQuery> sh::SearchContext::last_temporal_queries

◆ likes

LikesCont sh::SearchContext::likes

◆ scores

ScoreModel sh::SearchContext::scores

◆ screenshot_fpth

std::string sh::SearchContext::screenshot_fpth {}

◆ shown_images

ShownFramesCont sh::SearchContext::shown_images

Frames that were seen since the last rescore.

◆ temporal_size

size_t sh::SearchContext::temporal_size

◆ used_tools

UsedTools sh::SearchContext::used_tools

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