OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 239 of file QueryState.h.

Constructor & Destructor Documentation

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

Definition at line 249 of file QueryState.h.

References to_string().

250  : file_(boost::filesystem::path(file).filename().string())
251  , line_(line)
252  , func_(func)
253  , start_(Clock::now())
254  , match_(s_match++)
255  , name_value_pairs_{to_string(std::forward<Pairs>(pairs))...} {
256  static_assert(sizeof...(Pairs) % 2 == 0,
257  "StdLogData() requires an even number of name/value parameters.");
258  }
unsigned const line_
Definition: QueryState.h:243
std::string const file_
Definition: QueryState.h:242
std::string to_string(char const *&&v)
std::list< std::string > name_value_pairs_
Definition: QueryState.h:247
static std::atomic< int64_t > s_match
Definition: QueryState.h:241
tuple line
Definition: parse_ast.py:10
int64_t const match_
Definition: QueryState.h:246
Clock::time_point const start_
Definition: QueryState.h:245
char const *const func_
Definition: QueryState.h:244

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 242 of file QueryState.h.

Referenced by query_state::StdLog::log(), and query_state::StdLog::logCallStack().

char const* const query_state::StdLogData::func_
protected

Definition at line 244 of file QueryState.h.

Referenced by query_state::StdLog::log(), and query_state::StdLog::logCallStack().

unsigned const query_state::StdLogData::line_
protected

Definition at line 243 of file QueryState.h.

Referenced by query_state::StdLog::log(), and query_state::StdLog::logCallStack().

int64_t const query_state::StdLogData::match_
protected

Definition at line 246 of file QueryState.h.

Referenced by query_state::StdLog::log(), and query_state::StdLog::logCallStack().

std::list<std::string> query_state::StdLogData::name_value_pairs_
protected
std::atomic< int64_t > query_state::StdLogData::s_match {0}
staticprotected

Definition at line 241 of file QueryState.h.

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

Definition at line 245 of file QueryState.h.

Referenced by query_state::StdLog::duration().


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