OmniSciDB  29e35f4d58
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 115 of file QueryState.cpp.

116  : 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 122 of file QueryState.cpp.

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

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

Member Function Documentation

◆ createQueryStateProxy()

QueryStateProxy query_state::Timer::createQueryStateProxy ( )

Definition at line 118 of file QueryState.cpp.

References event_, and query_state_.

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

118  {
119  return query_state_->createQueryStateProxy(event_);
120 }
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: