OmniSciDB  2e3a973ef4
query_state::Timer Class Reference

#include <QueryState.h>

Public Member Functions

 Timer (std::shared_ptr< QueryState > &&, Events::iterator event)
 
 Timer (Timer const &)=delete
 
Timeroperator= (Timer const &)=delete
 
 Timer (Timer &&)=default
 
Timeroperator= (Timer &&)=default
 
 ~Timer ()
 
QueryStateProxy createQueryStateProxy ()
 

Private Attributes

std::shared_ptr< QueryStatequery_state_
 
Events::iterator event_
 

Detailed Description

Definition at line 204 of file QueryState.h.

Constructor & Destructor Documentation

◆ Timer() [1/3]

query_state::Timer::Timer ( std::shared_ptr< QueryState > &&  query_state,
Events::iterator  event 
)

Definition at line 117 of file QueryState.cpp.

118  : query_state_(std::move(query_state)), event_(event) {}
std::shared_ptr< QueryState > query_state_
Definition: QueryState.h:205
Events::iterator event_
Definition: QueryState.h:206

◆ Timer() [2/3]

query_state::Timer::Timer ( Timer const &  )
delete

◆ Timer() [3/3]

query_state::Timer::Timer ( Timer &&  )
default

◆ ~Timer()

query_state::Timer::~Timer ( )

Definition at line 124 of file QueryState.cpp.

References event_, and query_state::StdLogData::s_match.

124  {
125  event_->stop();
126 }
Events::iterator event_
Definition: QueryState.h:206

Member Function Documentation

◆ createQueryStateProxy()

QueryStateProxy query_state::Timer::createQueryStateProxy ( )

Definition at line 120 of file QueryState.cpp.

References event_, and query_state_.

Referenced by DBHandler::execute_rel_alg(), and DBHandler::parse_to_ra().

120  {
121  return query_state_->createQueryStateProxy(event_);
122 }
std::shared_ptr< QueryState > query_state_
Definition: QueryState.h:205
Events::iterator event_
Definition: QueryState.h:206
+ Here is the caller graph for this function:

◆ operator=() [1/2]

Timer& query_state::Timer::operator= ( Timer const &  )
delete

◆ operator=() [2/2]

Timer& query_state::Timer::operator= ( Timer &&  )
default

Member Data Documentation

◆ event_

Events::iterator query_state::Timer::event_
private

Definition at line 206 of file QueryState.h.

Referenced by createQueryStateProxy(), and ~Timer().

◆ query_state_

std::shared_ptr<QueryState> query_state::Timer::query_state_
private

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