DiSMEC++
dismec::parallel::thread_id_t Class Reference

Strong typedef for an int to signify a thread id. More...

#include <thread_id.h>

Inheritance diagram for dismec::parallel::thread_id_t:
dismec::opaque_int_type< thread_id_t >

Private Member Functions

constexpr opaque_int_type (T v) noexcept
 ! Explicit constructor from an underlying int. More...
 

Additional Inherited Members

- Public Member Functions inherited from dismec::opaque_int_type< thread_id_t >
constexpr opaque_int_type (std::int_fast32_t v) noexcept
 ! Explicit constructor from an underlying int. More...
 
constexpr std::int_fast32_t to_index () const
 ! Explicitly convert to an integer. More...
 
- Protected Attributes inherited from dismec::opaque_int_type< thread_id_t >
std::int_fast32_t m_Value
 

Detailed Description

Strong typedef for an int to signify a thread id.

This value represents an id for a thread. These IDs are only unique within a single run, and can be used (with the to_index() method to manage thread-local data.

Implemented as a subclass of opaque_int_type instead of a typedef because this makes forward declarations easier.

Definition at line 20 of file thread_id.h.

Member Function Documentation

◆ opaque_int_type()

constexpr dismec::opaque_int_type< Tag, T >::opaque_int_type
inlineexplicitconstexprprivatenoexcept

! Explicit constructor from an underlying int.

Definition at line 29 of file opaque_int.h.


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