BioDynaMo  v1.03.58-27764645
Public Member Functions | Private Attributes | List of all members
bdm::OpTimer< TOp > Class Template Reference

Decorator for Operations to measure runtime. More...

#include <op_timer.h>

Collaboration diagram for bdm::OpTimer< TOp >:
[legend]

Public Member Functions

 OpTimer (std::string timer_msg)
 
 OpTimer (std::string timer_msg, const TOp &op)
 
template<typename Container >
void operator() (Container *cells, uint16_t numa_node, uint16_t type_idx)
 
TOp * operator-> ()
 
const TOp * operator-> () const
 

Private Attributes

std::string timer_msg_
 
TOp operation_
 

Detailed Description

template<typename TOp>
class bdm::OpTimer< TOp >

Decorator for Operations to measure runtime.

Definition at line 27 of file op_timer.h.

Constructor & Destructor Documentation

◆ OpTimer() [1/2]

template<typename TOp >
bdm::OpTimer< TOp >::OpTimer ( std::string  timer_msg)
inlineexplicit

Definition at line 29 of file op_timer.h.

◆ OpTimer() [2/2]

template<typename TOp >
bdm::OpTimer< TOp >::OpTimer ( std::string  timer_msg,
const TOp &  op 
)
inlineexplicit

Definition at line 30 of file op_timer.h.

Member Function Documentation

◆ operator()()

template<typename TOp >
template<typename Container >
void bdm::OpTimer< TOp >::operator() ( Container *  cells,
uint16_t  numa_node,
uint16_t  type_idx 
)
inline

Definition at line 34 of file op_timer.h.

◆ operator->() [1/2]

template<typename TOp >
TOp* bdm::OpTimer< TOp >::operator-> ( )
inline

Definition at line 45 of file op_timer.h.

◆ operator->() [2/2]

template<typename TOp >
const TOp* bdm::OpTimer< TOp >::operator-> ( ) const
inline

Definition at line 46 of file op_timer.h.

Member Data Documentation

◆ operation_

template<typename TOp >
TOp bdm::OpTimer< TOp >::operation_
private

Definition at line 50 of file op_timer.h.

◆ timer_msg_

template<typename TOp >
std::string bdm::OpTimer< TOp >::timer_msg_
private

Definition at line 49 of file op_timer.h.


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