SolidUtils
Public Member Functions | List of all members
sl::Timer::Scope Class Reference

This class provides a means of timing a scoped region. It begins timing when it is created, and adds its duration to the parent timer when it is destroyed. More...

#include <Timer.hpp>

Public Member Functions

 Scope (Timer *const parent)
 Create a new Scope from the given timer. More...
 
 Scope (Scope &&scope)
 Move once Scope to this Scope. More...
 
 Scope (Scope const &other)=delete
 Deleted copy constructor. More...
 
Scopeoperator= (Scope const &other)=delete
 Deleted assignment operator. More...
 
 ~Scope ()
 Destroy this timer Scope.
 

Detailed Description

This class provides a means of timing a scoped region. It begins timing when it is created, and adds its duration to the parent timer when it is destroyed.

Constructor & Destructor Documentation

◆ Scope() [1/3]

sl::Timer::Scope::Scope ( Timer *const  parent)
inline

Create a new Scope from the given timer.

Parameters
parentThe parent timer.

◆ Scope() [2/3]

sl::Timer::Scope::Scope ( Scope &&  scope)
inline

Move once Scope to this Scope.

Parameters
scopeThe Scope to move.

◆ Scope() [3/3]

sl::Timer::Scope::Scope ( Scope const &  other)
delete

Deleted copy constructor.

Parameters
otherThe Scope to copy.

Member Function Documentation

◆ operator=()

Scope& sl::Timer::Scope::operator= ( Scope const &  other)
delete

Deleted assignment operator.

Parameters
otherThe Scope to assign from.
Returns
The newly assigned Scope.

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