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

Constructor & Destructor Documentation

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

Definition at line 119 of file QueryState.cpp.

120  : query_state_(std::move(query_state)), event_(event) {}
std::shared_ptr< QueryState > query_state_
Definition: QueryState.h:203
Events::iterator event_
Definition: QueryState.h:204
query_state::Timer::Timer ( Timer const &  )
delete
query_state::Timer::Timer ( Timer &&  )
default
query_state::Timer::~Timer ( )

Definition at line 126 of file QueryState.cpp.

References event_.

126  {
127  event_->stop();
128 }
Events::iterator event_
Definition: QueryState.h:204

Member Function Documentation

QueryStateProxy query_state::Timer::createQueryStateProxy ( )

Definition at line 122 of file QueryState.cpp.

References event_, and query_state_.

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

122  {
123  return query_state_->createQueryStateProxy(event_);
124 }
std::shared_ptr< QueryState > query_state_
Definition: QueryState.h:203
Events::iterator event_
Definition: QueryState.h:204

+ Here is the caller graph for this function:

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

Member Data Documentation

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

Definition at line 204 of file QueryState.h.

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

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

Definition at line 203 of file QueryState.h.

Referenced by createQueryStateProxy().


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