OmniSciDB  dfae7c3b14
query_state::StdLogData Class Reference

#include <QueryState.h>

+ Inheritance diagram for query_state::StdLogData:

Protected Member Functions

template<typename... Pairs>
 StdLogData (char const *file, unsigned line, char const *func, Pairs &&... pairs)

Protected Attributes

std::string const file_
unsigned const line_
char const *const func_
Clock::time_point const start_
int64_t const match_
std::list< std::string > name_value_pairs_

Static Protected Attributes

static std::atomic< int64_t > s_match {0}

Detailed Description

Definition at line 230 of file QueryState.h.

Constructor & Destructor Documentation

◆ StdLogData()

template<typename... Pairs>
query_state::StdLogData::StdLogData ( char const *  file,
unsigned  line,
char const *  func,
Pairs &&...  pairs 

Definition at line 240 of file QueryState.h.

References to_string().

241  : file_(boost::filesystem::path(file).filename().string())
242  , line_(line)
243  , func_(func)
244  , start_(Clock::now())
245  , match_(s_match++)
246  , name_value_pairs_{to_string(std::forward<Pairs>(pairs))...} {
247  static_assert(sizeof...(Pairs) % 2 == 0,
248  "StdLogData() requires an even number of name/value parameters.");
249  }
unsigned const line_
Definition: QueryState.h:234
std::string filename(char const *path)
Definition: Logger.cpp:62
std::string const file_
Definition: QueryState.h:233
std::string to_string(char const *&&v)
std::list< std::string > name_value_pairs_
Definition: QueryState.h:238
static std::atomic< int64_t > s_match
Definition: QueryState.h:232
int64_t const match_
Definition: QueryState.h:237
Clock::time_point const start_
Definition: QueryState.h:236
char const *const func_
Definition: QueryState.h:235
+ Here is the call graph for this function:

Member Data Documentation

◆ file_

std::string const query_state::StdLogData::file_

Definition at line 233 of file QueryState.h.

◆ func_

char const* const query_state::StdLogData::func_

Definition at line 235 of file QueryState.h.

◆ line_

unsigned const query_state::StdLogData::line_

Definition at line 234 of file QueryState.h.

◆ match_

int64_t const query_state::StdLogData::match_

Definition at line 237 of file QueryState.h.

◆ name_value_pairs_

std::list<std::string> query_state::StdLogData::name_value_pairs_

Definition at line 238 of file QueryState.h.

◆ s_match

std::atomic< int64_t > query_state::StdLogData::s_match {0}

Definition at line 232 of file QueryState.h.

Referenced by query_state::Timer::~Timer().

◆ start_

Clock::time_point const query_state::StdLogData::start_

Definition at line 236 of file QueryState.h.

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