STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Static Public Attributes | Friends
stapl::runtime::logical_clock Class Reference

Implements a logical clock for managing epochs. More...

Public Member Functions

constexpr logical_clock (const time_type t=start_time) noexcept
 
time_type tick (void) noexcept
 Increases the time.
 
constexpr time_type time (void) const noexcept
 Returns the current time.
 
void reset (const time_type t=start_time) noexcept
 

Public Types

typedef unsigned int time_type
 
typedef std::tuple< time_type > member_types
 

Static Public Attributes

static const time_type no_time = 0
 
static const time_type start_time = 1
 

Friends

constexpr bool operator== (logical_clock const &x, logical_clock const &y) noexcept
 
constexpr bool operator!= (logical_clock const &x, logical_clock const &y) noexcept
 

Detailed Description

Implements a logical clock for managing epochs.


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