Public Member Functions | Public Attributes | List of all members
rapidsmpf::ProgressThread::FunctionID Struct Reference

The unique ID of a function registered with ProgressThread. Composed of the ProgressThread address and a sequential function index. More...

#include <progress_thread.hpp>

Public Member Functions

 FunctionID ()=default
 Construct a FunctionID with an invalid address. More...
 
constexpr FunctionID (ProgressThreadAddress thread_addr, FunctionIndex index)
 Construct a new FunctionID. More...
 
constexpr bool is_valid () const
 Check if the FunctionID is valid. More...
 

Public Attributes

ProgressThreadAddress thread_address
 The address of the ProgressThread instance. More...
 
FunctionIndex function_index {0}
 The sequential index of the function.
 

Detailed Description

The unique ID of a function registered with ProgressThread. Composed of the ProgressThread address and a sequential function index.

Definition at line 53 of file progress_thread.hpp.

Constructor & Destructor Documentation

◆ FunctionID() [1/2]

rapidsmpf::ProgressThread::FunctionID::FunctionID ( )
default

Construct a FunctionID with an invalid address.

For a valid object the constructor that takes thread_addr and index must be used.

Note
This is the default constructor.

◆ FunctionID() [2/2]

constexpr rapidsmpf::ProgressThread::FunctionID::FunctionID ( ProgressThreadAddress  thread_addr,
FunctionIndex  index 
)
inlineconstexpr

Construct a new FunctionID.

Parameters
thread_addrThe address of the ProgressThread instance
indexThe sequential index of the function

Definition at line 75 of file progress_thread.hpp.

Member Function Documentation

◆ is_valid()

constexpr bool rapidsmpf::ProgressThread::FunctionID::is_valid ( ) const
inlineconstexpr

Check if the FunctionID is valid.

Returns
True if the FunctionID is valid, false otherwise.

Definition at line 83 of file progress_thread.hpp.

Member Data Documentation

◆ thread_address

ProgressThreadAddress rapidsmpf::ProgressThread::FunctionID::thread_address
Initial value:
{
}
std::uintptr_t ProgressThreadAddress
The address of a ProgressThread instance.

The address of the ProgressThread instance.

Definition at line 54 of file progress_thread.hpp.


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