22 #ifndef COMMON_TYPES_H_
23 #define COMMON_TYPES_H_
80 template <
typename T_ =
float>
83 template <
typename T_ =
float>
92 #define SIZE_T_ERR_VAL (std::numeric_limits<size_t>::max)()
93 #define IMAGE_ID_ERR_VAL (std::numeric_limits<FrameId>::max)()
94 #define VIDEO_ID_ERR_VAL (std::numeric_limits<VideoId>::max)()
97 template <
typename T_>
99 return std::numeric_limits<T_>::max();
135 std::string disp_type;
138 disp_type =
"topn_display";
142 disp_type =
"topn_context_display";
146 disp_type =
"SOM_display";
150 disp_type =
"topknn_display";
154 disp_type =
"video_detail";
158 disp_type =
"video_replay";
161 throw std::runtime_error{
"Uknown dusplay!" };
171 constexpr
size_t operator""_z(
unsigned long long int x) {
return static_cast<size_t>(x); }
Definition: common-types.h:37
NotLoggedInEx(const std::string &msg)
Definition: common-types.h:39
#define IMAGE_ID_ERR_VAL
Definition: common-types.h:93
Definition: common-types.h:33
unsigned VideoId
Definition: common-types.h:71
std::set< VideoId > ScreenVideosCont
Definition: common-types.h:90
std::set< FrameId > ShownFramesCont
Definition: common-types.h:88
unsigned PageId
Definition: common-types.h:240
size_t SynsetId
Definition: common-types.h:67
std::string LogHash
Definition: common-types.h:59
size_t KeywordId
Definition: common-types.h:60
std::vector< std::string > SynsetStrings
Definition: common-types.h:68
DisplayType str_to_disp_type(const std::string &type_str)
Definition: common-types.h:117
uint8_t Hour
Definition: common-types.h:243
std::vector< KwSearchId > KwSearchIds
Definition: common-types.h:63
std::string KwDescription
Definition: common-types.h:64
uint16_t Year
Definition: common-types.h:244
constexpr T_ ERR_VAL()
Value indicating error/invalid/"NULL" value for the given type.
Definition: common-types.h:98
unsigned FrameNum
Definition: common-types.h:72
uint8_t Weekday
Definition: common-types.h:242
std::set< FrameId > LikesCont
Definition: common-types.h:86
std::vector< float > FeatureVector
Definition: common-types.h:78
std::vector< KeywordId > KeywordIds
Definition: common-types.h:61
std::set< FrameId > BookmarksCont
Definition: common-types.h:87
unsigned ShotId
Definition: common-types.h:73
DisplayType
Definition: common-types.h:102
std::vector< std::vector< float > > FeatureMatrix
Definition: common-types.h:77
std::vector< SynsetId > SynsetIds
Definition: common-types.h:69
std::vector< std::vector< T_ > > StdMatrix
Definition: common-types.h:81
std::vector< T_ > StdVector
Definition: common-types.h:84
std::string disp_type_to_str(DisplayType type)
Definition: common-types.h:131
SubmitResult
Definition: common-types.h:56
std::vector< FrameId > ScreenImgsCont
Definition: common-types.h:76
std::string LscId
Definition: common-types.h:245
std::pair< KeywordId, size_t > KwSearchId
Definition: common-types.h:62
std::int64_t UnixTimestamp
Definition: common-types.h:54
unsigned long FrameId
Definition: common-types.h:75
Definition: common-types.h:44
DebugLogStreamPtrs()=delete
std::stringstream & _actions
Definition: common-types.h:50
DebugLogStreamPtrs & operator=(DebugLogStreamPtrs &)=delete
std::stringstream & _summary
Definition: common-types.h:49
std::stringstream & _results
Definition: common-types.h:51
DebugLogStreamPtrs & operator=(DebugLogStreamPtrs &&)=delete
Definition: common-types.h:247
Weekday weekday
Definition: common-types.h:248
Year year
Year interval.
Definition: common-types.h:254
Hour hour
In interval [0, 23].
Definition: common-types.h:251
LscId LSC_id
Definition: common-types.h:256
Container for all the available filters for the rescore.
Definition: query-types.h:103
Definition: common-types.h:217
FrameId get_and_pop_submit()
Definition: common-types.h:229
SubmitData()
Definition: common-types.h:218
bool push_submit(FrameId fr_ID)
Definition: common-types.h:220
bool want_submit
Definition: common-types.h:236
bool submit_requested() const
Definition: common-types.h:234
FrameId frame_ID
Definition: common-types.h:237