SOMHunter Core
sh::UserContext Class Reference

Represents exactly one state of ONE user that uses this core. More...

#include <user-context.h>

Collaboration diagram for sh::UserContext:

Public Member Functions

 UserContext ()=delete
 
 UserContext (const Settings &settings, const std::string &username, const DatasetFrames *p_dataset_frames, const PrimaryFrameFeatures *p_dataset_features)
 
const std::string & get_username () const
 
const DatasetFramesget_frames () const
 
const PrimaryFrameFeaturesget_features () const
 
void reset ()
 
bool operator== (const UserContext &other) const
 

Public Attributes

const DatasetFrames_p_dataset_frames
 
const PrimaryFrameFeatures_p_dataset_features
 
SearchContext ctx
 
std::string _username
 
std::string _user_eval_server_token
 
std::vector< SearchContext_history
 
EvalServerClient _eval_server
 Inteface for communicating with the evaluation server. More...
 
Logger _logger
 Does all the system logs. More...
 
AsyncSom _async_SOM
 
std::vector< std::unique_ptr< AsyncSom > > _temp_async_SOM
 
BookmarksCont _bookmarks
 Frames selected as important. More...
 
bool _force_result_log
 
ScreenVideosCont _videos_seen
 

Detailed Description

Represents exactly one state of ONE user that uses this core.

Constructor & Destructor Documentation

◆ UserContext() [1/2]

sh::UserContext::UserContext ( )
delete

◆ UserContext() [2/2]

UserContext::UserContext ( const Settings settings,
const std::string &  username,
const DatasetFrames p_dataset_frames,
const PrimaryFrameFeatures p_dataset_features 
)
Here is the call graph for this function:

Member Function Documentation

◆ get_features()

const PrimaryFrameFeatures* sh::UserContext::get_features ( ) const
inline

◆ get_frames()

const DatasetFrames* sh::UserContext::get_frames ( ) const
inline

◆ get_username()

const std::string& sh::UserContext::get_username ( ) const
inline

◆ operator==()

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

◆ reset()

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

Member Data Documentation

◆ _async_SOM

AsyncSom sh::UserContext::_async_SOM

◆ _bookmarks

BookmarksCont sh::UserContext::_bookmarks

Frames selected as important.

◆ _eval_server

EvalServerClient sh::UserContext::_eval_server

Inteface for communicating with the evaluation server.

◆ _force_result_log

bool sh::UserContext::_force_result_log

◆ _history

std::vector<SearchContext> sh::UserContext::_history

◆ _logger

Logger sh::UserContext::_logger

Does all the system logs.

◆ _p_dataset_features

const PrimaryFrameFeatures* sh::UserContext::_p_dataset_features

◆ _p_dataset_frames

const DatasetFrames* sh::UserContext::_p_dataset_frames

◆ _temp_async_SOM

std::vector<std::unique_ptr<AsyncSom> > sh::UserContext::_temp_async_SOM

◆ _user_eval_server_token

std::string sh::UserContext::_user_eval_server_token

◆ _username

std::string sh::UserContext::_username

◆ _videos_seen

ScreenVideosCont sh::UserContext::_videos_seen

◆ ctx

SearchContext sh::UserContext::ctx

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